1 |
commit: 89fe2c3441ddd1fe353364aa5082ac6392acbfeb |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 28 21:50:08 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 28 21:51:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89fe2c34 |
7 |
|
8 |
sys-cluster/cinder: PIKE |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sys-cluster/cinder/Manifest | 1 + |
13 |
sys-cluster/cinder/cinder-2017.2.9999.ebuild | 210 +++++++++++++++++++++++++++ |
14 |
2 files changed, 211 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/cinder/Manifest b/sys-cluster/cinder/Manifest |
17 |
index 8b955db0aab..eb3d4ae8033 100644 |
18 |
--- a/sys-cluster/cinder/Manifest |
19 |
+++ b/sys-cluster/cinder/Manifest |
20 |
@@ -7,3 +7,4 @@ DIST newton-cinder.conf.sample 50793 SHA256 5179c86590fb5c9477ec838f1ccb8cd9c481 |
21 |
DIST ocata-cinder-policy.json 6614 SHA256 992b4454d27cacf1c61c10d7c412b2b9673e798029c55747106c31f341bc8800 SHA512 6a3da28674e7bf828a2be8de0b41e6abe59567d0abf2a41781580ba611ca888e072960f3e702e834a1599e6bbb49beb1cd37f7a32e35afaf8dfc73f2852e2302 WHIRLPOOL a60659ee3007417a27dab2b4d4a7b75693b44f185107e951698bc3ae2b472777c8dc208bae1149c81ebf4288aabb37323bec07952105c7e560cec4d8bacf1a92 |
22 |
DIST ocata-cinder-volume.filters 11067 SHA256 831d60708583b716376e6e68c69d1f5e7ce103010e7831b136fc332f62f84373 SHA512 9600ca77a63db04844ab9d658ffd0d97abe1c669d91f69d126b364b2700d749cd45d7df1e31ffd7e80698157e9267c3138cae098f36d77995bab73afdf32ff9f WHIRLPOOL a0d1bdcf9b36365cdd7c7acc6674bee41aaf1b57cdb35bc5972b9339ca8811e68200d50fa1821065582d0326fca5bf7e89b9c03cfeca77997845dd0a6a9571a8 |
23 |
DIST ocata-cinder.conf.sample 173024 SHA256 995620f977f2d8ea479985b523824170769aeb2c80e255a1f29bab16e869977b SHA512 bbecf45ad20b3193023a137b5c3237dfc15bd6a232dda5de631096bf55916eb0fffba7506eeffdc1a3c848ac042cb286dea44387ff0eef84ec7bbcaffb4aa58e WHIRLPOOL 8a51471ec37dbe7211b9a0f87c855a34b8641993ed7b8d6c9ae633d2f58e8c112988421032730dbe3fed642de89d0cd2dd347247cc8aeca163134f5334fb68f2 |
24 |
+DIST pike-cinder.conf.sample 185310 SHA256 be8aa4e31f2854a100628188ea6536cd27788c4979b8072b98f35ac895ba9797 SHA512 12c44b7a31888fbf4c70e037a2f5d0b778018e10bd0fc1cb97391bbe2fc6f97bbe4bec0d1504513ee0235ce50decda6883fe64a7d8fd5e329d8ad73e6bb74654 WHIRLPOOL bcf799affb6c2b9adfd133b0630fb1cd4f4a185c3e1ed583d0610b3dc1160757d4a63766df7f2896eefb12a70f0544072a485ef62c8a59c1917eceb730029648 |
25 |
|
26 |
diff --git a/sys-cluster/cinder/cinder-2017.2.9999.ebuild b/sys-cluster/cinder/cinder-2017.2.9999.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b470b8b2fc3 |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/cinder/cinder-2017.2.9999.ebuild |
31 |
@@ -0,0 +1,210 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
37 |
+ |
38 |
+inherit distutils-r1 eutils git-r3 linux-info user |
39 |
+ |
40 |
+DESCRIPTION="Cinder is the OpenStack Block storage service, a spin out of nova-volumes" |
41 |
+HOMEPAGE="https://launchpad.net/cinder" |
42 |
+SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/cinder/pike/cinder.conf.sample -> pike-cinder.conf.sample" |
43 |
+EGIT_REPO_URI="https://github.com/openstack/cinder.git" |
44 |
+EGIT_BRANCH="stable/pike" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="" |
49 |
+IUSE="+api +scheduler +volume infiniband iscsi lvm mysql +memcached postgres rdma sqlite +tcp test +tgt" |
50 |
+REQUIRED_USE="|| ( mysql postgres sqlite ) iscsi? ( tgt ) infiniband? ( rdma )" |
51 |
+ |
52 |
+CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
53 |
+ !~dev-python/pbr-2.1.0" |
54 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+ ${CDEPEND} |
56 |
+ app-admin/sudo" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ ${CDEPEND} |
60 |
+ >=dev-python/Babel-2.3.4[${PYTHON_USEDEP}] |
61 |
+ !~dev-python/Babel-2.4.0[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}] |
63 |
+ dev-python/enum34[$(python_gen_usedep 'python2_7')] |
64 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
65 |
+ !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
66 |
+ <dev-python/eventlet-0.21.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
70 |
+ virtual/python-ipaddress[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/keystoneauth-3.1.0[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}] |
74 |
+ !~dev-python/lxml-3.7.0[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/oauth2client-1.5.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}] |
77 |
+ !~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}] |
78 |
+ !~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/oslo-context-2.14.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/oslo-db-4.24.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/oslo-log-3.22.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/oslo-messaging-5.24.2[${PYTHON_USEDEP}] |
84 |
+ !~dev-python/oslo-messaging-5.25.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/oslo-middleware-3.27.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/oslo-policy-1.23.0[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/oslo-privsep-1.9.0[${PYTHON_USEDEP}] |
88 |
+ !~dev-python/oslo-privsep-1.17.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/oslo-reports-0.6.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/oslo-rootwrap-5.0.0[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/oslo-serialization-1.10.0[${PYTHON_USEDEP}] |
92 |
+ !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-service-1.10.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-utils-3.20.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-versionedobjects-1.17.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/paramiko-2.0[${PYTHON_USEDEP}] |
98 |
+ dev-python/paste[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/python-barbicanclient-4.0.0[${PYTHON_USEDEP}] |
103 |
+ !~dev-python/python-barbicanclient-4.5.0[${PYTHON_USEDEP}] |
104 |
+ !~dev-python/python-barbicanclient-4.5.1[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/python-glanceclient-2.8.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.14.2[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
113 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
115 |
+ >=dev-python/taskflow-2.7.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/rtslib-fb-2.1.43[${PYTHON_USEDEP}] |
117 |
+ !~dev-python/rtslib-fb-2.1.60[${PYTHON_USEDEP}] |
118 |
+ !~dev-python/rtslib-fb-2.1.61[${PYTHON_USEDEP}] |
119 |
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
121 |
+ sqlite? ( |
122 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
123 |
+ !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}] |
124 |
+ !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}] |
125 |
+ !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}] |
126 |
+ !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}] |
127 |
+ ) |
128 |
+ mysql? ( |
129 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
130 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
131 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
132 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
133 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
134 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
135 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
136 |
+ ) |
137 |
+ postgres? ( |
138 |
+ >=dev-python/psycopg-2.5.0[${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 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
147 |
+ ~dev-python/suds-0.6[${PYTHON_USEDEP}] |
148 |
+ >=dev-python/webob-1.7.1[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
150 |
+ !~dev-python/oslo-i18n-3.15.0[${PYTHON_USEDEP}] |
151 |
+ >=dev-python/oslo-vmware-2.17.0[${PYTHON_USEDEP}] |
152 |
+ >=dev-python/os-brick-1.15.2[${PYTHON_USEDEP}] |
153 |
+ >=dev-python/os-win-2.0.0[${PYTHON_USEDEP}] |
154 |
+ >=dev-python/tooz-1.47.0[${PYTHON_USEDEP}] |
155 |
+ >=dev-python/google-api-python-client-1.4.2[${PYTHON_USEDEP}] |
156 |
+ >=dev-python/castellan-0.7.0[${PYTHON_USEDEP}] |
157 |
+ >=dev-python/cryptography-1.6[${PYTHON_USEDEP}] |
158 |
+ !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] |
159 |
+ iscsi? ( |
160 |
+ tgt? ( sys-block/tgt ) |
161 |
+ sys-block/open-iscsi |
162 |
+ ) |
163 |
+ lvm? ( sys-fs/lvm2 ) |
164 |
+ memcached? ( net-misc/memcached ) |
165 |
+ app-emulation/qemu |
166 |
+ sys-fs/sysfsutils" |
167 |
+# qemu is needed for image conversion |
168 |
+ |
169 |
+#PATCHES=( |
170 |
+#) |
171 |
+ |
172 |
+pkg_pretend() { |
173 |
+ linux-info_pkg_setup |
174 |
+ CONFIG_CHECK_MODULES="" |
175 |
+ if use tcp; then |
176 |
+ CONFIG_CHECK_MODULES+="SCSI_ISCSI_ATTRS ISCSI_TCP " |
177 |
+ fi |
178 |
+ if use rdma; then |
179 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_ISER " |
180 |
+ fi |
181 |
+ if use infiniband; then |
182 |
+ CONFIG_CHECK_MODULES+="INFINIBAND_IPOIB INFINIBAND_USER_MAD INFINIBAND_USER_ACCESS" |
183 |
+ fi |
184 |
+ if linux_config_exists; then |
185 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
186 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
187 |
+ done |
188 |
+ fi |
189 |
+} |
190 |
+ |
191 |
+pkg_setup() { |
192 |
+ enewgroup cinder |
193 |
+ enewuser cinder -1 -1 /var/lib/cinder cinder |
194 |
+} |
195 |
+ |
196 |
+python_prepare_all() { |
197 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
198 |
+ distutils-r1_python_prepare_all |
199 |
+} |
200 |
+ |
201 |
+python_test() { |
202 |
+ # Let's track progress of this # https://bugs.launchpad.net/swift/+bug/1249727 |
203 |
+ nosetests -I test_wsgi.py cinder/tests/ || die "tests failed under python2.7" |
204 |
+} |
205 |
+ |
206 |
+python_install_all() { |
207 |
+ distutils-r1_python_install_all |
208 |
+ keepdir /etc/cinder |
209 |
+ dodir /etc/cinder/rootwrap.d |
210 |
+ |
211 |
+ for svc in api scheduler volume; do |
212 |
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc} |
213 |
+ done |
214 |
+ |
215 |
+ insinto /etc/cinder |
216 |
+ insopts -m0640 -o cinder -g cinder |
217 |
+ doins "etc/cinder/api-httpd.conf" |
218 |
+ doins "etc/cinder/logging_sample.conf" |
219 |
+ doins "etc/cinder/rootwrap.conf" |
220 |
+ doins "etc/cinder/api-paste.ini" |
221 |
+ doins "etc/cinder/policy.json" |
222 |
+ doins "etc/cinder/resource_filters.json" |
223 |
+ newins "${DISTDIR}/pike-cinder.conf.sample" "cinder.conf.sample" |
224 |
+ insinto /etc/cinder/rootwrap.d |
225 |
+ doins "etc/cinder/rootwrap.d/volume.filters" |
226 |
+ |
227 |
+ dodir /var/log/cinder |
228 |
+ fowners cinder:cinder /var/log/cinder |
229 |
+ |
230 |
+ #add sudoers definitions for user nova |
231 |
+ insinto /etc/sudoers.d/ |
232 |
+ insopts -m 0440 -o root -g root |
233 |
+ newins "${FILESDIR}/cinder.sudoersd" cinder |
234 |
+} |
235 |
+ |
236 |
+pkg_postinst() { |
237 |
+ if use iscsi ; then |
238 |
+ elog "Cinder needs tgtd to be installed and running to work with iscsi" |
239 |
+ elog "it also needs 'include /var/lib/cinder/volumes/*' in /etc/tgt/targets.conf" |
240 |
+ fi |
241 |
+} |