1 |
commit: aa8b94a406b249d880afd730b67f156ab3142e37 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 4 17:03:45 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 4 17:11:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8b94a4 |
7 |
|
8 |
sys-cluster/nova: cleanup |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/nova/Manifest | 4 - |
14 |
sys-cluster/nova/nova-20.0.1.ebuild | 219 ------------------------------------ |
15 |
sys-cluster/nova/nova-20.1.0.ebuild | 219 ------------------------------------ |
16 |
3 files changed, 442 deletions(-) |
17 |
|
18 |
diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest |
19 |
index 291df933951..18721fe44b7 100644 |
20 |
--- a/sys-cluster/nova/Manifest |
21 |
+++ b/sys-cluster/nova/Manifest |
22 |
@@ -1,7 +1,3 @@ |
23 |
-DIST nova-20.0.1.tar.gz 11587774 BLAKE2B 62f7b6d4ab83533e4462f16978a2f95ceca3d6594029f87dbb170f3abc19917a4449ec95b007adae16c2e290649a560404d12e738a83bc8ad4bbbc1a4554d074 SHA512 3c83a1061696bb6e830e1e518ceea5e5b6405673373df674926b8c01955ea71714bf484906db3dc556209fb895c052003b54477d6a2791df0905244abbf9abe0 |
24 |
-DIST nova-20.1.0.tar.gz 11600925 BLAKE2B ad601ad07cd34df8fee75713f6040048129d6f45c00745903b334a281b555e78d1e8479d5d130e0ff7c1191e2ae18fc38405b2dfa4ec2800747bbb84602d9987 SHA512 b10e8d96846c9e8605cd4ae2dbcd1c4955979e91aa97b29a4411d00c5d5772264d46a9d62cce369d7db6da0641b86a3bf10dd37128e863b4565a5de19d30bdde |
25 |
DIST nova-20.1.1.tar.gz 11604365 BLAKE2B cafc47be451d12f84918c5ad7500ab548be8978cf2f28af6dbac1dba2233e6a3d43be96b9496976d2027894883780241a67950135c920136666f60e310ebd925 SHA512 90e9359ce96e9c7a55583a0c02a3b5b0635f20ab474c9b7ceee3255ddc6571925f4db41b950811b9bc2e3fc8c2fbb78683b1979b3d1f287449725cd70f5ad7b0 |
26 |
-DIST nova.conf.sample-20.0.1 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
27 |
-DIST nova.conf.sample-20.1.0 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
28 |
DIST nova.conf.sample-20.1.1 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
29 |
DIST nova.conf.sample-2019.2.9999 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
30 |
|
31 |
diff --git a/sys-cluster/nova/nova-20.0.1.ebuild b/sys-cluster/nova/nova-20.0.1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 9b4ef0a8b72..00000000000 |
34 |
--- a/sys-cluster/nova/nova-20.0.1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,219 +0,0 @@ |
37 |
-# Copyright 1999-2020 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=7 |
41 |
- |
42 |
-PYTHON_COMPAT=( python3_{6,7} ) |
43 |
-inherit distutils-r1 eutils linux-info multilib user |
44 |
- |
45 |
-DESCRIPTION="Cloud computing fabric controller (main part of an IaaS system) in Python" |
46 |
-HOMEPAGE="https://launchpad.net/nova" |
47 |
- |
48 |
-if [[ ${PV} == *9999 ]];then |
49 |
- inherit git-r3 |
50 |
- SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV}" |
51 |
- EGIT_REPO_URI="https://github.com/openstack/nova.git" |
52 |
- EGIT_BRANCH="stable/train" |
53 |
-else |
54 |
- SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV} |
55 |
- https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
56 |
- KEYWORDS="amd64 ~arm64 x86" |
57 |
-fi |
58 |
- |
59 |
-LICENSE="Apache-2.0" |
60 |
-SLOT="0" |
61 |
-IUSE="+compute compute-only iscsi +memcached +mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
62 |
-REQUIRED_USE=" |
63 |
- !compute-only? ( || ( mysql postgres sqlite ) ) |
64 |
- compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
65 |
- |
66 |
-CDEPEND=" |
67 |
- >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
68 |
- !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" |
69 |
-DEPEND=" |
70 |
- ${CDEPEND} |
71 |
- app-admin/sudo" |
72 |
- |
73 |
-RDEPEND=" |
74 |
- ${CDEPEND} |
75 |
- compute-only? ( |
76 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
77 |
- ) |
78 |
- sqlite? ( |
79 |
- >=dev-python/sqlalchemy-1.2.19[sqlite,${PYTHON_USEDEP}] |
80 |
- ) |
81 |
- mysql? ( |
82 |
- >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
83 |
- !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
84 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
85 |
- ) |
86 |
- postgres? ( |
87 |
- >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
88 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
89 |
- ) |
90 |
- >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
91 |
- >=dev-python/eventlet-0.20.0[${PYTHON_USEDEP}] |
92 |
- !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
93 |
- >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
94 |
- >=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}] |
95 |
- >=dev-python/lxml-2.4.1[${PYTHON_USEDEP}] |
96 |
- !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
97 |
- >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
98 |
- >=dev-python/cryptography-2.7[${PYTHON_USEDEP}] |
99 |
- >=dev-python/webob-1.8.2[${PYTHON_USEDEP}] |
100 |
- >=dev-python/greenlet-0.4.10[${PYTHON_USEDEP}] |
101 |
- !~dev-python/greenlet-0.4.14[${PYTHON_USEDEP}] |
102 |
- >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
103 |
- >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
104 |
- >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
105 |
- <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
106 |
- >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
107 |
- >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}] |
108 |
- >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
109 |
- >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}] |
110 |
- >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
111 |
- !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
112 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
113 |
- >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
114 |
- >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] |
115 |
- >=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}] |
116 |
- !~dev-python/python-cinderclient-4.0.0[${PYTHON_USEDEP}] |
117 |
- >=dev-python/keystoneauth-3.16.0[${PYTHON_USEDEP}] |
118 |
- >=dev-python/python-neutronclient-6.7.0[${PYTHON_USEDEP}] |
119 |
- >=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}] |
120 |
- >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] |
121 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
122 |
- >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
123 |
- >=dev-python/websockify-0.8.0[${PYTHON_USEDEP}] |
124 |
- >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}] |
125 |
- >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
126 |
- >=dev-python/oslo-config-6.1.0[${PYTHON_USEDEP}] |
127 |
- >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}] |
128 |
- >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] |
129 |
- >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}] |
130 |
- >=dev-python/oslo-serialization-1.21.0[${PYTHON_USEDEP}] |
131 |
- >=dev-python/oslo-upgradecheck-0.1.1[${PYTHON_USEDEP}] |
132 |
- !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
133 |
- >=dev-python/oslo-utils-3.40.2[${PYTHON_USEDEP}] |
134 |
- >=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}] |
135 |
- >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}] |
136 |
- >=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}] |
137 |
- >=dev-python/oslo-policy-1.35.0[${PYTHON_USEDEP}] |
138 |
- >=dev-python/oslo-privsep-1.33.2[${PYTHON_USEDEP}] |
139 |
- >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
140 |
- >=dev-python/oslo-service-1.40.1[${PYTHON_USEDEP}] |
141 |
- >=dev-python/rfc3986-1.1.0[${PYTHON_USEDEP}] |
142 |
- >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
143 |
- >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}] |
144 |
- >=dev-python/oslo-versionedobjects-1.35.0[${PYTHON_USEDEP}] |
145 |
- >=dev-python/os-brick-2.6.1[${PYTHON_USEDEP}] |
146 |
- >=dev-python/os-resource-classes-0.4.0[${PYTHON_USEDEP}] |
147 |
- >=dev-python/os-traits-0.16.0[${PYTHON_USEDEP}] |
148 |
- >=dev-python/os-vif-1.14.0[${PYTHON_USEDEP}] |
149 |
- >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}] |
150 |
- >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}] |
151 |
- >=dev-python/microversion-parse-0.2.1[${PYTHON_USEDEP}] |
152 |
- >=dev-python/os-xenapi-0.3.3[${PYTHON_USEDEP}] |
153 |
- >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}] |
154 |
- >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}] |
155 |
- >=dev-python/pypowervm-1.1.15[${PYTHON_USEDEP}] |
156 |
- >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] |
157 |
- >=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}] |
158 |
- >=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}] |
159 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] |
160 |
- >=dev-python/zVMCloudConnector-1.3.0[${PYTHON_USEDEP}] |
161 |
- >=dev-python/openstacksdk-0.35.0[${PYTHON_USEDEP}] |
162 |
- dev-python/libvirt-python[${PYTHON_USEDEP}] |
163 |
- app-emulation/libvirt[iscsi?] |
164 |
- app-emulation/spice-html5 |
165 |
- novncproxy? ( www-apps/novnc ) |
166 |
- sys-apps/iproute2 |
167 |
- openvswitch? ( net-misc/openvswitch ) |
168 |
- rabbitmq? ( net-misc/rabbitmq-server ) |
169 |
- memcached? ( |
170 |
- net-misc/memcached |
171 |
- >=dev-python/python-memcached-1.58 |
172 |
- ) |
173 |
- sys-fs/sysfsutils |
174 |
- sys-fs/multipath-tools |
175 |
- net-misc/bridge-utils |
176 |
- compute? ( |
177 |
- app-cdr/cdrtools |
178 |
- sys-fs/dosfstools |
179 |
- app-emulation/qemu |
180 |
- ) |
181 |
- iscsi? ( |
182 |
- sys-fs/lsscsi |
183 |
- >=sys-block/open-iscsi-2.0.873-r1 |
184 |
- )" |
185 |
- |
186 |
-#PATCHES=( |
187 |
-#) |
188 |
- |
189 |
-pkg_setup() { |
190 |
- linux-info_pkg_setup |
191 |
- CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
192 |
- IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \ |
193 |
- NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \ |
194 |
- ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT" |
195 |
- if linux_config_exists; then |
196 |
- for module in ${CONFIG_CHECK_MODULES}; do |
197 |
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
198 |
- done |
199 |
- fi |
200 |
- enewgroup nova |
201 |
- enewuser nova -1 -1 /var/lib/nova nova |
202 |
-} |
203 |
- |
204 |
-python_prepare_all() { |
205 |
- sed -i '/^hacking/d' test-requirements.txt || die |
206 |
- distutils-r1_python_prepare_all |
207 |
-} |
208 |
- |
209 |
-python_install_all() { |
210 |
- distutils-r1_python_install_all |
211 |
- |
212 |
- if use !compute-only; then |
213 |
- for svc in api conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do |
214 |
- newinitd "${FILESDIR}/nova.initd" "nova-${svc}" |
215 |
- done |
216 |
- fi |
217 |
- use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute" |
218 |
- use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy" |
219 |
- |
220 |
- diropts -m 0750 -o nova -g qemu |
221 |
- dodir /var/log/nova /var/lib/nova/instances |
222 |
- diropts -m 0750 -o nova -g nova |
223 |
- |
224 |
- insinto /etc/nova |
225 |
- insopts -m 0640 -o nova -g nova |
226 |
- newins "${DISTDIR}/nova.conf.sample-${PV}" "nova.conf.sample" |
227 |
- doins "${FILESDIR}/nova-compute.conf" |
228 |
- doins "${S}/etc/nova/"* |
229 |
- # rootwrap filters |
230 |
- insopts -m 0644 |
231 |
- insinto /etc/nova/rootwrap.d |
232 |
- doins "etc/nova/rootwrap.d/api-metadata.filters" |
233 |
- doins "etc/nova/rootwrap.d/compute.filters" |
234 |
- doins "etc/nova/rootwrap.d/network.filters" |
235 |
- |
236 |
- # add sudoers definitions for user nova |
237 |
- insinto /etc/sudoers.d/ |
238 |
- insopts -m 0600 -o root -g root |
239 |
- doins "${FILESDIR}/nova-sudoers" |
240 |
- |
241 |
- if use iscsi ; then |
242 |
- # Install udev rules for handle iscsi disk with right links under /dev |
243 |
- udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules |
244 |
- |
245 |
- insinto /etc/nova/ |
246 |
- doins "${FILESDIR}/scsi-openscsi-link.sh" |
247 |
- fi |
248 |
- rm -r "${ED}/usr/etc" |
249 |
-} |
250 |
- |
251 |
-pkg_postinst() { |
252 |
- if use iscsi ; then |
253 |
- elog "iscsid needs to be running if you want cinder to connect" |
254 |
- fi |
255 |
-} |
256 |
|
257 |
diff --git a/sys-cluster/nova/nova-20.1.0.ebuild b/sys-cluster/nova/nova-20.1.0.ebuild |
258 |
deleted file mode 100644 |
259 |
index fb95e0d2d71..00000000000 |
260 |
--- a/sys-cluster/nova/nova-20.1.0.ebuild |
261 |
+++ /dev/null |
262 |
@@ -1,219 +0,0 @@ |
263 |
-# Copyright 1999-2020 Gentoo Authors |
264 |
-# Distributed under the terms of the GNU General Public License v2 |
265 |
- |
266 |
-EAPI=7 |
267 |
- |
268 |
-PYTHON_COMPAT=( python3_{6,7} ) |
269 |
-inherit distutils-r1 eutils linux-info multilib |
270 |
- |
271 |
-DESCRIPTION="Cloud computing fabric controller (main part of an IaaS system) in Python" |
272 |
-HOMEPAGE="https://launchpad.net/nova" |
273 |
- |
274 |
-if [[ ${PV} == *9999 ]];then |
275 |
- inherit git-r3 |
276 |
- SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV}" |
277 |
- EGIT_REPO_URI="https://github.com/openstack/nova.git" |
278 |
- EGIT_BRANCH="stable/train" |
279 |
-else |
280 |
- SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV} |
281 |
- https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
282 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
283 |
-fi |
284 |
- |
285 |
-LICENSE="Apache-2.0" |
286 |
-SLOT="0" |
287 |
-IUSE="+compute compute-only iscsi +memcached +mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
288 |
-REQUIRED_USE=" |
289 |
- !compute-only? ( || ( mysql postgres sqlite ) ) |
290 |
- compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
291 |
- |
292 |
-CDEPEND=" |
293 |
- >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
294 |
- !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" |
295 |
-DEPEND=" |
296 |
- ${CDEPEND} |
297 |
- app-admin/sudo" |
298 |
- |
299 |
-RDEPEND=" |
300 |
- ${CDEPEND} |
301 |
- compute-only? ( |
302 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
303 |
- ) |
304 |
- sqlite? ( |
305 |
- >=dev-python/sqlalchemy-1.2.19[sqlite,${PYTHON_USEDEP}] |
306 |
- ) |
307 |
- mysql? ( |
308 |
- >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
309 |
- !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
310 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
311 |
- ) |
312 |
- postgres? ( |
313 |
- >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
314 |
- >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
315 |
- ) |
316 |
- >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
317 |
- >=dev-python/eventlet-0.20.0[${PYTHON_USEDEP}] |
318 |
- !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
319 |
- >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
320 |
- >=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}] |
321 |
- >=dev-python/lxml-2.4.1[${PYTHON_USEDEP}] |
322 |
- !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
323 |
- >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
324 |
- >=dev-python/cryptography-2.7[${PYTHON_USEDEP}] |
325 |
- >=dev-python/webob-1.8.2[${PYTHON_USEDEP}] |
326 |
- >=dev-python/greenlet-0.4.10[${PYTHON_USEDEP}] |
327 |
- !~dev-python/greenlet-0.4.14[${PYTHON_USEDEP}] |
328 |
- >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
329 |
- >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
330 |
- >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
331 |
- <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
332 |
- >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
333 |
- >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}] |
334 |
- >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
335 |
- >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}] |
336 |
- >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
337 |
- !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
338 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
339 |
- >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
340 |
- >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] |
341 |
- >=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}] |
342 |
- !~dev-python/python-cinderclient-4.0.0[${PYTHON_USEDEP}] |
343 |
- >=dev-python/keystoneauth-3.16.0[${PYTHON_USEDEP}] |
344 |
- >=dev-python/python-neutronclient-6.7.0[${PYTHON_USEDEP}] |
345 |
- >=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}] |
346 |
- >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] |
347 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
348 |
- >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
349 |
- >=dev-python/websockify-0.8.0[${PYTHON_USEDEP}] |
350 |
- >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}] |
351 |
- >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
352 |
- >=dev-python/oslo-config-6.1.0[${PYTHON_USEDEP}] |
353 |
- >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}] |
354 |
- >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] |
355 |
- >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}] |
356 |
- >=dev-python/oslo-serialization-1.21.0[${PYTHON_USEDEP}] |
357 |
- >=dev-python/oslo-upgradecheck-0.1.1[${PYTHON_USEDEP}] |
358 |
- !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
359 |
- >=dev-python/oslo-utils-3.40.2[${PYTHON_USEDEP}] |
360 |
- >=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}] |
361 |
- >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}] |
362 |
- >=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}] |
363 |
- >=dev-python/oslo-policy-1.35.0[${PYTHON_USEDEP}] |
364 |
- >=dev-python/oslo-privsep-1.33.2[${PYTHON_USEDEP}] |
365 |
- >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
366 |
- >=dev-python/oslo-service-1.40.1[${PYTHON_USEDEP}] |
367 |
- >=dev-python/rfc3986-1.1.0[${PYTHON_USEDEP}] |
368 |
- >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
369 |
- >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}] |
370 |
- >=dev-python/oslo-versionedobjects-1.35.0[${PYTHON_USEDEP}] |
371 |
- >=dev-python/os-brick-2.6.1[${PYTHON_USEDEP}] |
372 |
- >=dev-python/os-resource-classes-0.4.0[${PYTHON_USEDEP}] |
373 |
- >=dev-python/os-traits-0.16.0[${PYTHON_USEDEP}] |
374 |
- >=dev-python/os-vif-1.14.0[${PYTHON_USEDEP}] |
375 |
- >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}] |
376 |
- >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}] |
377 |
- >=dev-python/microversion-parse-0.2.1[${PYTHON_USEDEP}] |
378 |
- >=dev-python/os-xenapi-0.3.3[${PYTHON_USEDEP}] |
379 |
- >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}] |
380 |
- >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}] |
381 |
- >=dev-python/pypowervm-1.1.15[${PYTHON_USEDEP}] |
382 |
- >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] |
383 |
- >=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}] |
384 |
- >=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}] |
385 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] |
386 |
- >=dev-python/zVMCloudConnector-1.3.0[${PYTHON_USEDEP}] |
387 |
- >=dev-python/openstacksdk-0.35.0[${PYTHON_USEDEP}] |
388 |
- dev-python/libvirt-python[${PYTHON_USEDEP}] |
389 |
- app-emulation/libvirt[iscsi?] |
390 |
- app-emulation/spice-html5 |
391 |
- novncproxy? ( www-apps/novnc ) |
392 |
- sys-apps/iproute2 |
393 |
- openvswitch? ( net-misc/openvswitch ) |
394 |
- rabbitmq? ( net-misc/rabbitmq-server ) |
395 |
- memcached? ( |
396 |
- net-misc/memcached |
397 |
- >=dev-python/python-memcached-1.58 |
398 |
- ) |
399 |
- sys-fs/sysfsutils |
400 |
- sys-fs/multipath-tools |
401 |
- net-misc/bridge-utils |
402 |
- compute? ( |
403 |
- app-cdr/cdrtools |
404 |
- sys-fs/dosfstools |
405 |
- app-emulation/qemu |
406 |
- ) |
407 |
- iscsi? ( |
408 |
- sys-fs/lsscsi |
409 |
- >=sys-block/open-iscsi-2.0.873-r1 |
410 |
- ) |
411 |
- acct-user/nova |
412 |
- acct-group/nova" |
413 |
- |
414 |
-#PATCHES=( |
415 |
-#) |
416 |
- |
417 |
-pkg_setup() { |
418 |
- linux-info_pkg_setup |
419 |
- CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
420 |
- IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \ |
421 |
- NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \ |
422 |
- ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT" |
423 |
- if linux_config_exists; then |
424 |
- for module in ${CONFIG_CHECK_MODULES}; do |
425 |
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
426 |
- done |
427 |
- fi |
428 |
-} |
429 |
- |
430 |
-python_prepare_all() { |
431 |
- sed -i '/^hacking/d' test-requirements.txt || die |
432 |
- distutils-r1_python_prepare_all |
433 |
-} |
434 |
- |
435 |
-python_install_all() { |
436 |
- distutils-r1_python_install_all |
437 |
- |
438 |
- if use !compute-only; then |
439 |
- for svc in api conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do |
440 |
- newinitd "${FILESDIR}/nova.initd" "nova-${svc}" |
441 |
- done |
442 |
- fi |
443 |
- use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute" |
444 |
- use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy" |
445 |
- |
446 |
- diropts -m 0750 -o nova -g qemu |
447 |
- dodir /var/log/nova /var/lib/nova/instances |
448 |
- diropts -m 0750 -o nova -g nova |
449 |
- |
450 |
- insinto /etc/nova |
451 |
- insopts -m 0640 -o nova -g nova |
452 |
- newins "${DISTDIR}/nova.conf.sample-${PV}" "nova.conf.sample" |
453 |
- doins "${FILESDIR}/nova-compute.conf" |
454 |
- doins "${S}/etc/nova/"* |
455 |
- # rootwrap filters |
456 |
- insopts -m 0644 |
457 |
- insinto /etc/nova/rootwrap.d |
458 |
- doins "etc/nova/rootwrap.d/api-metadata.filters" |
459 |
- doins "etc/nova/rootwrap.d/compute.filters" |
460 |
- doins "etc/nova/rootwrap.d/network.filters" |
461 |
- |
462 |
- # add sudoers definitions for user nova |
463 |
- insinto /etc/sudoers.d/ |
464 |
- insopts -m 0600 -o root -g root |
465 |
- doins "${FILESDIR}/nova-sudoers" |
466 |
- |
467 |
- if use iscsi ; then |
468 |
- # Install udev rules for handle iscsi disk with right links under /dev |
469 |
- udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules |
470 |
- |
471 |
- insinto /etc/nova/ |
472 |
- doins "${FILESDIR}/scsi-openscsi-link.sh" |
473 |
- fi |
474 |
- rm -r "${ED}/usr/etc" |
475 |
-} |
476 |
- |
477 |
-pkg_postinst() { |
478 |
- if use iscsi ; then |
479 |
- elog "iscsid needs to be running if you want cinder to connect" |
480 |
- fi |
481 |
-} |