1 |
commit: f21a4b57e7a36d385f6389cc3e5993f612716aeb |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 3 20:14:38 2018 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 20:14:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21a4b57 |
7 |
|
8 |
sys-cluster/nova: 15.1.0 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
|
12 |
sys-cluster/nova/Manifest | 2 + |
13 |
sys-cluster/nova/nova-15.1.0.ebuild | 232 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 234 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest |
17 |
index a96fda376ab..0195529a341 100644 |
18 |
--- a/sys-cluster/nova/Manifest |
19 |
+++ b/sys-cluster/nova/Manifest |
20 |
@@ -1,7 +1,9 @@ |
21 |
DIST nova-15.0.8.tar.gz 5772381 BLAKE2B 483880fb2571314644b5229b5644ca8090928a799480bdc001382b42b3ab5710ad3e7cc7f28ebbcccd4d385df49b420e6b748454933290b36acd4812aee70040 SHA512 555a57219454f34511870bde1e794a8460a51ac4c11da26608635c3ff629388cdce2792cf67ae466b0e3f8b65ffad61549d294c2672c1f1719913cece82058ef |
22 |
+DIST nova-15.1.0.tar.gz 5774942 BLAKE2B 6507658dabf1cc9da34c40bf3c5fb77c9e5692ceeea6fe4b38cca8be3cf532db6bbdd14dd71c78e1545791eaf26f60bd9337fca4561d811d1116a32458a86c6d SHA512 a35cc1a1891f0440470cb31cd23f835190d5961a962afc308f54ffe1bb0e47eb0e411915b47e8b89e7f76a2b3c348997848d86fd10123a375c7fbb8c118f66b0 |
23 |
DIST nova-16.0.3.tar.gz 10920453 BLAKE2B 5b42039f7d8f1c5e5ffc57befc069d4a19b4cc305be603d76b5cd70aaad4ed96d7df554a58c8865a3105fe532071e87d2df574e07472d475c47b206591730d1b SHA512 fc17a214ac074a12995e75fe7e60dc1a9ab26a0b59e2462926c235e93c0f58b8d96e3043d4187a0f80d2a3feea5bd678d9b41e3496d4e472fa79e4650e14cb1e |
24 |
DIST nova-16.0.4.tar.gz 10922054 BLAKE2B 1fb76f0a06149cb67543921cc9f49cd869ebcb85a813079cdde7ed38aded81d0ec5f157b7d031a9269c3df66081cac1d0732286356dc9f8af58de02ba688a9c9 SHA512 8841faca0d3864a7f63f4c6eec637e6676df2b1473dacd0265a34ce4cf8e50bc587892de2f3d54d1e7a499adb8e9c06aca6d7956d010ddabae1ea61c7c5b0581 |
25 |
DIST nova.conf.sample-15.0.8 344760 BLAKE2B 0c227259325b201740a6a6e0f9a174b8a463ad30b9b09ca819ba23d85ba5471c4e958e23cf96bc8b2dab358521dfc52c216dffc110b46338e80b1821face84e4 SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d |
26 |
+DIST nova.conf.sample-15.1.0 344760 BLAKE2B 0c227259325b201740a6a6e0f9a174b8a463ad30b9b09ca819ba23d85ba5471c4e958e23cf96bc8b2dab358521dfc52c216dffc110b46338e80b1821face84e4 SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d |
27 |
DIST nova.conf.sample-16.0.3 360926 BLAKE2B 0cdfcff1d5faf5803de72b8113085591df4d1c7feb0591df786a5bf0e13ff133c1fcc4a2c3ebfdadf2a60943a7810e18813a00f5f78987daf3c271e3ba627911 SHA512 68f548e998396c7b18692fb3b1e9bf267f9bc06d73f602bb8f20bba426b6ede01e270447906f1685133cdbfd43b76ed5a9913b0167ce70f1ff3debd1ca11d378 |
28 |
DIST nova.conf.sample-16.0.4 360926 BLAKE2B 0cdfcff1d5faf5803de72b8113085591df4d1c7feb0591df786a5bf0e13ff133c1fcc4a2c3ebfdadf2a60943a7810e18813a00f5f78987daf3c271e3ba627911 SHA512 68f548e998396c7b18692fb3b1e9bf267f9bc06d73f602bb8f20bba426b6ede01e270447906f1685133cdbfd43b76ed5a9913b0167ce70f1ff3debd1ca11d378 |
29 |
DIST nova.conf.sample-2017.1.9999 344760 BLAKE2B 0c227259325b201740a6a6e0f9a174b8a463ad30b9b09ca819ba23d85ba5471c4e958e23cf96bc8b2dab358521dfc52c216dffc110b46338e80b1821face84e4 SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d |
30 |
|
31 |
diff --git a/sys-cluster/nova/nova-15.1.0.ebuild b/sys-cluster/nova/nova-15.1.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..99ed9c55181 |
34 |
--- /dev/null |
35 |
+++ b/sys-cluster/nova/nova-15.1.0.ebuild |
36 |
@@ -0,0 +1,232 @@ |
37 |
+# Copyright 1999-2018 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
42 |
+ |
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 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/ocata/nova.conf.sample -> nova.conf.sample-${PV} |
48 |
+ https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+IUSE="+compute compute-only iscsi +memcached mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
54 |
+REQUIRED_USE=" |
55 |
+ !compute-only? ( || ( mysql postgres sqlite ) ) |
56 |
+ compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
57 |
+ |
58 |
+CDEPEND=" |
59 |
+ >=dev-python/setuptools-16.0[${PYTHON_USEDEP}] |
60 |
+ !~dev-python/setuptools-24.0.0[${PYTHON_USEDEP}] |
61 |
+ !~dev-python/setuptools-34.0.0[${PYTHON_USEDEP}] |
62 |
+ !~dev-python/setuptools-34.0.1[${PYTHON_USEDEP}] |
63 |
+ !~dev-python/setuptools-34.0.2[${PYTHON_USEDEP}] |
64 |
+ !~dev-python/setuptools-34.0.3[${PYTHON_USEDEP}] |
65 |
+ !~dev-python/setuptools-34.1.0[${PYTHON_USEDEP}] |
66 |
+ !~dev-python/setuptools-34.1.1[${PYTHON_USEDEP}] |
67 |
+ !~dev-python/setuptools-34.2.0[${PYTHON_USEDEP}] |
68 |
+ !~dev-python/setuptools-34.3.0[${PYTHON_USEDEP}] |
69 |
+ !~dev-python/setuptools-34.3.1[${PYTHON_USEDEP}] |
70 |
+ !~dev-python/setuptools-34.3.2[${PYTHON_USEDEP}] |
71 |
+ !~dev-python/setuptools-36.2.0[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/pbr-1.8[${PYTHON_USEDEP}]" |
73 |
+DEPEND=" |
74 |
+ ${CDEPEND} |
75 |
+ app-admin/sudo" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ ${CDEPEND} |
79 |
+ compute-only? ( |
80 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
81 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ sqlite? ( |
84 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
85 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+ mysql? ( |
88 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
89 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
91 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
92 |
+ ) |
93 |
+ postgres? ( |
94 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
96 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
97 |
+ ) |
98 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/jinja-2.8[${PYTHON_USEDEP}] |
101 |
+ !~dev-python/jinja-2.9.0[${PYTHON_USEDEP}] |
102 |
+ !~dev-python/jinja-2.9.1[${PYTHON_USEDEP}] |
103 |
+ !~dev-python/jinja-2.9.2[${PYTHON_USEDEP}] |
104 |
+ !~dev-python/jinja-2.9.3[${PYTHON_USEDEP}] |
105 |
+ !~dev-python/jinja-2.9.4[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
108 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
110 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
111 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
112 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/cryptography-1.0[${PYTHON_USEDEP}] |
114 |
+ !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/webob-1.6.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
118 |
+ dev-python/paste[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
120 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}] |
123 |
+ !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}] |
124 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
128 |
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
129 |
+ !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}] |
130 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
131 |
+ >=dev-python/python-cinderclient-1.6.0[${PYTHON_USEDEP}] |
132 |
+ !~dev-python/python-cinderclient-1.7.0[${PYTHON_USEDEP}] |
133 |
+ !~dev-python/python-cinderclient-1.7.1[${PYTHON_USEDEP}] |
134 |
+ >=dev-python/keystoneauth-2.18.0[${PYTHON_USEDEP}] |
135 |
+ >=dev-python/python-neutronclient-5.1.0[${PYTHON_USEDEP}] |
136 |
+ >=dev-python/python-glanceclient-2.5.0[${PYTHON_USEDEP}] |
137 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
138 |
+ !~dev-python/requests-2.12.2[${PYTHON_USEDEP}] |
139 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
140 |
+ >=dev-python/stevedore-1.17.1[${PYTHON_USEDEP}] |
141 |
+ >=dev-python/websockify-0.8.0[${PYTHON_USEDEP}] |
142 |
+ >=dev-python/oslo-cache-1.5.0[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
145 |
+ !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/oslo-log-3.11.0[${PYTHON_USEDEP}] |
148 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
150 |
+ >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}] |
151 |
+ >=dev-python/oslo-db-4.15.0[${PYTHON_USEDEP}] |
152 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
153 |
+ >=dev-python/oslo-messaging-5.14.0[${PYTHON_USEDEP}] |
154 |
+ >=dev-python/oslo-policy-1.17.0[${PYTHON_USEDEP}] |
155 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
156 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
157 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
158 |
+ >=dev-python/rfc3986-0.3.1[${PYTHON_USEDEP}] |
159 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
160 |
+ >=dev-python/psutil-3.0.1[${PYTHON_USEDEP}] |
161 |
+ >=dev-python/oslo-versionedobjects-1.17.0[${PYTHON_USEDEP}] |
162 |
+ >=dev-python/os-brick-1.8.0[${PYTHON_USEDEP}] |
163 |
+ >=dev-python/os-vif-1.4.0[${PYTHON_USEDEP}] |
164 |
+ >=dev-python/os-win-1.4.0[${PYTHON_USEDEP}] |
165 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
166 |
+ >=dev-python/microversion-parse-0.1.2[${PYTHON_USEDEP}] |
167 |
+ >=dev-python/os-xenapi-0.1.1[${PYTHON_USEDEP}] |
168 |
+ dev-python/libvirt-python[${PYTHON_USEDEP}] |
169 |
+ app-emulation/libvirt[iscsi?] |
170 |
+ novncproxy? ( www-apps/novnc ) |
171 |
+ sys-apps/iproute2 |
172 |
+ openvswitch? ( net-misc/openvswitch ) |
173 |
+ rabbitmq? ( net-misc/rabbitmq-server ) |
174 |
+ memcached? ( |
175 |
+ net-misc/memcached |
176 |
+ >=dev-python/python-memcached-1.58 |
177 |
+ ) |
178 |
+ sys-fs/sysfsutils |
179 |
+ sys-fs/multipath-tools |
180 |
+ net-misc/bridge-utils |
181 |
+ compute? ( |
182 |
+ app-cdr/cdrtools |
183 |
+ sys-fs/dosfstools |
184 |
+ app-emulation/qemu |
185 |
+ ) |
186 |
+ iscsi? ( |
187 |
+ sys-fs/lsscsi |
188 |
+ >=sys-block/open-iscsi-2.0.873-r1 |
189 |
+ )" |
190 |
+ |
191 |
+#PATCHES=( |
192 |
+#) |
193 |
+ |
194 |
+pkg_setup() { |
195 |
+ linux-info_pkg_setup |
196 |
+ CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
197 |
+ IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \ |
198 |
+ NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \ |
199 |
+ ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT" |
200 |
+ if linux_config_exists; then |
201 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
202 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
203 |
+ done |
204 |
+ fi |
205 |
+ enewgroup nova |
206 |
+ enewuser nova -1 -1 /var/lib/nova nova |
207 |
+} |
208 |
+ |
209 |
+python_prepare_all() { |
210 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
211 |
+ distutils-r1_python_prepare_all |
212 |
+} |
213 |
+ |
214 |
+python_install_all() { |
215 |
+ distutils-r1_python_install_all |
216 |
+ |
217 |
+ if use !compute-only; then |
218 |
+ for svc in api cert conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do |
219 |
+ newinitd "${FILESDIR}/nova.initd" "nova-${svc}" |
220 |
+ done |
221 |
+ fi |
222 |
+ use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute" |
223 |
+ use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy" |
224 |
+ |
225 |
+ diropts -m 0750 -o nova -g qemu |
226 |
+ dodir /var/log/nova /var/lib/nova/instances |
227 |
+ diropts -m 0750 -o nova -g nova |
228 |
+ |
229 |
+ insinto /etc/nova |
230 |
+ insopts -m 0640 -o nova -g nova |
231 |
+ newins "${DISTDIR}/nova.conf.sample-${PV}" "nova.conf.sample" |
232 |
+ doins "${FILESDIR}/nova-compute.conf" |
233 |
+ doins "${S}/etc/nova/"* |
234 |
+ # rootwrap filters |
235 |
+ insopts -m 0644 |
236 |
+ insinto /etc/nova/rootwrap.d |
237 |
+ doins "etc/nova/rootwrap.d/api-metadata.filters" |
238 |
+ doins "etc/nova/rootwrap.d/compute.filters" |
239 |
+ doins "etc/nova/rootwrap.d/network.filters" |
240 |
+ |
241 |
+ # add sudoers definitions for user nova |
242 |
+ insinto /etc/sudoers.d/ |
243 |
+ insopts -m 0600 -o root -g root |
244 |
+ doins "${FILESDIR}/nova-sudoers" |
245 |
+ |
246 |
+ if use iscsi ; then |
247 |
+ # Install udev rules for handle iscsi disk with right links under /dev |
248 |
+ udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules |
249 |
+ |
250 |
+ insinto /etc/nova/ |
251 |
+ doins "${FILESDIR}/scsi-openscsi-link.sh" |
252 |
+ fi |
253 |
+} |
254 |
+ |
255 |
+python_install() { |
256 |
+ distutils-r1_python_install |
257 |
+ # copy migration conf file (not coppied on install via setup.py script) |
258 |
+ insinto "$(python_get_sitedir)/db/sqlalchemy/migrate_repo/" |
259 |
+ doins "nova/db/sqlalchemy/migrate_repo/migrate.cfg" |
260 |
+ # copy the CA cert dir (not coppied on install via setup.py script) |
261 |
+ cp -R "${S}/nova/CA" "${D}/$(python_get_sitedir)/nova/" || die "installing CA files failed" |
262 |
+} |
263 |
+ |
264 |
+pkg_postinst() { |
265 |
+ if use iscsi ; then |
266 |
+ elog "iscsid needs to be running if you want cinder to connect" |
267 |
+ fi |
268 |
+} |