1 |
commit: 169bc14144eb5f1357a517ec60c51356437ab71b |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 04:25:40 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 04:26:48 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=169bc141 |
7 |
|
8 |
sys-cluster/cinder: OCATA |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-cluster/cinder/Manifest | 4 + |
13 |
sys-cluster/cinder/cinder-10.0.0.ebuild | 193 ++++++++++++++++++++++++++ |
14 |
sys-cluster/cinder/cinder-2017.1.9999.ebuild | 194 +++++++++++++++++++++++++++ |
15 |
3 files changed, 391 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest |
18 |
index 68eb307734..6ac88e2147 100644 |
19 |
--- a/sys-cluster/cinder/Manifest |
20 |
+++ b/sys-cluster/cinder/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST cinder-10.0.0.tar.gz 4610356 SHA256 3047812d07cebbcb5559cdc3a1d827fa62be35c2297cd3c1359b52dc8349ea04 SHA512 b55e95b84b09287b5786b6a07a6d2699ae0ca55dbd0dc9089a4e14fa039e2576b6eaefccf05e0eff0f9d36ebbe2aac0a4dd0de6122ae104cc3335d00174e82ed WHIRLPOOL 8f7bdc067a4b7e3d7f62a5a1c0d3bd15b8d461fb25d0d07efdfcab7d09a5cd2b34dded54334ddd14e515e8ceb9c2531353284773eef1d4f2acaa96eff95789a6 |
23 |
DIST cinder-8.1.1.tar.gz 3875392 SHA256 57de9d1410e9e5a0568499e38414241167e4b2b1742aac309844da80efd127e2 SHA512 4dfa5a11b11b684761519b33d1b45f4d65152df96fc9303e92724f88a01bea031e0dd7aaa229d5876641fa4a5089fcd197e52cf01652a89f6027435b038f3560 WHIRLPOOL 9815230914da588529f3f3916ddfdb25025a531015fd78fce635a6e55b6051f2a26f2e4710cd980daceb905f41caaceb274f84c34353bbc363a36e12a88c8245 |
24 |
DIST cinder-9.1.2.tar.gz 4202510 SHA256 03415a9fc0280263d9094e385ce08af1ad3daed2227baa8c258744e400cd97c2 SHA512 bc5b8d58128df458f80120d061da5b2e097c8ce4daa6ee9b7c5e1062a1074861e9e33f547f4a5c2005316d1ad9f8f3b2f3e2d5825492ba6fa0becf8fdf3a41ee WHIRLPOOL dc8a74fdd513fdeb0cf321498a504ef9803480ae254a2f7e65853f27867699a54311fcb0ad2c248d06fccd5d914eda20335fce9f6efd983e5d03bd59f6851a40 |
25 |
DIST mitaka-cinder-api-paste.ini 2416 SHA256 3794a5e34dace60474274e93a7346662eb03a485d1b9b67afded591e764aba9d SHA512 f6e3800557fa7efb562a69f80eea9b516c0ad2e54b9a013c92118bf91daaf2bdd2a9ced309626fab13fe9b979f0c768ac22bba63c7fa8aa3443004d50359d844 WHIRLPOOL 90e8c7bf065609e6a85d247c15b1022ea51bb94b000841c30a69d99c96082a08125fca58cf5b216990c6b746f52af5cedebbafc5b9450a91c0d32cdc21951952 |
26 |
@@ -7,3 +8,6 @@ DIST mitaka-cinder.conf.sample 125293 SHA256 458d51db85e57beebbe054f60fccd2c159d |
27 |
DIST newton-cinder-policy.json 6412 SHA256 3a140134201452c52a97eae9f4c45ea30a3a21cc7a30ee619ed37ab0723b6479 SHA512 3473b5790487bd037d54e4a1a89bab9d145bc34d137d52da2b6b311d2dfee2344fec75c6c96bc518a3e0b175fbd6cde71fb546406c0ef835898e3c1c88eb6d56 WHIRLPOOL f34dc729425fd82ddd9905c675fca9b765b4535dc87ec9d94acd1781c331e466f8688aace4954532e376e704cf3f1c8f4103f22e6838d4403c10311358e1ed2b |
28 |
DIST newton-cinder-volume.filters 11025 SHA256 c36bdb9abb4d97350db9971dae1c44a713911920362a0c6c5bc3cfe2701dd4f6 SHA512 311a636180a18bb45867d55f9d33f1eff053cc7b278b41149c58a14450ff8e6d2016d749cc3fb81d1976c4ab78f7701a908bd9c81eb6e9da31c20820a4eaff3d WHIRLPOOL 7496fffec8e42eb1c3bea39563cef8d48cb607b7de1ba8a4ac9a831b6def3dcbcfdf7d485aa81f52aa9bdf7600a51ba07ff85fbf88c5c70091ad88f8c01ca37e |
29 |
DIST newton-cinder.conf.sample 50793 SHA256 5179c86590fb5c9477ec838f1ccb8cd9c481e8c31384eb7a012f296c68e0ddc1 SHA512 bf3b5fa262d7df57ca8a496724df449eb6c49ea951c1384b216af334db7cb948af5f7a5f24ddcebd4c80cca40da65e8aaa3a65f09ae2e184794ec1bf9bf466db WHIRLPOOL 7798325f7da5e236d49c8aec4218ef1e50e8e1bf8466f5fdb7b51844c5e6059868c9e4286afecefa637acd0e1df5315de2ac787947a31f4c51978529a54e1862 |
30 |
+DIST ocata-cinder-policy.json 6614 SHA256 992b4454d27cacf1c61c10d7c412b2b9673e798029c55747106c31f341bc8800 SHA512 6a3da28674e7bf828a2be8de0b41e6abe59567d0abf2a41781580ba611ca888e072960f3e702e834a1599e6bbb49beb1cd37f7a32e35afaf8dfc73f2852e2302 WHIRLPOOL a60659ee3007417a27dab2b4d4a7b75693b44f185107e951698bc3ae2b472777c8dc208bae1149c81ebf4288aabb37323bec07952105c7e560cec4d8bacf1a92 |
31 |
+DIST ocata-cinder-volume.filters 11067 SHA256 831d60708583b716376e6e68c69d1f5e7ce103010e7831b136fc332f62f84373 SHA512 9600ca77a63db04844ab9d658ffd0d97abe1c669d91f69d126b364b2700d749cd45d7df1e31ffd7e80698157e9267c3138cae098f36d77995bab73afdf32ff9f WHIRLPOOL a0d1bdcf9b36365cdd7c7acc6674bee41aaf1b57cdb35bc5972b9339ca8811e68200d50fa1821065582d0326fca5bf7e89b9c03cfeca77997845dd0a6a9571a8 |
32 |
+DIST ocata-cinder.conf.sample 173024 SHA256 995620f977f2d8ea479985b523824170769aeb2c80e255a1f29bab16e869977b SHA512 bbecf45ad20b3193023a137b5c3237dfc15bd6a232dda5de631096bf55916eb0fffba7506eeffdc1a3c848ac042cb286dea44387ff0eef84ec7bbcaffb4aa58e WHIRLPOOL 8a51471ec37dbe7211b9a0f87c855a34b8641993ed7b8d6c9ae633d2f58e8c112988421032730dbe3fed642de89d0cd2dd347247cc8aeca163134f5334fb68f2 |
33 |
|
34 |
diff --git a/sys-cluster/cinder/cinder-10.0.0.ebuild b/sys-cluster/cinder/cinder-10.0.0.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000000..0889f36831 |
37 |
--- /dev/null |
38 |
+++ b/sys-cluster/cinder/cinder-10.0.0.ebuild |
39 |
@@ -0,0 +1,193 @@ |
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 user |
47 |
+ |
48 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
49 |
+HOMEPAGE="https://launchpad.net/cinder" |
50 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/cinder.conf.sample -> ocata-cinder.conf.sample |
51 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/policy.json -> ocata-cinder-policy.json |
52 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/volume.filters -> ocata-cinder-volume.filters |
53 |
+https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="Apache-2.0" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
58 |
+IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt" |
59 |
+REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )" |
60 |
+ |
61 |
+CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]" |
62 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ ${CDEPEND} |
64 |
+ app-admin/sudo" |
65 |
+ |
66 |
+RDEPEND=" |
67 |
+ ${CDEPEND} |
68 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
70 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
71 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
75 |
+ virtual/python-ipaddress[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/keystoneauth-2.18.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
79 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
82 |
+ !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/oslo-db-4.15.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/oslo-log-3.11.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/oslo-messaging-5.14.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-policy-1.17.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/oslo-versionedobjects-1.17.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
99 |
+ dev-python/paste[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/psutil-3.0.1[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] |
104 |
+ >=dev-python/python-barbicanclient-4.0.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/python-glanceclient-2.5.0[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
107 |
+ >=dev-python/python-novaclient-6.0.0[${PYTHON_USEDEP}] |
108 |
+ !~dev-python/python-novaclient-7.0.0[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
112 |
+ !~dev-python/requests-2.12.2[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
114 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
116 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
117 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
118 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/taskflow-2.7.0[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/rtslib-fb-2.1.43[${PYTHON_USEDEP}] |
121 |
+ !~dev-python/rtslib-fb-2.1.60[${PYTHON_USEDEP}] |
122 |
+ !~dev-python/rtslib-fb-2.1.61[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}] |
124 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
125 |
+ sqlite? ( |
126 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
127 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
128 |
+ ) |
129 |
+ mysql? ( |
130 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
131 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
132 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
133 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
134 |
+ ) |
135 |
+ postgres? ( |
136 |
+ >=dev-python/psycopg-2.5.0 |
137 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
138 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
139 |
+ ) |
140 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
141 |
+ >=dev-python/stevedore-1.17.1[${PYTHON_USEDEP}] |
142 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
143 |
+ >=dev-python/webob-1.6.0[${PYTHON_USEDEP}] |
144 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
145 |
+ >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/os-brick-1.8.0[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/os-win-1.4.0[${PYTHON_USEDEP}] |
148 |
+ >=dev-python/tooz-1.47.0[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
150 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
151 |
+ iscsi? ( |
152 |
+ tgt? ( sys-block/tgt ) |
153 |
+ sys-block/open-iscsi |
154 |
+ ) |
155 |
+ lvm? ( sys-fs/lvm2 ) |
156 |
+ memcached? ( net-misc/memcached ) |
157 |
+ app-emulation/qemu |
158 |
+ sys-fs/sysfsutils" |
159 |
+# qemu is needed for image conversion |
160 |
+ |
161 |
+#PATCHES=( |
162 |
+#) |
163 |
+ |
164 |
+pkg_pretend() { |
165 |
+ linux-info_pkg_setup |
166 |
+ CONFIG_CHECK_MODULES="" |
167 |
+ if use tcp; then |
168 |
+ CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP " |
169 |
+ fi |
170 |
+ if use rdma; then |
171 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_ISER " |
172 |
+ fi |
173 |
+ if use infiniband; then |
174 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS" |
175 |
+ fi |
176 |
+ if linux_config_exists; then |
177 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
178 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
179 |
+ done |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+pkg_setup() { |
184 |
+ enewgroup cinder |
185 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
186 |
+} |
187 |
+ |
188 |
+python_prepare_all() { |
189 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
190 |
+ distutils-r1_python_prepare_all |
191 |
+} |
192 |
+ |
193 |
+python_test() { |
194 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
195 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
196 |
+} |
197 |
+ |
198 |
+python_install_all() { |
199 |
+ distutils-r1_python_install_all |
200 |
+ keepdir /etc/cinder |
201 |
+ dodir /etc/cinder/rootwrap.d |
202 |
+ |
203 |
+ for svc in api scheduler volume; do |
204 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
205 |
+ done |
206 |
+ |
207 |
+ insinto /etc/cinder |
208 |
+ insopts -m0640 -o cinder -g cinder |
209 |
+ doins "etc/cinder/api-httpd.conf" |
210 |
+ doins "etc/cinder/logging_sample.conf" |
211 |
+ doins "etc/cinder/rootwrap.conf" |
212 |
+ doins "etc/cinder/api-paste.ini" |
213 |
+ newins "${DISTDIR}/ocata-cinder-policy.json" "policy.json" |
214 |
+ newins "${DISTDIR}/ocata-cinder.conf.sample" "cinder.conf.sample" |
215 |
+ insinto /etc/cinder/rootwrap.d |
216 |
+ newins "${DISTDIR}/ocata-cinder-volume.filters" "volume.filters" |
217 |
+ |
218 |
+ dodir /var/log/cinder |
219 |
+ fowners cinder:cinder /var/log/cinder |
220 |
+ |
221 |
+ #add sudoers definitions for user nova |
222 |
+ insinto /etc/sudoers.d/ |
223 |
+ insopts -m 0440 -o root -g root |
224 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
225 |
+} |
226 |
+ |
227 |
+pkg_postinst() { |
228 |
+ if use iscsi ; then |
229 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
230 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
231 |
+ fi |
232 |
+} |
233 |
|
234 |
diff --git a/sys-cluster/cinder/cinder-2017.1.9999.ebuild b/sys-cluster/cinder/cinder-2017.1.9999.ebuild |
235 |
new file mode 100644 |
236 |
index 0000000000..1de239bad2 |
237 |
--- /dev/null |
238 |
+++ b/sys-cluster/cinder/cinder-2017.1.9999.ebuild |
239 |
@@ -0,0 +1,194 @@ |
240 |
+# Copyright 1999-2017 Gentoo Foundation |
241 |
+# Distributed under the terms of the GNU General Public License v2 |
242 |
+ |
243 |
+EAPI=6 |
244 |
+PYTHON_COMPAT=( python2_7 python3_4 ) |
245 |
+ |
246 |
+inherit distutils-r1 eutils git-r3 linux-info user |
247 |
+ |
248 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
249 |
+HOMEPAGE="https://launchpad.net/cinder" |
250 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/cinder.conf.sample -> ocata-cinder.conf.sample |
251 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/policy.json -> ocata-cinder-policy.json |
252 |
+https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/ocata/volume.filters -> ocata-cinder-volume.filters" |
253 |
+EGIT_REPO_URI="https://github.com/openstack/cinder.git" |
254 |
+EGIT_BRANCH="stable/ocata" |
255 |
+ |
256 |
+LICENSE="Apache-2.0" |
257 |
+SLOT="0" |
258 |
+KEYWORDS="" |
259 |
+IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt" |
260 |
+REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )" |
261 |
+ |
262 |
+CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]" |
263 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
264 |
+ ${CDEPEND} |
265 |
+ app-admin/sudo" |
266 |
+ |
267 |
+RDEPEND=" |
268 |
+ ${CDEPEND} |
269 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
270 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
271 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
272 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
273 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
274 |
+ >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] |
275 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
276 |
+ virtual/python-ipaddress[${PYTHON_USEDEP}] |
277 |
+ >=dev-python/keystoneauth-2.18.0[${PYTHON_USEDEP}] |
278 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
279 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
280 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
281 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
282 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
283 |
+ !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] |
284 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
285 |
+ >=dev-python/oslo-context-2.9.0[${PYTHON_USEDEP}] |
286 |
+ >=dev-python/oslo-db-4.15.0[${PYTHON_USEDEP}] |
287 |
+ >=dev-python/oslo-log-3.11.0[${PYTHON_USEDEP}] |
288 |
+ >=dev-python/oslo-messaging-5.14.0[${PYTHON_USEDEP}] |
289 |
+ >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}] |
290 |
+ >=dev-python/oslo-policy-1.17.0[${PYTHON_USEDEP}] |
291 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
292 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
293 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
294 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
295 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
296 |
+ >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}] |
297 |
+ >=dev-python/oslo-versionedobjects-1.17.0[${PYTHON_USEDEP}] |
298 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
299 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
300 |
+ dev-python/paste[${PYTHON_USEDEP}] |
301 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
302 |
+ >=dev-python/psutil-3.0.1[${PYTHON_USEDEP}] |
303 |
+ >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}] |
304 |
+ >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] |
305 |
+ >=dev-python/python-barbicanclient-4.0.0[${PYTHON_USEDEP}] |
306 |
+ >=dev-python/python-glanceclient-2.5.0[${PYTHON_USEDEP}] |
307 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
308 |
+ >=dev-python/python-novaclient-6.0.0[${PYTHON_USEDEP}] |
309 |
+ !~dev-python/python-novaclient-7.0.0[${PYTHON_USEDEP}] |
310 |
+ >=dev-python/python-swiftclient-3.2.0[${PYTHON_USEDEP}] |
311 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
312 |
+ >=dev-python/requests-2.10.0[${PYTHON_USEDEP}] |
313 |
+ !~dev-python/requests-2.12.2[${PYTHON_USEDEP}] |
314 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
315 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
316 |
+ >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] |
317 |
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}] |
318 |
+ !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')] |
319 |
+ !~dev-python/routes-2.3[${PYTHON_USEDEP}] |
320 |
+ >=dev-python/taskflow-2.7.0[${PYTHON_USEDEP}] |
321 |
+ >=dev-python/rtslib-fb-2.1.43[${PYTHON_USEDEP}] |
322 |
+ !~dev-python/rtslib-fb-2.1.60[${PYTHON_USEDEP}] |
323 |
+ !~dev-python/rtslib-fb-2.1.61[${PYTHON_USEDEP}] |
324 |
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}] |
325 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
326 |
+ sqlite? ( |
327 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
328 |
+ <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}] |
329 |
+ ) |
330 |
+ mysql? ( |
331 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
332 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
333 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
334 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
335 |
+ ) |
336 |
+ postgres? ( |
337 |
+ >=dev-python/psycopg-2.5.0 |
338 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
339 |
+ <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] |
340 |
+ ) |
341 |
+ >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}] |
342 |
+ >=dev-python/stevedore-1.17.1[${PYTHON_USEDEP}] |
343 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
344 |
+ >=dev-python/webob-1.6.0[${PYTHON_USEDEP}] |
345 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
346 |
+ >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}] |
347 |
+ >=dev-python/os-brick-1.8.0[${PYTHON_USEDEP}] |
348 |
+ >=dev-python/os-win-1.4.0[${PYTHON_USEDEP}] |
349 |
+ >=dev-python/tooz-1.47.0[${PYTHON_USEDEP}] |
350 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
351 |
+ >=dev-python/castellan-0.4.0[${PYTHON_USEDEP}] |
352 |
+ iscsi? ( |
353 |
+ tgt? ( sys-block/tgt ) |
354 |
+ sys-block/open-iscsi |
355 |
+ ) |
356 |
+ lvm? ( sys-fs/lvm2 ) |
357 |
+ memcached? ( net-misc/memcached ) |
358 |
+ app-emulation/qemu |
359 |
+ sys-fs/sysfsutils" |
360 |
+# qemu is needed for image conversion |
361 |
+ |
362 |
+#PATCHES=( |
363 |
+#) |
364 |
+ |
365 |
+pkg_pretend() { |
366 |
+ linux-info_pkg_setup |
367 |
+ CONFIG_CHECK_MODULES="" |
368 |
+ if use tcp; then |
369 |
+ CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP " |
370 |
+ fi |
371 |
+ if use rdma; then |
372 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_ISER " |
373 |
+ fi |
374 |
+ if use infiniband; then |
375 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS" |
376 |
+ fi |
377 |
+ if linux_config_exists; then |
378 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
379 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
380 |
+ done |
381 |
+ fi |
382 |
+} |
383 |
+ |
384 |
+pkg_setup() { |
385 |
+ enewgroup cinder |
386 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
387 |
+} |
388 |
+ |
389 |
+python_prepare_all() { |
390 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
391 |
+ distutils-r1_python_prepare_all |
392 |
+} |
393 |
+ |
394 |
+python_test() { |
395 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
396 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
397 |
+} |
398 |
+ |
399 |
+python_install_all() { |
400 |
+ distutils-r1_python_install_all |
401 |
+ keepdir /etc/cinder |
402 |
+ dodir /etc/cinder/rootwrap.d |
403 |
+ |
404 |
+ for svc in api scheduler volume; do |
405 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
406 |
+ done |
407 |
+ |
408 |
+ insinto /etc/cinder |
409 |
+ insopts -m0640 -o cinder -g cinder |
410 |
+ doins "etc/cinder/api-httpd.conf" |
411 |
+ doins "etc/cinder/logging_sample.conf" |
412 |
+ doins "etc/cinder/rootwrap.conf" |
413 |
+ doins "etc/cinder/api-paste.ini" |
414 |
+ newins "${DISTDIR}/ocata-cinder-policy.json" "policy.json" |
415 |
+ newins "${DISTDIR}/ocata-cinder.conf.sample" "cinder.conf.sample" |
416 |
+ insinto /etc/cinder/rootwrap.d |
417 |
+ newins "${DISTDIR}/ocata-cinder-volume.filters" "volume.filters" |
418 |
+ |
419 |
+ dodir /var/log/cinder |
420 |
+ fowners cinder:cinder /var/log/cinder |
421 |
+ |
422 |
+ #add sudoers definitions for user nova |
423 |
+ insinto /etc/sudoers.d/ |
424 |
+ insopts -m 0440 -o root -g root |
425 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
426 |
+} |
427 |
+ |
428 |
+pkg_postinst() { |
429 |
+ if use iscsi ; then |
430 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
431 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
432 |
+ fi |
433 |
+} |