1 |
commit: 0b4f1db79682ec33e6fdc5035316103081df5486 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 30 19:15:01 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 30 19:15:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b4f1db7 |
7 |
|
8 |
sys-cluster/nova: 14.0.7 and 15.0.5 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
sys-cluster/nova/Manifest | 3 + |
13 |
sys-cluster/nova/nova-14.0.7.ebuild | 229 +++++++++++++++++++++++++++++++++++ |
14 |
sys-cluster/nova/nova-15.0.5.ebuild | 231 ++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 463 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest |
18 |
index 0fb4fabd821..e84ad9bd7f4 100644 |
19 |
--- a/sys-cluster/nova/Manifest |
20 |
+++ b/sys-cluster/nova/Manifest |
21 |
@@ -1,8 +1,11 @@ |
22 |
DIST newton-nova.conf.sample 44496 SHA256 a7d9b95e67b77d0335edac760e037ad117d8c9f18c4792939ba8bb02739eae58 SHA512 ac917f0fed24c6705cbe43b4e1af31138bb656ea06f0cbe66d5b820677a47ca854abf6ca7fdf76a9a7f3a5afff758dac294ffd778d1bda82bb9f95c48d103d6e WHIRLPOOL 3c54dc8e4721f4289a8f64e9ac215c4b2e4b6afd2904fea4080659d3c292dcd942535d998b463efa4dd96a6090afb9830dfa6b9b3f2062439a8d03ec09356adc |
23 |
DIST nova-14.0.5.tar.gz 5595066 SHA256 762f18a0e18bda9d2c962e906424b8a60e3c2692d9b597d728a5c9b3ae28926a SHA512 8e169c625f65b1333dbf0737fd3451903ebf0a95bfac37394f588182d5395e3dc7d037075ef572306e9a07530c42a2d560bc26cb23ecc28c320e7412b5b1b093 WHIRLPOOL d6147e64405c11640ab3c7e1605d9e17a56fc1e4831516049059e1b114eab44d0f2ef6ea29209646caf5a80c5f595e69577c1936fc99507efd7ac3a2629c9d83 |
24 |
DIST nova-14.0.6.tar.gz 5597601 SHA256 e93d0ca8f12574f347580f33624c9a86860b2964ecc91ecdccb4f223dbb115d9 SHA512 8c84b1c8557c0258699bd031143eb4106ab926471438c268fb61dd3eacbfd552fd1f4b8ce95817f1501f22be1673d2b90a6646d457f991cdc406f48546854142 WHIRLPOOL f6ce5c263db359b819d551bc087004a21762c6cbff27587d8812cc7e8f4d1c38026e7d29784d4e3f5c9e745d7b7369afd6a8b3ebb151ef3a48f2ccc68ac7924b |
25 |
+DIST nova-14.0.7.tar.gz 5601074 SHA256 765c5a69a85fe464c25be9f146f4869108a315fa77de46da81c724e855ba5eb9 SHA512 27b7683e6266e1a0e23023818bd008e14202b1e20c21dd74fd687437beb8c6b2b5689a2428e34202275caeae52ed6b29f713cf82e94ff28114825f16347a5b9b WHIRLPOOL e5aede657ac4270d4005d060177bd99c4fd3f382ac26467f5cf91b4e8b0443bb17dedaf154a34efc100db0b6019c9120908efea24446eca41135135a3445408f |
26 |
DIST nova-15.0.3.tar.gz 5743284 SHA256 01ff12909304dc8d41fef460cda73c6bd8a5612a3de1b86846962d6bcd71777d SHA512 d2c6d0f241503cb1fe7a00945cb2e896f9f4c32fe8d94a2a2bcd9a3ede994eb5aa5ea0e7183fe2067e886a315859d1166b30ad1edb8241c043a19208522f5761 WHIRLPOOL db277c56a28ca5de613364dcca81ebdf58e9573c0551203a3f29bc14fc2d05a6fbf0c87b4a35d2881ecd8f29361177f4bde378b53eb3a706cf0b921c3e11dd2f |
27 |
DIST nova-15.0.4.tar.gz 5740930 SHA256 a213a34cc7fee0ab5b323b385644de5e6069107acc776cfc679eefb071692eb3 SHA512 74ba9f6c2246c44612f016777c14e264d4df1432c8311a8eaa0bac17ba67d5302f5e2e9c42a009e8c214451d7c5bee54fcd9fcecf58ebaacd227cf5e98180c90 WHIRLPOOL 5522b7af0d815fced042e7ea856f219a3ba9d1808e40b97b8b2bbefa07deffdcec6a2b05a6439f4c264c6ef1f8cbfc80f47c205f068bbf9832b73805002816de |
28 |
+DIST nova-15.0.5.tar.gz 5747766 SHA256 4b28ca36923ffdd9c8740f9743efd86585ce18809017c7276442650d2d450033 SHA512 19158f122b7fb8013d65e03d4b00f5afdf90abbc1b90fed4ff497d2ce7350302b34fffa7febd25da8a8bc6654d399dde049740452339c6a979a0aa8f9650a856 WHIRLPOOL d07dd7aefe5fda743a75817df33219cac6c876c2e968f2c026860216026e25e5a2ce2b65d66f6a8fc5a5dc6a1ed380e980bee410ac81e4cec98c069f9687c711 |
29 |
DIST nova.conf.sample-15.0.3 344760 SHA256 09c086c981505a6e775a4e2073856b1d38998d97b92062f019095f98d7d26e1f SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d WHIRLPOOL 22f174d402e6d9c3e1e18da0cdec883209013083c66eb2b5a2921546fb609c1a19de594832afa8f40ee26a999f2596c563eb16ba1a08035895b5d6c72a729125 |
30 |
DIST nova.conf.sample-15.0.4 344760 SHA256 09c086c981505a6e775a4e2073856b1d38998d97b92062f019095f98d7d26e1f SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d WHIRLPOOL 22f174d402e6d9c3e1e18da0cdec883209013083c66eb2b5a2921546fb609c1a19de594832afa8f40ee26a999f2596c563eb16ba1a08035895b5d6c72a729125 |
31 |
+DIST nova.conf.sample-15.0.5 344760 SHA256 09c086c981505a6e775a4e2073856b1d38998d97b92062f019095f98d7d26e1f SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d WHIRLPOOL 22f174d402e6d9c3e1e18da0cdec883209013083c66eb2b5a2921546fb609c1a19de594832afa8f40ee26a999f2596c563eb16ba1a08035895b5d6c72a729125 |
32 |
DIST nova.conf.sample-2017.1.9999 344760 SHA256 09c086c981505a6e775a4e2073856b1d38998d97b92062f019095f98d7d26e1f SHA512 5c55c752c8752876acbd8d2348abb39d6a8449f637ad2a6515f5c9f4619dbad73c4ae7a6ac4cd164656a0c466ed000a4d68a291050a03a5641fe96b3dd7f732d WHIRLPOOL 22f174d402e6d9c3e1e18da0cdec883209013083c66eb2b5a2921546fb609c1a19de594832afa8f40ee26a999f2596c563eb16ba1a08035895b5d6c72a729125 |
33 |
|
34 |
diff --git a/sys-cluster/nova/nova-14.0.7.ebuild b/sys-cluster/nova/nova-14.0.7.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..5939589ac92 |
37 |
--- /dev/null |
38 |
+++ b/sys-cluster/nova/nova-14.0.7.ebuild |
39 |
@@ -0,0 +1,229 @@ |
40 |
+# Copyright 1999-2017 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=6 |
44 |
+PYTHON_COMPAT=( python2_7 python3_4 ) |
45 |
+ |
46 |
+inherit distutils-r1 eutils linux-info multilib user |
47 |
+ |
48 |
+DESCRIPTION="Cloud computing fabric controller (main part of an IaaS system) in Python" |
49 |
+HOMEPAGE="https://launchpad.net/nova" |
50 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/newton/nova.conf.sample -> newton-nova.conf.sample |
51 |
+https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="Apache-2.0" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
56 |
+IUSE="+compute compute-only iscsi +memcached mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
57 |
+REQUIRED_USE=" |
58 |
+ !compute-only? ( || ( mysql postgres sqlite ) ) |
59 |
+ compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
60 |
+ |
61 |
+CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]" |
62 |
+DEPEND=" |
63 |
+ >=dev-python/setuptools-16.0[${PYTHON_USEDEP}] |
64 |
+ ${CDEPEND} |
65 |
+ app-admin/sudo" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ ${CDEPEND} |
69 |
+ compute-only? ( |
70 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
71 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+ sqlite? ( |
74 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
75 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+ mysql? ( |
78 |
+ >=dev-python/pymysql-0.6.2[${PYTHON_USEDEP}] |
79 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
81 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ postgres? ( |
84 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
86 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
87 |
+ ) |
88 |
+ >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/jinja-2.8[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/keystonemiddleware-4.0.0[${PYTHON_USEDEP}] |
93 |
+ !~dev-python/keystonemiddleware-4.1.0[${PYTHON_USEDEP}] |
94 |
+ !~dev-python/keystonemiddleware-4.5.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
97 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
98 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
99 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/cryptography-1.0[${PYTHON_USEDEP}] |
101 |
+ !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/webob-1.2.3[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
105 |
+ dev-python/paste[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/prettytable-0.7[${PYTHON_USEDEP}] |
107 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}] |
110 |
+ !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
116 |
+ !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}] |
117 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/python-cinderclient-1.6.0[${PYTHON_USEDEP}] |
119 |
+ !~dev-python/python-cinderclient-1.7.0[${PYTHON_USEDEP}] |
120 |
+ !~dev-python/python-cinderclient-1.7.1[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/keystoneauth-2.10.0[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/python-neutronclient-5.1.0[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/python-glanceclient-2.3.0[${PYTHON_USEDEP}] |
124 |
+ !~dev-python/python-glanceclient-2.4.0[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/stevedore-1.16.0[${PYTHON_USEDEP}] |
128 |
+ >=dev-python/setuptools-16.0[${PYTHON_USEDEP}] |
129 |
+ !~dev-python/setuptools-24.0.0[${PYTHON_USEDEP}] |
130 |
+ !~dev-python/setuptools-34.0.0[${PYTHON_USEDEP}] |
131 |
+ !~dev-python/setuptools-34.0.1[${PYTHON_USEDEP}] |
132 |
+ !~dev-python/setuptools-34.0.2[${PYTHON_USEDEP}] |
133 |
+ !~dev-python/setuptools-34.0.3[${PYTHON_USEDEP}] |
134 |
+ !~dev-python/setuptools-34.1.0[${PYTHON_USEDEP}] |
135 |
+ !~dev-python/setuptools-34.1.1[${PYTHON_USEDEP}] |
136 |
+ !~dev-python/setuptools-34.2.0[${PYTHON_USEDEP}] |
137 |
+ !~dev-python/setuptools-34.3.0[${PYTHON_USEDEP}] |
138 |
+ !~dev-python/setuptools-34.3.1[${PYTHON_USEDEP}] |
139 |
+ !~dev-python/setuptools-34.3.2[${PYTHON_USEDEP}] |
140 |
+ !~dev-python/setuptools-34.3.3[${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-context-2.9.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/oslo-log-1.14.0[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
148 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/oslo-utils-3.16.0[${PYTHON_USEDEP}] |
150 |
+ >=dev-python/oslo-db-4.10.0[${PYTHON_USEDEP}] |
151 |
+ !~dev-python/oslo-db-4.13.1[${PYTHON_USEDEP}] |
152 |
+ !~dev-python/oslo-db-4.13.2[${PYTHON_USEDEP}] |
153 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
154 |
+ >=dev-python/oslo-messaging-5.2.0[${PYTHON_USEDEP}] |
155 |
+ >=dev-python/oslo-policy-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.2.2[${PYTHON_USEDEP}] |
159 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
160 |
+ >=dev-python/psutil-1.1.1[${PYTHON_USEDEP}] |
161 |
+ <dev-python/psutil-2.0.0[${PYTHON_USEDEP}] |
162 |
+ >=dev-python/oslo-versionedobjects-1.13.0[${PYTHON_USEDEP}] |
163 |
+ >=dev-python/os-brick-1.6.1[${PYTHON_USEDEP}] |
164 |
+ >=dev-python/os-vif-1.1.0[${PYTHON_USEDEP}] |
165 |
+ >=dev-python/os-win-0.2.3[${PYTHON_USEDEP}] |
166 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
167 |
+ >=dev-python/microversion-parse-0.1.2[${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}/newton-nova.conf.sample" "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 |
+} |
269 |
|
270 |
diff --git a/sys-cluster/nova/nova-15.0.5.ebuild b/sys-cluster/nova/nova-15.0.5.ebuild |
271 |
new file mode 100644 |
272 |
index 00000000000..bf73fe84fda |
273 |
--- /dev/null |
274 |
+++ b/sys-cluster/nova/nova-15.0.5.ebuild |
275 |
@@ -0,0 +1,231 @@ |
276 |
+# Copyright 1999-2017 Gentoo Foundation |
277 |
+# Distributed under the terms of the GNU General Public License v2 |
278 |
+ |
279 |
+EAPI=6 |
280 |
+PYTHON_COMPAT=( python2_7 python3_4 ) |
281 |
+ |
282 |
+inherit distutils-r1 eutils linux-info multilib user |
283 |
+ |
284 |
+DESCRIPTION="Cloud computing fabric controller (main part of an IaaS system) in Python" |
285 |
+HOMEPAGE="https://launchpad.net/nova" |
286 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/ocata/nova.conf.sample -> nova.conf.sample-${PV} |
287 |
+ https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
288 |
+ |
289 |
+LICENSE="Apache-2.0" |
290 |
+SLOT="0" |
291 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
292 |
+IUSE="+compute compute-only iscsi +memcached mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
293 |
+REQUIRED_USE=" |
294 |
+ !compute-only? ( || ( mysql postgres sqlite ) ) |
295 |
+ compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
296 |
+ |
297 |
+CDEPEND=" |
298 |
+ >=dev-python/setuptools-16.0[${PYTHON_USEDEP}] |
299 |
+ !~dev-python/setuptools-24.0.0[${PYTHON_USEDEP}] |
300 |
+ !~dev-python/setuptools-34.0.0[${PYTHON_USEDEP}] |
301 |
+ !~dev-python/setuptools-34.0.1[${PYTHON_USEDEP}] |
302 |
+ !~dev-python/setuptools-34.0.2[${PYTHON_USEDEP}] |
303 |
+ !~dev-python/setuptools-34.0.3[${PYTHON_USEDEP}] |
304 |
+ !~dev-python/setuptools-34.1.0[${PYTHON_USEDEP}] |
305 |
+ !~dev-python/setuptools-34.1.1[${PYTHON_USEDEP}] |
306 |
+ !~dev-python/setuptools-34.2.0[${PYTHON_USEDEP}] |
307 |
+ !~dev-python/setuptools-34.3.0[${PYTHON_USEDEP}] |
308 |
+ !~dev-python/setuptools-34.3.1[${PYTHON_USEDEP}] |
309 |
+ !~dev-python/setuptools-34.3.2[${PYTHON_USEDEP}] |
310 |
+ >=dev-python/pbr-1.8[${PYTHON_USEDEP}]" |
311 |
+DEPEND=" |
312 |
+ ${CDEPEND} |
313 |
+ app-admin/sudo" |
314 |
+ |
315 |
+RDEPEND=" |
316 |
+ ${CDEPEND} |
317 |
+ compute-only? ( |
318 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
319 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
320 |
+ ) |
321 |
+ sqlite? ( |
322 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
323 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
324 |
+ ) |
325 |
+ mysql? ( |
326 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
327 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
328 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
329 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
330 |
+ ) |
331 |
+ postgres? ( |
332 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
333 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
334 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
335 |
+ ) |
336 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
337 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
338 |
+ >=dev-python/jinja-2.8[${PYTHON_USEDEP}] |
339 |
+ !~dev-python/jinja-2.9.0[${PYTHON_USEDEP}] |
340 |
+ !~dev-python/jinja-2.9.1[${PYTHON_USEDEP}] |
341 |
+ !~dev-python/jinja-2.9.2[${PYTHON_USEDEP}] |
342 |
+ !~dev-python/jinja-2.9.3[${PYTHON_USEDEP}] |
343 |
+ !~dev-python/jinja-2.9.4[${PYTHON_USEDEP}] |
344 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
345 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
346 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
347 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
348 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
349 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
350 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
351 |
+ >=dev-python/cryptography-1.0[${PYTHON_USEDEP}] |
352 |
+ !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}] |
353 |
+ >=dev-python/webob-1.6.0[${PYTHON_USEDEP}] |
354 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
355 |
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
356 |
+ dev-python/paste[${PYTHON_USEDEP}] |
357 |
+ >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
358 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
359 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
360 |
+ >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}] |
361 |
+ !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}] |
362 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
363 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
364 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
365 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
366 |
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}] |
367 |
+ !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}] |
368 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
369 |
+ >=dev-python/python-cinderclient-1.6.0[${PYTHON_USEDEP}] |
370 |
+ !~dev-python/python-cinderclient-1.7.0[${PYTHON_USEDEP}] |
371 |
+ !~dev-python/python-cinderclient-1.7.1[${PYTHON_USEDEP}] |
372 |
+ >=dev-python/keystoneauth-2.18.0[${PYTHON_USEDEP}] |
373 |
+ >=dev-python/python-neutronclient-5.1.0[${PYTHON_USEDEP}] |
374 |
+ >=dev-python/python-glanceclient-2.5.0[${PYTHON_USEDEP}] |
375 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
376 |
+ !~dev-python/requests-2.12.2[${PYTHON_USEDEP}] |
377 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
378 |
+ >=dev-python/stevedore-1.17.1[${PYTHON_USEDEP}] |
379 |
+ >=dev-python/websockify-0.8.0[${PYTHON_USEDEP}] |
380 |
+ >=dev-python/oslo-cache-1.5.0[${PYTHON_USEDEP}] |
381 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
382 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
383 |
+ !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] |
384 |
+ >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}] |
385 |
+ >=dev-python/oslo-log-3.11.0[${PYTHON_USEDEP}] |
386 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
387 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
388 |
+ >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}] |
389 |
+ >=dev-python/oslo-db-4.15.0[${PYTHON_USEDEP}] |
390 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
391 |
+ >=dev-python/oslo-messaging-5.14.0[${PYTHON_USEDEP}] |
392 |
+ >=dev-python/oslo-policy-1.17.0[${PYTHON_USEDEP}] |
393 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
394 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
395 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
396 |
+ >=dev-python/rfc3986-0.3.1[${PYTHON_USEDEP}] |
397 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
398 |
+ >=dev-python/psutil-3.0.1[${PYTHON_USEDEP}] |
399 |
+ >=dev-python/oslo-versionedobjects-1.17.0[${PYTHON_USEDEP}] |
400 |
+ >=dev-python/os-brick-1.8.0[${PYTHON_USEDEP}] |
401 |
+ >=dev-python/os-vif-1.4.0[${PYTHON_USEDEP}] |
402 |
+ >=dev-python/os-win-1.4.0[${PYTHON_USEDEP}] |
403 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
404 |
+ >=dev-python/microversion-parse-0.1.2[${PYTHON_USEDEP}] |
405 |
+ >=dev-python/os-xenapi-0.1.1[${PYTHON_USEDEP}] |
406 |
+ dev-python/libvirt-python[${PYTHON_USEDEP}] |
407 |
+ app-emulation/libvirt[iscsi?] |
408 |
+ novncproxy? ( www-apps/novnc ) |
409 |
+ sys-apps/iproute2 |
410 |
+ openvswitch? ( net-misc/openvswitch ) |
411 |
+ rabbitmq? ( net-misc/rabbitmq-server ) |
412 |
+ memcached? ( |
413 |
+ net-misc/memcached |
414 |
+ >=dev-python/python-memcached-1.58 |
415 |
+ ) |
416 |
+ sys-fs/sysfsutils |
417 |
+ sys-fs/multipath-tools |
418 |
+ net-misc/bridge-utils |
419 |
+ compute? ( |
420 |
+ app-cdr/cdrtools |
421 |
+ sys-fs/dosfstools |
422 |
+ app-emulation/qemu |
423 |
+ ) |
424 |
+ iscsi? ( |
425 |
+ sys-fs/lsscsi |
426 |
+ >=sys-block/open-iscsi-2.0.873-r1 |
427 |
+ )" |
428 |
+ |
429 |
+#PATCHES=( |
430 |
+#) |
431 |
+ |
432 |
+pkg_setup() { |
433 |
+ linux-info_pkg_setup |
434 |
+ CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
435 |
+ IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \ |
436 |
+ NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \ |
437 |
+ ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT" |
438 |
+ if linux_config_exists; then |
439 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
440 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
441 |
+ done |
442 |
+ fi |
443 |
+ enewgroup nova |
444 |
+ enewuser nova -1 -1 /var/lib/nova nova |
445 |
+} |
446 |
+ |
447 |
+python_prepare_all() { |
448 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
449 |
+ distutils-r1_python_prepare_all |
450 |
+} |
451 |
+ |
452 |
+python_install_all() { |
453 |
+ distutils-r1_python_install_all |
454 |
+ |
455 |
+ if use !compute-only; then |
456 |
+ for svc in api cert conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do |
457 |
+ newinitd "${FILESDIR}/nova.initd" "nova-${svc}" |
458 |
+ done |
459 |
+ fi |
460 |
+ use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute" |
461 |
+ use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy" |
462 |
+ |
463 |
+ diropts -m 0750 -o nova -g qemu |
464 |
+ dodir /var/log/nova /var/lib/nova/instances |
465 |
+ diropts -m 0750 -o nova -g nova |
466 |
+ |
467 |
+ insinto /etc/nova |
468 |
+ insopts -m 0640 -o nova -g nova |
469 |
+ newins "${DISTDIR}/nova.conf.sample-${PV}" "nova.conf.sample" |
470 |
+ doins "${FILESDIR}/nova-compute.conf" |
471 |
+ doins "${S}/etc/nova/"* |
472 |
+ # rootwrap filters |
473 |
+ insopts -m 0644 |
474 |
+ insinto /etc/nova/rootwrap.d |
475 |
+ doins "etc/nova/rootwrap.d/api-metadata.filters" |
476 |
+ doins "etc/nova/rootwrap.d/compute.filters" |
477 |
+ doins "etc/nova/rootwrap.d/network.filters" |
478 |
+ |
479 |
+ # add sudoers definitions for user nova |
480 |
+ insinto /etc/sudoers.d/ |
481 |
+ insopts -m 0600 -o root -g root |
482 |
+ doins "${FILESDIR}/nova-sudoers" |
483 |
+ |
484 |
+ if use iscsi ; then |
485 |
+ # Install udev rules for handle iscsi disk with right links under /dev |
486 |
+ udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules |
487 |
+ |
488 |
+ insinto /etc/nova/ |
489 |
+ doins "${FILESDIR}/scsi-openscsi-link.sh" |
490 |
+ fi |
491 |
+} |
492 |
+ |
493 |
+python_install() { |
494 |
+ distutils-r1_python_install |
495 |
+ # copy migration conf file (not coppied on install via setup.py script) |
496 |
+ insinto "$(python_get_sitedir)/db/sqlalchemy/migrate_repo/" |
497 |
+ doins "nova/db/sqlalchemy/migrate_repo/migrate.cfg" |
498 |
+ # copy the CA cert dir (not coppied on install via setup.py script) |
499 |
+ cp -R "${S}/nova/CA" "${D}/$(python_get_sitedir)/nova/" || die "installing CA files failed" |
500 |
+} |
501 |
+ |
502 |
+pkg_postinst() { |
503 |
+ if use iscsi ; then |
504 |
+ elog "iscsid needs to be running if you want cinder to connect" |
505 |
+ fi |
506 |
+} |