Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/cinder/
Date: Wed, 10 Apr 2019 22:44:16
Message-Id: 1554936228.680ee4e87c33049e42bd95fbb94b2063e05bad45.prometheanfire@gentoo
1 commit: 680ee4e87c33049e42bd95fbb94b2063e05bad45
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 10 22:43:05 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 10 22:43:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=680ee4e8
7
8 sys-cluster/cinder: STEIN release
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 sys-cluster/cinder/Manifest | 3 +
14 sys-cluster/cinder/cinder-14.0.0.ebuild | 214 +++++++++++++++++++++++++++
15 sys-cluster/cinder/cinder-2019.1.9999.ebuild | 214 +++++++++++++++++++++++++++
16 3 files changed, 431 insertions(+)
17
18 diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest
19 index 63eef64ac54..b33f416a054 100644
20 --- a/sys-cluster/cinder/Manifest
21 +++ b/sys-cluster/cinder/Manifest
22 @@ -1,5 +1,8 @@
23 DIST cinder-13.0.3.tar.gz 5464871 BLAKE2B 3d2beebe7503d673ebc8a3f6b07da2a6799d276578823cb1abb518894f88cf97ec051337016b177ddc45614d70b9a5350a49c144011b0d1e41beaf901b4a73da SHA512 2e358f7f0220aa6b6b88dedc8c942abcf5c54c53a690d18d84bee6d63b4f28b75c463f1d37a5e24925431e441f26066dbb0b4d33750429efbe7663d0e69de3a4
24 DIST cinder-13.0.4.tar.gz 5466572 BLAKE2B de5511f74faa9a096fa1183a78e65b0950fa95cc9e746ac750ecfd6ce840bda7f4f9899b2af4bcacb4cef6e8f5bb94bf706263df5055ed973ecc43ea1834ef68 SHA512 a492580718cb2cdd47bf1dc74d95ef9b3a6afdf50351e20e840c6a9805aed434e520be30c4126ba26216011b16e16007bc6e8816bb8aa7aea1e20d7cc2d622dd
25 +DIST cinder-14.0.0.tar.gz 5498509 BLAKE2B adbd31dc953b467690a82be29e75467ec60a65064e402c1659948cb413154e9e9efd088ecc3b7accbe9b378e3a7f8bd5325d133e2d37b38d9ce091189857e293 SHA512 28940052eea307bcdce8ed9f7df09cb58b7250e561e128b3dd65123f8baffdacfadb6f6243a82d898fb8dc4ce11cf0fb0ad9905d5445cf61e2f603a580915562
26 DIST cinder.conf.sample-13.0.3 185527 BLAKE2B c53c017c5cacf2fb604840e14adf3b1db36bf8dd2c79d29f1c6b35da843640f97efcfd97d6f68a40a2f928ce864a3e221d7138d7cac977c0d544817e2826ebb2 SHA512 1dc850bebd66d90e2950795337a78ea8aea69ead0aeb3e5b7f97c7b12f33a3afc483f3bde2942a34539fbc048fa5b589b3c7d2df53314180f64094569bb81b15
27 DIST cinder.conf.sample-13.0.4 185527 BLAKE2B c53c017c5cacf2fb604840e14adf3b1db36bf8dd2c79d29f1c6b35da843640f97efcfd97d6f68a40a2f928ce864a3e221d7138d7cac977c0d544817e2826ebb2 SHA512 1dc850bebd66d90e2950795337a78ea8aea69ead0aeb3e5b7f97c7b12f33a3afc483f3bde2942a34539fbc048fa5b589b3c7d2df53314180f64094569bb81b15
28 +DIST cinder.conf.sample-14.0.0 185527 BLAKE2B c53c017c5cacf2fb604840e14adf3b1db36bf8dd2c79d29f1c6b35da843640f97efcfd97d6f68a40a2f928ce864a3e221d7138d7cac977c0d544817e2826ebb2 SHA512 1dc850bebd66d90e2950795337a78ea8aea69ead0aeb3e5b7f97c7b12f33a3afc483f3bde2942a34539fbc048fa5b589b3c7d2df53314180f64094569bb81b15
29 DIST cinder.conf.sample-2018.2.9999 185527 BLAKE2B c53c017c5cacf2fb604840e14adf3b1db36bf8dd2c79d29f1c6b35da843640f97efcfd97d6f68a40a2f928ce864a3e221d7138d7cac977c0d544817e2826ebb2 SHA512 1dc850bebd66d90e2950795337a78ea8aea69ead0aeb3e5b7f97c7b12f33a3afc483f3bde2942a34539fbc048fa5b589b3c7d2df53314180f64094569bb81b15
30 +DIST cinder.conf.sample-2019.1.9999 185527 BLAKE2B c53c017c5cacf2fb604840e14adf3b1db36bf8dd2c79d29f1c6b35da843640f97efcfd97d6f68a40a2f928ce864a3e221d7138d7cac977c0d544817e2826ebb2 SHA512 1dc850bebd66d90e2950795337a78ea8aea69ead0aeb3e5b7f97c7b12f33a3afc483f3bde2942a34539fbc048fa5b589b3c7d2df53314180f64094569bb81b15
31
32 diff --git a/sys-cluster/cinder/cinder-14.0.0.ebuild b/sys-cluster/cinder/cinder-14.0.0.ebuild
33 new file mode 100644
34 index 00000000000..164354dab03
35 --- /dev/null
36 +++ b/sys-cluster/cinder/cinder-14.0.0.ebuild
37 @@ -0,0 +1,214 @@
38 +# Copyright 1999-2019 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
43 +
44 +inherit distutils-r1 eutils linux-info user
45 +
46 +DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes"
47 +HOMEPAGE="https://launchpad.net/cinder"
48 +
49 +if [[ ${PV} == *9999 ]];then
50 + inherit git-r3
51 + SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/rocky/cinder.conf.sample -> cinder.conf.sample-${PV}"
52 + EGIT_REPO_URI="https://github.com/openstack/cinder.git"
53 + EGIT_BRANCH="stable/stein"
54 +else
55 + SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/rocky/cinder.conf.sample -> cinder.conf.sample-${PV}
56 + https://tarballs.openstack.org/${PN}/${P}.tar.gz"
57 + KEYWORDS="~amd64 ~arm64 ~x86"
58 +fi
59 +
60 +LICENSE="Apache-2.0"
61 +SLOT="0"
62 +IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt"
63 +REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )"
64 +
65 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
66 + !~dev-python/pbr-2.1.0"
67 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
68 + ${CDEPEND}
69 + app-admin/sudo"
70 +
71 +RDEPEND="
72 + ${CDEPEND}
73 + >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
74 + >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}]
75 + dev-python/enum34[$(python_gen_usedep 'python2_7')]
76 + >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
77 + !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
78 + >=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}]
79 + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
80 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
81 + >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
82 + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
83 + virtual/python-ipaddress[${PYTHON_USEDEP}]
84 + >=dev-python/keystoneauth-3.7.0[${PYTHON_USEDEP}]
85 + >=dev-python/keystonemiddleware-4.21.0[${PYTHON_USEDEP}]
86 + >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}]
87 + !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}]
88 + >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}]
89 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
90 + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
91 + >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
92 + >=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}]
93 + >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
94 + >=dev-python/oslo-messaging-6.4.0[${PYTHON_USEDEP}]
95 + >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
96 + >=dev-python/oslo-policy-1.44.1[${PYTHON_USEDEP}]
97 + >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
98 + >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
99 + >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
100 + >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}]
101 + !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
102 + >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
103 + !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
104 + >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
105 + >=dev-python/oslo-utils-3.34.0[${PYTHON_USEDEP}]
106 + >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
107 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
108 + >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}]
109 + >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
110 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
111 + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
112 + <dev-python/prettytable-0.8[${PYTHON_USEDEP}]
113 + >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
114 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
115 + >=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
116 + >=dev-python/python-glanceclient-2.15.0[${PYTHON_USEDEP}]
117 + >=dev-python/python-keystoneclient-3.15.0[${PYTHON_USEDEP}]
118 + >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
119 + >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
120 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
121 + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
122 + !~dev-python/requests-2.20.0[${PYTHON_USEDEP}]
123 + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
124 + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
125 + >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
126 + >=dev-python/taskflow-3.2.0[${PYTHON_USEDEP}]
127 + >=dev-python/rtslib-fb-2.1.65[${PYTHON_USEDEP}]
128 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
129 + sqlite? (
130 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
131 + !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
132 + !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
133 + !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
134 + !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
135 + )
136 + mysql? (
137 + >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
138 + !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
139 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
140 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
141 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
142 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
143 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
144 + )
145 + postgres? (
146 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
147 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
148 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
149 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
150 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
151 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
152 + )
153 + >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
154 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
155 + ~dev-python/suds-0.6[${PYTHON_USEDEP}]
156 + >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
157 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
158 + >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}]
159 + >=dev-python/os-brick-2.2.0[${PYTHON_USEDEP}]
160 + >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}]
161 + >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
162 + >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}]
163 + >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}]
164 + >=dev-python/cryptography-2.1[${PYTHON_USEDEP}]
165 + >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
166 + iscsi? (
167 + tgt? ( sys-block/tgt )
168 + sys-block/open-iscsi
169 + )
170 + lvm? ( sys-fs/lvm2 )
171 + memcached? ( net-misc/memcached )
172 + app-emulation/qemu
173 + sys-fs/sysfsutils"
174 +# qemu is needed for image conversion
175 +
176 +#PATCHES=(
177 +#)
178 +
179 +pkg_pretend() {
180 + linux-info_pkg_setup
181 + CONFIG_CHECK_MODULES=""
182 + if use tcp; then
183 + CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
184 + fi
185 + if use rdma; then
186 + CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
187 + fi
188 + if use infiniband; then
189 + CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
190 + fi
191 + if linux_config_exists; then
192 + for module in ${CONFIG_CHECK_MODULES}; do
193 + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
194 + done
195 + fi
196 +}
197 +
198 +pkg_setup() {
199 + enewgroup cinder
200 + enewuser cinder -1 -1 /var/lib/cinder cinder
201 +}
202 +
203 +python_prepare_all() {
204 + sed -i '/^hacking/d' test-requirements.txt || die
205 + # only used for docs
206 + sed -i '/^sphinx-feature-classification/d' requirements.txt || die
207 + distutils-r1_python_prepare_all
208 +}
209 +
210 +python_test() {
211 + # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727
212 + nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7"
213 +}
214 +
215 +python_install_all() {
216 + distutils-r1_python_install_all
217 + keepdir /etc/cinder
218 + dodir /etc/cinder/rootwrap.d
219 +
220 + for svc in api scheduler volume; do
221 + newinitd "${FILESDIR}/cinder.initd" cinder-${svc}
222 + done
223 +
224 + insinto /etc/cinder
225 + insopts -m0640 -o cinder -g cinder
226 + doins "etc/cinder/api-httpd.conf"
227 + doins "etc/cinder/logging_sample.conf"
228 + doins "etc/cinder/rootwrap.conf"
229 + doins "etc/cinder/api-paste.ini"
230 + doins "etc/cinder/resource_filters.json"
231 + newins "${DISTDIR}/cinder.conf.sample-${PV}" "cinder.conf.sample"
232 + insinto /etc/cinder/rootwrap.d
233 + doins "etc/cinder/rootwrap.d/volume.filters"
234 +
235 + dodir /var/log/cinder
236 + fowners cinder:cinder /var/log/cinder
237 +
238 + #add sudoers definitions for user nova
239 + insinto /etc/sudoers.d/
240 + insopts -m 0440 -o root -g root
241 + newins "${FILESDIR}/cinder.sudoersd" cinder
242 + # stupid python
243 + rm -r "${ED}"/usr/etc
244 +}
245 +
246 +pkg_postinst() {
247 + if use iscsi ; then
248 + elog "Cinder needs tgtd to be installed and running to work with iscsi"
249 + elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
250 + fi
251 +}
252
253 diff --git a/sys-cluster/cinder/cinder-2019.1.9999.ebuild b/sys-cluster/cinder/cinder-2019.1.9999.ebuild
254 new file mode 100644
255 index 00000000000..164354dab03
256 --- /dev/null
257 +++ b/sys-cluster/cinder/cinder-2019.1.9999.ebuild
258 @@ -0,0 +1,214 @@
259 +# Copyright 1999-2019 Gentoo Authors
260 +# Distributed under the terms of the GNU General Public License v2
261 +
262 +EAPI=7
263 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
264 +
265 +inherit distutils-r1 eutils linux-info user
266 +
267 +DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes"
268 +HOMEPAGE="https://launchpad.net/cinder"
269 +
270 +if [[ ${PV} == *9999 ]];then
271 + inherit git-r3
272 + SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/rocky/cinder.conf.sample -> cinder.conf.sample-${PV}"
273 + EGIT_REPO_URI="https://github.com/openstack/cinder.git"
274 + EGIT_BRANCH="stable/stein"
275 +else
276 + SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/rocky/cinder.conf.sample -> cinder.conf.sample-${PV}
277 + https://tarballs.openstack.org/${PN}/${P}.tar.gz"
278 + KEYWORDS="~amd64 ~arm64 ~x86"
279 +fi
280 +
281 +LICENSE="Apache-2.0"
282 +SLOT="0"
283 +IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt"
284 +REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )"
285 +
286 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
287 + !~dev-python/pbr-2.1.0"
288 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
289 + ${CDEPEND}
290 + app-admin/sudo"
291 +
292 +RDEPEND="
293 + ${CDEPEND}
294 + >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
295 + >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}]
296 + dev-python/enum34[$(python_gen_usedep 'python2_7')]
297 + >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
298 + !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
299 + >=dev-python/greenlet-0.4.1[${PYTHON_USEDEP}]
300 + >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
301 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
302 + >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}]
303 + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
304 + virtual/python-ipaddress[${PYTHON_USEDEP}]
305 + >=dev-python/keystoneauth-3.7.0[${PYTHON_USEDEP}]
306 + >=dev-python/keystonemiddleware-4.21.0[${PYTHON_USEDEP}]
307 + >=dev-python/lxml-3.4.1[${PYTHON_USEDEP}]
308 + !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}]
309 + >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}]
310 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
311 + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
312 + >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
313 + >=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}]
314 + >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
315 + >=dev-python/oslo-messaging-6.4.0[${PYTHON_USEDEP}]
316 + >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
317 + >=dev-python/oslo-policy-1.44.1[${PYTHON_USEDEP}]
318 + >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
319 + >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
320 + >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
321 + >=dev-python/oslo-serialization-2.18.0[${PYTHON_USEDEP}]
322 + !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
323 + >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
324 + !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
325 + >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
326 + >=dev-python/oslo-utils-3.34.0[${PYTHON_USEDEP}]
327 + >=dev-python/oslo-versionedobjects-1.31.2[${PYTHON_USEDEP}]
328 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
329 + >=dev-python/paramiko-2.0.0[${PYTHON_USEDEP}]
330 + >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
331 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
332 + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
333 + <dev-python/prettytable-0.8[${PYTHON_USEDEP}]
334 + >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
335 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
336 + >=dev-python/python-barbicanclient-4.5.2[${PYTHON_USEDEP}]
337 + >=dev-python/python-glanceclient-2.15.0[${PYTHON_USEDEP}]
338 + >=dev-python/python-keystoneclient-3.15.0[${PYTHON_USEDEP}]
339 + >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
340 + >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}]
341 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
342 + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
343 + !~dev-python/requests-2.20.0[${PYTHON_USEDEP}]
344 + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
345 + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
346 + >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
347 + >=dev-python/taskflow-3.2.0[${PYTHON_USEDEP}]
348 + >=dev-python/rtslib-fb-2.1.65[${PYTHON_USEDEP}]
349 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
350 + sqlite? (
351 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
352 + !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
353 + !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
354 + !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
355 + !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
356 + )
357 + mysql? (
358 + >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
359 + !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
360 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
361 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
362 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
363 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
364 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
365 + )
366 + postgres? (
367 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
368 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
369 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
370 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
371 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
372 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
373 + )
374 + >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
375 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
376 + ~dev-python/suds-0.6[${PYTHON_USEDEP}]
377 + >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
378 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
379 + >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}]
380 + >=dev-python/os-brick-2.2.0[${PYTHON_USEDEP}]
381 + >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}]
382 + >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}]
383 + >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}]
384 + >=dev-python/castellan-0.16.0[${PYTHON_USEDEP}]
385 + >=dev-python/cryptography-2.1[${PYTHON_USEDEP}]
386 + >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}]
387 + iscsi? (
388 + tgt? ( sys-block/tgt )
389 + sys-block/open-iscsi
390 + )
391 + lvm? ( sys-fs/lvm2 )
392 + memcached? ( net-misc/memcached )
393 + app-emulation/qemu
394 + sys-fs/sysfsutils"
395 +# qemu is needed for image conversion
396 +
397 +#PATCHES=(
398 +#)
399 +
400 +pkg_pretend() {
401 + linux-info_pkg_setup
402 + CONFIG_CHECK_MODULES=""
403 + if use tcp; then
404 + CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP "
405 + fi
406 + if use rdma; then
407 + CONFIG_CHECK_MODULES+="INFINIBAND_ISER "
408 + fi
409 + if use infiniband; then
410 + CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS"
411 + fi
412 + if linux_config_exists; then
413 + for module in ${CONFIG_CHECK_MODULES}; do
414 + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
415 + done
416 + fi
417 +}
418 +
419 +pkg_setup() {
420 + enewgroup cinder
421 + enewuser cinder -1 -1 /var/lib/cinder cinder
422 +}
423 +
424 +python_prepare_all() {
425 + sed -i '/^hacking/d' test-requirements.txt || die
426 + # only used for docs
427 + sed -i '/^sphinx-feature-classification/d' requirements.txt || die
428 + distutils-r1_python_prepare_all
429 +}
430 +
431 +python_test() {
432 + # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727
433 + nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7"
434 +}
435 +
436 +python_install_all() {
437 + distutils-r1_python_install_all
438 + keepdir /etc/cinder
439 + dodir /etc/cinder/rootwrap.d
440 +
441 + for svc in api scheduler volume; do
442 + newinitd "${FILESDIR}/cinder.initd" cinder-${svc}
443 + done
444 +
445 + insinto /etc/cinder
446 + insopts -m0640 -o cinder -g cinder
447 + doins "etc/cinder/api-httpd.conf"
448 + doins "etc/cinder/logging_sample.conf"
449 + doins "etc/cinder/rootwrap.conf"
450 + doins "etc/cinder/api-paste.ini"
451 + doins "etc/cinder/resource_filters.json"
452 + newins "${DISTDIR}/cinder.conf.sample-${PV}" "cinder.conf.sample"
453 + insinto /etc/cinder/rootwrap.d
454 + doins "etc/cinder/rootwrap.d/volume.filters"
455 +
456 + dodir /var/log/cinder
457 + fowners cinder:cinder /var/log/cinder
458 +
459 + #add sudoers definitions for user nova
460 + insinto /etc/sudoers.d/
461 + insopts -m 0440 -o root -g root
462 + newins "${FILESDIR}/cinder.sudoersd" cinder
463 + # stupid python
464 + rm -r "${ED}"/usr/etc
465 +}
466 +
467 +pkg_postinst() {
468 + if use iscsi ; then
469 + elog "Cinder needs tgtd to be installed and running to work with iscsi"
470 + elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf"
471 + fi
472 +}