1 |
commit: ab439f7f3c7a360ef35e2d02acb8b392b184b067 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 23 19:25:06 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 23 19:36:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab439f7f |
7 |
|
8 |
sys-cluster/nova: 20.2.0 bump |
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 | 2 + |
14 |
sys-cluster/nova/nova-20.2.0.ebuild | 218 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 220 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest |
18 |
index 18721fe44b7..5b95e6ab823 100644 |
19 |
--- a/sys-cluster/nova/Manifest |
20 |
+++ b/sys-cluster/nova/Manifest |
21 |
@@ -1,3 +1,5 @@ |
22 |
DIST nova-20.1.1.tar.gz 11604365 BLAKE2B cafc47be451d12f84918c5ad7500ab548be8978cf2f28af6dbac1dba2233e6a3d43be96b9496976d2027894883780241a67950135c920136666f60e310ebd925 SHA512 90e9359ce96e9c7a55583a0c02a3b5b0635f20ab474c9b7ceee3255ddc6571925f4db41b950811b9bc2e3fc8c2fbb78683b1979b3d1f287449725cd70f5ad7b0 |
23 |
+DIST nova-20.2.0.tar.gz 11625085 BLAKE2B 5ae0be3831ed03722947041efa6ce1dc3662273517ca652fb0c135f90f0323deed1f0af7751916343e3c8e065be4cc8eb7b00adf043ddaa798bf5faa88aa7bc9 SHA512 3db1fc8bda5ae95394518af1a856b6876104b852ffd758bda90a7fbdb8b389bc246e406d55eae614e65b559556ea9511c0c1281e2858d6157dd462767ae5127f |
24 |
DIST nova.conf.sample-20.1.1 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
25 |
+DIST nova.conf.sample-20.2.0 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
26 |
DIST nova.conf.sample-2019.2.9999 220110 BLAKE2B af98687c895ee091cc2e8d668eb50b52cc94618081f8a50b544faebed29b2b3a5dfa38309da70dcc6d0083792605b810081b50c15a6c960947e0c782f25717ab SHA512 cc6cce95943b06d60dfc1f85b87d527662eeb57388dca4a6037078b517302b86fd7f752c6e9e43c59c10be83ac5955f21c08284bbc946ffe2171f5bfa6edff38 |
27 |
|
28 |
diff --git a/sys-cluster/nova/nova-20.2.0.ebuild b/sys-cluster/nova/nova-20.2.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..a866be1bbd8 |
31 |
--- /dev/null |
32 |
+++ b/sys-cluster/nova/nova-20.2.0.ebuild |
33 |
@@ -0,0 +1,218 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{6,7} ) |
40 |
+inherit distutils-r1 eutils linux-info multilib |
41 |
+ |
42 |
+DESCRIPTION="Cloud computing fabric controller" |
43 |
+HOMEPAGE="https://launchpad.net/nova" |
44 |
+ |
45 |
+if [[ ${PV} == *9999 ]];then |
46 |
+ inherit git-r3 |
47 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV}" |
48 |
+ EGIT_REPO_URI="https://github.com/openstack/nova.git" |
49 |
+ EGIT_BRANCH="stable/train" |
50 |
+else |
51 |
+ SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/nova/train/nova.conf.sample -> nova.conf.sample-${PV} |
52 |
+ https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="Apache-2.0" |
57 |
+SLOT="0" |
58 |
+IUSE="+compute compute-only iscsi +memcached +mysql +novncproxy openvswitch postgres +rabbitmq sqlite" |
59 |
+REQUIRED_USE=" |
60 |
+ !compute-only? ( || ( mysql postgres sqlite ) ) |
61 |
+ compute-only? ( compute !rabbitmq !memcached !mysql !postgres !sqlite )" |
62 |
+ |
63 |
+CDEPEND=" |
64 |
+ >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
65 |
+ !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" |
66 |
+DEPEND=" |
67 |
+ ${CDEPEND} |
68 |
+ app-admin/sudo" |
69 |
+ |
70 |
+RDEPEND=" |
71 |
+ ${CDEPEND} |
72 |
+ compute-only? ( |
73 |
+ >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+ sqlite? ( |
76 |
+ >=dev-python/sqlalchemy-1.2.19[sqlite,${PYTHON_USEDEP}] |
77 |
+ ) |
78 |
+ mysql? ( |
79 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
80 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ postgres? ( |
84 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/sqlalchemy-1.2.19[${PYTHON_USEDEP}] |
86 |
+ ) |
87 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/eventlet-0.20.0[${PYTHON_USEDEP}] |
89 |
+ !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/lxml-2.4.1[${PYTHON_USEDEP}] |
93 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/cryptography-2.7[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/webob-1.8.2[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/greenlet-0.4.10[${PYTHON_USEDEP}] |
98 |
+ !~dev-python/greenlet-0.4.14[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}] |
102 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
108 |
+ !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/python-cinderclient-3.3.0[${PYTHON_USEDEP}] |
112 |
+ !~dev-python/python-cinderclient-4.0.0[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/keystoneauth-3.16.0[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/python-neutronclient-6.7.0[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/python-glanceclient-2.8.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/requests-2.14.2[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/websockify-0.8.0[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/oslo-config-6.1.0[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}] |
124 |
+ >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/oslo-serialization-1.21.0[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/oslo-upgradecheck-0.1.1[${PYTHON_USEDEP}] |
128 |
+ !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
129 |
+ >=dev-python/oslo-utils-3.40.2[${PYTHON_USEDEP}] |
130 |
+ >=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}] |
131 |
+ >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}] |
132 |
+ >=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}] |
133 |
+ >=dev-python/oslo-policy-1.35.0[${PYTHON_USEDEP}] |
134 |
+ >=dev-python/oslo-privsep-1.33.2[${PYTHON_USEDEP}] |
135 |
+ >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
136 |
+ >=dev-python/oslo-service-1.40.1[${PYTHON_USEDEP}] |
137 |
+ >=dev-python/rfc3986-1.1.0[${PYTHON_USEDEP}] |
138 |
+ >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
139 |
+ >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}] |
140 |
+ >=dev-python/oslo-versionedobjects-1.35.0[${PYTHON_USEDEP}] |
141 |
+ >=dev-python/os-brick-2.6.1[${PYTHON_USEDEP}] |
142 |
+ >=dev-python/os-resource-classes-0.4.0[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/os-traits-0.16.0[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/os-vif-1.14.0[${PYTHON_USEDEP}] |
145 |
+ >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/microversion-parse-0.2.1[${PYTHON_USEDEP}] |
148 |
+ >=dev-python/os-xenapi-0.3.3[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}] |
150 |
+ >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}] |
151 |
+ >=dev-python/pypowervm-1.1.15[${PYTHON_USEDEP}] |
152 |
+ >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] |
153 |
+ >=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}] |
154 |
+ >=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}] |
155 |
+ >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] |
156 |
+ >=dev-python/zVMCloudConnector-1.3.0[${PYTHON_USEDEP}] |
157 |
+ >=dev-python/openstacksdk-0.35.0[${PYTHON_USEDEP}] |
158 |
+ dev-python/libvirt-python[${PYTHON_USEDEP}] |
159 |
+ app-emulation/libvirt[iscsi?] |
160 |
+ app-emulation/spice-html5 |
161 |
+ novncproxy? ( www-apps/novnc ) |
162 |
+ sys-apps/iproute2 |
163 |
+ openvswitch? ( net-misc/openvswitch ) |
164 |
+ rabbitmq? ( net-misc/rabbitmq-server ) |
165 |
+ memcached? ( |
166 |
+ net-misc/memcached |
167 |
+ >=dev-python/python-memcached-1.58 |
168 |
+ ) |
169 |
+ sys-fs/sysfsutils |
170 |
+ sys-fs/multipath-tools |
171 |
+ net-misc/bridge-utils |
172 |
+ compute? ( |
173 |
+ app-cdr/cdrtools |
174 |
+ sys-fs/dosfstools |
175 |
+ app-emulation/qemu |
176 |
+ ) |
177 |
+ iscsi? ( |
178 |
+ sys-fs/lsscsi |
179 |
+ >=sys-block/open-iscsi-2.0.873-r1 |
180 |
+ ) |
181 |
+ acct-user/nova |
182 |
+ acct-group/nova" |
183 |
+ |
184 |
+#PATCHES=( |
185 |
+#) |
186 |
+ |
187 |
+pkg_setup() { |
188 |
+ linux-info_pkg_setup |
189 |
+ CONFIG_CHECK_MODULES="BLK_DEV_NBD VHOST_NET IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
190 |
+ IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 IP_NF_FILTER IP_NF_IPTABLES \ |
191 |
+ NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK NETFILTER_XTABLES \ |
192 |
+ ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT" |
193 |
+ if linux_config_exists; then |
194 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
195 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
196 |
+ done |
197 |
+ fi |
198 |
+} |
199 |
+ |
200 |
+python_prepare_all() { |
201 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
202 |
+ distutils-r1_python_prepare_all |
203 |
+} |
204 |
+ |
205 |
+python_install_all() { |
206 |
+ distutils-r1_python_install_all |
207 |
+ |
208 |
+ if use !compute-only; then |
209 |
+ for svc in api conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do |
210 |
+ newinitd "${FILESDIR}/nova.initd" "nova-${svc}" |
211 |
+ done |
212 |
+ fi |
213 |
+ use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute" |
214 |
+ use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy" |
215 |
+ |
216 |
+ diropts -m 0750 -o nova -g qemu |
217 |
+ dodir /var/log/nova /var/lib/nova/instances |
218 |
+ diropts -m 0750 -o nova -g nova |
219 |
+ |
220 |
+ insinto /etc/nova |
221 |
+ insopts -m 0640 -o nova -g nova |
222 |
+ newins "${DISTDIR}/nova.conf.sample-${PV}" "nova.conf.sample" |
223 |
+ doins "${FILESDIR}/nova-compute.conf" |
224 |
+ doins "${S}/etc/nova/"* |
225 |
+ # rootwrap filters |
226 |
+ insopts -m 0644 |
227 |
+ insinto /etc/nova/rootwrap.d |
228 |
+ doins "etc/nova/rootwrap.d/api-metadata.filters" |
229 |
+ doins "etc/nova/rootwrap.d/compute.filters" |
230 |
+ doins "etc/nova/rootwrap.d/network.filters" |
231 |
+ |
232 |
+ # add sudoers definitions for user nova |
233 |
+ insinto /etc/sudoers.d/ |
234 |
+ insopts -m 0600 -o root -g root |
235 |
+ doins "${FILESDIR}/nova-sudoers" |
236 |
+ |
237 |
+ if use iscsi ; then |
238 |
+ # Install udev rules for handle iscsi disk with right links under /dev |
239 |
+ udev_newrules "${FILESDIR}/openstack-scsi-disk.rules" 60-openstack-scsi-disk.rules |
240 |
+ |
241 |
+ insinto /etc/nova/ |
242 |
+ doins "${FILESDIR}/scsi-openscsi-link.sh" |
243 |
+ fi |
244 |
+ rm -r "${ED}/usr/etc" |
245 |
+} |
246 |
+ |
247 |
+pkg_postinst() { |
248 |
+ if use iscsi ; then |
249 |
+ elog "iscsid needs to be running if you want cinder to connect" |
250 |
+ fi |
251 |
+} |