Merge lp:~zulcss/ubuntu/saucy/cinder/2013.2.2 into lp:~ubuntu-server-dev/cinder/grizzly

Proposed by Chuck Short
Status: Superseded
Proposed branch: lp:~zulcss/ubuntu/saucy/cinder/2013.2.2
Merge into: lp:~ubuntu-server-dev/cinder/grizzly
Diff against target: 562 lines (+359/-54) (has conflicts)
13 files modified
debian/changelog (+207/-0)
debian/cinder-common.install (+1/-0)
debian/control (+50/-37)
debian/patches/fix-sqlalchemy-requirements.patch (+15/-0)
debian/patches/fix_cinder_dependencies.patch (+0/-11)
debian/patches/revert-stable-havana-requirements.patch (+25/-0)
debian/patches/series (+0/-1)
debian/rules (+8/-5)
debian/tests/cinder-daemons (+15/-0)
debian/tests/cinder-volume (+17/-0)
debian/tests/control (+3/-0)
debian/tests/python-cinder (+14/-0)
debian/tests/test_import_cinder.py (+4/-0)
Text conflict in debian/changelog
Text conflict in debian/control
Text conflict in debian/rules
To merge this branch: bzr merge lp:~zulcss/ubuntu/saucy/cinder/2013.2.2
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+208152@code.launchpad.net

This proposal has been superseded by a proposal from 2014-02-25.

Description of the change

2013.2.2

To post a comment you must log in.
153. By Chuck Short

Re-add missing bits

Unmerged revisions

153. By Chuck Short

Re-add missing bits

152. By Chuck Short

Releasing 2013.2.2

151. By Adam Gandelman

2013.2.1

150. By Adam Gandelman

d/changelog: typo

149. By Adam Gandelman

debian/pathces/revert-stable-havana-requirements.patch: Revert
version bumps to dependencies in stable/havana back to what was
shipped with Saucy.

148. By Adam Gandelman

d/patches: 2013.2.1 refresh

147. By Chuck Short

2013.2

146. By James Page

releasing package cinder version 1:2013.2~rc3-0ubuntu1

145. By James Page

releasing package cinder version 1:2013.2~rc2-0ubuntu1

144. By Chuck Short

2013.2~rc1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-10-18 19:14:58 +0000
3+++ debian/changelog 2014-02-25 15:15:47 +0000
4@@ -1,3 +1,4 @@
5+<<<<<<< TREE
6 cinder (1:2013.1.4-0ubuntu1) raring-proposed; urgency=low
7
8 * Resynchronize with stable/grizzly (6e764cb) (LP: #1241202):
9@@ -118,6 +119,212 @@
10
11 -- Adam Gandelman <adamg@ubuntu.com> Tue, 14 May 2013 07:49:04 -0700
12
13+=======
14+cinder (1:2013.2.2-0ubuntu1) saucy-proposed; urgency=low
15+
16+ * Resynchronize with stable/havana (67e4b38) (LP: #1284643):
17+ - [ec8ce6c] rate-limiting doesn't work LP: 1259957
18+ - [5228001] Cinder Migrate from NFS fails due to nfs_mount_point_base not
19+ being provided LP: 1238085
20+ - [ace214a] migrate_volume dest_vg existence is wrong LP: 1258203
21+ - [36b7596] lvm_mirrors in volume_migration should be converted to int
22+ LP: 1258133
23+ - [6687331] NFS/GlusterFS drivers should validate format of configured
24+ shares LP: 1267253
25+ - [3d967e0] Copy image to volume iSCSI multipath doesn't work properly if
26+ there are different targets associated with different portals for a
27+ mulitpath device. LP: 1266048
28+ - [77fade5] NetApp cinder driver reports 0 free space for the first 60
29+ seconds LP: 1253660
30+ - [f02d4fe] GlusterFS: allow snapshot_delete when snapshot info does not
31+ exist LP: 1252864
32+ - [240c81d] GlusterFS: Use correct base argument when deleting attached
33+ snaps LP: 1262880
34+ - [4470fdb] No notification sent deleting a volume that doesn't have a real
35+ backing volume LP: 1257053
36+ - [f9e1943] cinder does not handle missing volume group gracefully (stuck
37+ in "creating") LP: 1242942
38+ - [ab12130] Bump stable/havana next version to 2013.2.3
39+ - [8b5fb84] Bump stable/havana next version to 2013.2.2
40+ - [67e4b38] LVM brick instantiation fails on volume_migration LP: 1258128
41+
42+ -- Chuck Short <zulcss@ubuntu.com> Tue, 25 Feb 2014 08:57:25 -0500
43+
44+cinder (1:2013.2.1-0ubuntu1) saucy-proposed; urgency=low
45+
46+ * Resynchronize with stable/havana (eb78fee) (LP: #1262788):
47+ - [d8a0cd9] GlusterFS: errors when trying to boot instance from cloned
48+ volume LP: 1244238
49+ - [550f439] SSC attribute netapp_mirrored is not followed LP: 1242808
50+ - [0d3c303] SSC attributes netapp_compression and netapp_dedup are not
51+ followed LP: 1236839
52+ - [243ad85] Brick HostDriver test failure LP: 1244418
53+ - [42f3e68] SSC volume filtering for extra specs can result in inconsistent
54+ list LP: 1243081
55+ - [2e5dc22] Broken NetAppDirect7modeISCSIDriver reports incorrect free
56+ capacity, scheduler won't balance between multiple Netapp backends
57+ LP: 1238967
58+ - [ad05556] copy image to volume is broken for non-local volumes
59+ LP: 1243980
60+ - [5f7d263] check_ssh_injection not handling quoted args correctly
61+ LP: 1244415
62+ - [709130b] don't secure delete thin provisioned volumes or snapshots
63+ LP: 1240299
64+ - [986d243] invalid volume when source image virtual size is bigger than
65+ the requested size LP: 1235358
66+ - [df6d45f] invalid volume when source image virtual size is bigger than
67+ the requested size LP: 1235358
68+ - [78609c1] Properly handle volume cleanup with RBD driver LP: 1254318
69+ - [0801927] KeyError from storwize driver when 'host' is not provided to
70+ terminate_connection LP: 1244257
71+ - [e96e33c] GlusterFS: cloned volume has incorrect permissions LP: 1254768
72+ - [4529886] GlusterFS: operations that modify data require locking
73+ LP: 1251425
74+ - [3a58261] cinder backup should use pipe for diff transfer LP: 1244464
75+ - [3591f0d] Havana cinder requires glance API V2 LP: 1252549
76+ - [871d7d6] Excessive queries for API volumes/detail extensions LP: 1197612
77+ - [22a7101] Ensure ThinLVM LV is active when cloning LP: 1252423
78+ - [c5d4246] Excessive queries for API volumes/detail extensions LP: 1197612
79+ - [395ec74] Excessive queries for API volumes/detail extensions LP: 1197612
80+ - [1825386] Excessive queries for API volumes/detail extensions LP: 1197612
81+ - [430f0b9] [messaging] QPID broadcast RPC requests to all servers for a
82+ given topic LP: 1257293
83+ - [eb78fee] Updated from global requirements
84+
85+ -- Adam Gandelman <adamg@ubuntu.com> Thu, 19 Dec 2013 11:45:31 -0800
86+
87+cinder (1:2013.2-0ubuntu1) saucy; urgency=low
88+
89+ * New upstream release (LP: #1236462).
90+
91+ -- Chuck Short <zulcss@ubuntu.com> Thu, 17 Oct 2013 10:00:43 -0400
92+
93+cinder (1:2013.2~rc3-0ubuntu1) saucy; urgency=low
94+
95+ * New upstream release candidate (LP: #1240254).
96+
97+ -- James Page <james.page@ubuntu.com> Wed, 16 Oct 2013 08:59:28 +0100
98+
99+cinder (1:2013.2~rc2-0ubuntu1) saucy; urgency=low
100+
101+ * New upstream release candidate (LP: #1239156).
102+
103+ -- James Page <james.page@ubuntu.com> Sat, 12 Oct 2013 16:52:11 +0100
104+
105+cinder (1:2013.2~rc1-0ubuntu1) saucy; urgency=low
106+
107+ * New upstream release candidate.
108+ * debian/patches/skip-sqlachemy-failures.patch: Dropped
109+ * debian/patches/fix-sqlalchemy-requirements.patch: Refreshed.
110+ * debian/patches/fix-babel-requirements.patch: Revert dependency requirement
111+ for python-babel.
112+ * debian/control:
113+ - Dropped python-nose and python-setuptool-git.
114+ - Added python-netaddr as a build-dependency. (LP: #1227153)
115+ - Added python-six as a build-dependency.
116+ - Added versioned dependencies to python-pbr, python-amqplib,
117+ python-glanceclient, python-novaclient, and python-swiftclient,
118+ python-lxml, python-webob, python-oslo.config, python-sqlalchemy,
119+ python-fixtures, python-testtools, and python-fixtures
120+ - Bumped versioned dependencies for python-eventlet, python-hp3parclient,
121+ python-keystoneclient, and python-novaclient
122+
123+ -- Chuck Short <zulcss@ubuntu.com> Fri, 04 Oct 2013 08:40:26 -0400
124+
125+cinder (1:2013.2~b3-0ubuntu1) saucy; urgency=low
126+
127+ [ James Page ]
128+ * d/control: Switch ceph-common -> python-ceph inline with upstream
129+ refactoring of Ceph RBD driver, move to Suggests of python-cinder.
130+ (LP: #1190791).
131+
132+ [ Adam Gandelman ]
133+ * debian/patches/avoid_paramiko_vers_depends.patch: Dropped, no longer
134+ required.
135+ * Add minimum requirement python-greenlet (>= 0.3.2).
136+ * Add minimum requirement python-eventlet (>= 0.12.0).
137+ * Add minimum requirement python-paramiko (>= 1.8).
138+
139+ [ Chuck Short ]
140+ * New upstream release.
141+ * debian/patches/skip-sqlachemy-failures.patch: Skip testfailures
142+ with sqlalchemy 0.8 until they are fixed upstream.
143+ * debian/control: Add python-babel to build-depends.
144+ * debian/control: Add python-novaclient to build-depends.
145+
146+ -- Chuck Short <zulcss@ubuntu.com> Sun, 08 Sep 2013 21:09:46 -0400
147+
148+cinder (1:2013.2~b2-0ubuntu3) saucy; urgency=low
149+
150+ * debian/patches/fix-sqlalchemy-requirements.patch: Fix requirements for sqlalchemy
151+ 0.8.
152+
153+ -- Chuck Short <zulcss@ubuntu.com> Mon, 22 Jul 2013 10:03:52 -0400
154+
155+cinder (1:2013.2~b2-0ubuntu2) saucy; urgency=low
156+
157+ * d/rules: Disable test parallel execution; causing FTBFS when high
158+ levels of concurrency occur on buildds.
159+
160+ -- James Page <james.page@ubuntu.com> Sun, 21 Jul 2013 10:10:10 +0100
161+
162+cinder (1:2013.2~b2-0ubuntu1) saucy; urgency=low
163+
164+ [ Chuck Short ]
165+ * debian/patches/avoid_paramiko_vers_depends.patch: Refreshed
166+ * debian/control: Add missing testrepostory.
167+ * debian/rules: Use testr directly.
168+
169+ [ Adam Gandelman ]
170+ * debian/control:
171+ - Add minimum requirement python-anyjson (>= 0.3.3).
172+ - Add minimum requirement python-keystoneclient (>= 0.2.3).
173+ - Add minimum requirement python-kombu (>= 2.5.12).
174+
175+ [ James Page ]
176+ * New upstream release.
177+ * d/control: Update VCS fields for new branch locations.
178+ * d/rules: Run unit tests in parallel.
179+
180+ -- James Page <james.page@ubuntu.com> Fri, 19 Jul 2013 14:14:40 +0100
181+
182+cinder (1:2013.2~b1-0ubuntu2) saucy; urgency=low
183+
184+ [ Chuck Short ]
185+ * debian/patches/avoid_paramiko_vers_depends.patch: Refreshed
186+
187+ [ Adam Gandelman ]
188+ * debian/control: Bump min. stevedore version >= 0.9.
189+
190+ [Yolanda Robla]
191+ * debian/tests: Added autopkgtests.
192+
193+ -- Chuck Short <zulcss@ubuntu.com> Wed, 19 Jun 2013 12:45:18 -0500
194+
195+cinder (1:2013.2~b1-0ubuntu1) saucy; urgency=low
196+
197+ [ Chuck Short ]
198+ * New upstream version.
199+ * debian/patches/fix_cinder_dependencies.patch: Dropped.
200+ * debian/control: Bump standards version to 3.9.4.
201+ * debian/control: Add python-pbr and python-d2to1 to build-depends.
202+ * debian/control: Add python-testtools and python-fixtures to build-depends
203+ * debian/rules: Add work around to remove wonky setup.py setup
204+ * debian/cinder-common.install: Add cinder-rpc-zmq-receiver binary.
205+
206+ [ James Page ]
207+ * debian/control: Drop surplus dependency on python-glance (LP: #1175600).
208+ * debian/control,rules: Drop dependency on pep8, don't run pep8 tests during
209+ package build process (its just way to late).
210+ * debian/control: Drop surplus BD on python-cheetah.
211+
212+ [ Adam Gandelman ]
213+ * debian/patches/avoid_paramiko_vers_depends.patch: Avoid version
214+ requirement on paramiko.
215+
216+ -- Chuck Short <zulcss@ubuntu.com> Fri, 31 May 2013 10:01:03 -0500
217+
218+>>>>>>> MERGE-SOURCE
219 cinder (1:2013.1-0ubuntu2) raring; urgency=low
220
221 * debian/control: Bump minimum stevedore version 0.8.
222
223=== modified file 'debian/cinder-common.install'
224--- debian/cinder-common.install 2013-02-20 10:31:01 +0000
225+++ debian/cinder-common.install 2014-02-25 15:15:47 +0000
226@@ -6,3 +6,4 @@
227 etc/cinder/rootwrap.conf etc/cinder
228 usr/bin/cinder-manage
229 usr/bin/cinder-rootwrap
230+usr/bin/cinder-rpc-zmq-receiver
231
232=== modified file 'debian/control'
233--- debian/control 2013-08-14 17:39:08 +0000
234+++ debian/control 2014-02-25 15:15:47 +0000
235@@ -4,72 +4,86 @@
236 Maintainer: Chuck Short <zulcss@ubuntu.com>
237 Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6)
238 Build-Depends-Indep:
239- pep8,
240- python-amqplib,
241- python-anyjson,
242- python-cheetah,
243+ python-amqplib (>= 0.6.1),
244+ python-anyjson (>= 0.3.3),
245+ python-babel,
246 python-coverage,
247- python-eventlet,
248- python-glanceclient,
249- python-greenlet,
250- python-hp3parclient (>= 1.0.0),
251+ python-d2to1,
252+ python-eventlet (>= 0.13.0),
253+ python-fixtures (>= 0.3.14),
254+ python-glanceclient (>= 1:0.9.0),
255+ python-greenlet (>= 0.3.2),
256+ python-hp3parclient (>= 2.0.0),
257 python-iso8601,
258- python-keystoneclient,
259- python-kombu,
260+ python-keystoneclient (>= 1:0.3.0),
261+ python-kombu (>= 2.5.12),
262 python-lockfile,
263- python-lxml,
264+ python-lxml (>= 2.3),
265 python-migrate,
266 python-mock,
267 python-mox,
268 python-mysqldb,
269- python-nose,
270- python-oslo.config,
271- python-paramiko,
272+ python-netaddr,
273+ python-novaclient (>= 1:2.15.0),
274+ python-oslo.config (>= 1:1.1.0),
275+ python-paramiko (>= 1.8),
276 python-paste,
277 python-pastedeploy,
278+ python-pbr (>= 0.5.21),
279 python-routes,
280- python-swiftclient,
281 python-setuptools,
282- python-setuptools-git,
283+ python-six,
284 python-sphinx,
285- python-sqlalchemy,
286- python-stevedore (>= 0.8),
287+ python-sqlalchemy (>= 0.8.2),
288+ python-stevedore (>= 0.10),
289 python-suds,
290- python-webob
291-Standards-Version: 3.9.3
292+ python-swiftclient (>= 1:1.5),
293+ python-testtools (>= 0.9.32),
294+ python-webob (>= 1.2.3),
295+ testrepository (>= 0.0.17)
296+Standards-Version: 3.9.4
297 Homepage: http://launchpad.net/cinder
298+<<<<<<< TREE
299 Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/cinder/grizzly/files
300 Vcs-Bzr: https://code.launchpad.net/~ubuntu-server-dev/cinder/grizzly
301+=======
302+Vcs-Browser: http://bazaar.launchpad.net/~ubuntu-server-dev/cinder/havana/files
303+Vcs-Bzr: https://code.launchpad.net/~ubuntu-server-dev/cinder/havana
304+XS-Testsuite: autopkgtest
305+>>>>>>> MERGE-SOURCE
306
307 Package: python-cinder
308 Section: python
309 Architecture: all
310 Depends:
311- python-amqplib,
312- python-anyjson,
313- python-eventlet,
314- python-glance,
315- python-glanceclient,
316- python-keystoneclient,
317- python-oslo.config,
318- python-greenlet,
319+ python-amqplib (>= 0.6.1),
320+ python-anyjson (>= 0.3.3),
321+ python-babel,
322+ python-eventlet (>= 0.13.0),
323+ python-glanceclient (>= 1:0.9.0),
324+ python-greenlet (>= 0.3.2),
325 python-iso8601,
326- python-kombu,
327+ python-keystoneclient (>= 1:0.3.0),
328+ python-kombu (>= 2.5.12),
329 python-lockfile,
330- python-lxml,
331+ python-lxml (>= 2.3),
332 python-migrate,
333- python-paramiko,
334+ python-netaddr,
335+ python-novaclient (>= 1:2.12.0),
336+ python-oslo.config (>= 1:1.1.0),
337+ python-paramiko (>= 1.8),
338 python-paste,
339 python-pastedeploy,
340 python-routes,
341- python-stevedore (>= 0.8),
342- python-swiftclient,
343- python-sqlalchemy,
344+ python-six,
345+ python-sqlalchemy (>= 0.8.2),
346+ python-stevedore (>= 0.10),
347 python-suds,
348- python-webob,
349+ python-swiftclient (>= 1:1.5),
350+ python-webob (>= 1.2.3),
351 ${misc:Depends},
352 ${python:Depends}
353-Suggests: python-hp3parclient
354+Suggests: python-ceph, python-hp3parclient
355 Description: Cinder Python libraries
356 OpenStack is a reliable cloud infrastructure. Its mission is to produce
357 the ubiquitous cloud computing platform that will meet the needs of public
358@@ -119,7 +133,6 @@
359 tgt,
360 ${misc:Depends},
361 ${python:Depends}
362-Suggests: ceph-common
363 Breaks: cinder-common ( <= 2012.2~rc1~20120907.1154-0ubuntu1 )
364 Replaces: cinder-common ( <= 2012.2~rc1~20120907.1154-0ubuntu1 )
365 Description: Cinder storage service - Volume server
366
367=== added file 'debian/patches/fix-sqlalchemy-requirements.patch'
368--- debian/patches/fix-sqlalchemy-requirements.patch 1970-01-01 00:00:00 +0000
369+++ debian/patches/fix-sqlalchemy-requirements.patch 2014-02-25 15:15:47 +0000
370@@ -0,0 +1,15 @@
371+Index: cinder/requirements.txt
372+===================================================================
373+--- cinder.orig/requirements.txt 2013-12-17 19:54:20.811733048 -0800
374++++ cinder/requirements.txt 2013-12-17 20:00:20.879729788 -0800
375+@@ -19,8 +19,8 @@
376+ python-novaclient>=2.15.0
377+ python-swiftclient>=1.5
378+ Routes>=1.12.3
379+-six>=1.4.1
380+-SQLAlchemy>=0.7.8,<=0.7.99
381++six
382++SQLAlchemy>=0.7.8,<=0.8.99
383+ sqlalchemy-migrate>=0.7.2
384+ stevedore>=0.10
385+ suds>=0.4
386
387=== removed file 'debian/patches/fix_cinder_dependencies.patch'
388--- debian/patches/fix_cinder_dependencies.patch 2013-02-22 16:40:10 +0000
389+++ debian/patches/fix_cinder_dependencies.patch 1970-01-01 00:00:00 +0000
390@@ -1,11 +0,0 @@
391-diff -Naurp cinder-2013.1.g3.orig/tools/pip-requires cinder-2013.1.g3/tools/pip-requires
392---- cinder-2013.1.g3.orig/tools/pip-requires 2013-02-21 16:08:48.000000000 -0600
393-+++ cinder-2013.1.g3/tools/pip-requires 2013-02-22 10:38:34.786411293 -0600
394-@@ -18,7 +18,6 @@ suds>=0.4
395- paramiko
396- Babel>=0.9.6
397- iso8601>=0.1.4
398--setuptools_git>=0.4
399- python-glanceclient>=0.5.0,<2
400- python-keystoneclient>=0.2.0
401- python-swiftclient
402
403=== added file 'debian/patches/revert-stable-havana-requirements.patch'
404--- debian/patches/revert-stable-havana-requirements.patch 1970-01-01 00:00:00 +0000
405+++ debian/patches/revert-stable-havana-requirements.patch 2014-02-25 15:15:47 +0000
406@@ -0,0 +1,25 @@
407+Author: Adam Gandelman <adamg@ubuntu.com>
408+Date: Wed Dec 18 10:06:25 PST 2013
409+Subject: Reverts stable/havana version bumps to requirements.txt
410+
411+Reverts various version bumps to dependencies in stable/havana that
412+were updated in global requirements to fix gating issues and synced
413+across projects.
414+
415+Index: cinder/requirements.txt
416+===================================================================
417+--- cinder.orig/requirements.txt 2013-12-18 10:11:29.047267359 -0800
418++++ cinder/requirements.txt 2013-12-18 10:14:33.963265684 -0800
419+@@ -2,10 +2,10 @@
420+ amqplib>=0.6.1
421+ anyjson>=0.3.3
422+ argparse
423+-Babel>=1.3
424++Babel>=0.9.6
425+ eventlet>=0.13.0
426+ greenlet>=0.3.2
427+-iso8601>=0.1.8
428++iso8601>=0.1.4
429+ kombu>=2.4.8
430+ lockfile>=0.8
431+ lxml>=2.3
432
433=== added file 'debian/patches/series'
434--- debian/patches/series 1970-01-01 00:00:00 +0000
435+++ debian/patches/series 2014-02-25 15:15:47 +0000
436@@ -0,0 +1,2 @@
437+fix-sqlalchemy-requirements.patch
438+revert-stable-havana-requirements.patch
439
440=== removed file 'debian/patches/series'
441--- debian/patches/series 2013-02-25 17:37:22 +0000
442+++ debian/patches/series 1970-01-01 00:00:00 +0000
443@@ -1,1 +0,0 @@
444-fix_cinder_dependencies.patch
445
446=== modified file 'debian/rules'
447--- debian/rules 2013-08-09 10:19:08 +0000
448+++ debian/rules 2014-02-25 15:15:47 +0000
449@@ -3,10 +3,6 @@
450 # Uncomment this to turn on verbose mode.
451 #export DH_VERBOSE=1
452
453-DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
454-VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
455-export OSLO_PACKAGE_VERSION=$(VERSION)
456-
457 %:
458 dh $@ --with python2
459
460@@ -15,7 +11,7 @@
461
462 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
463 override_dh_auto_test:
464- PYTHONPATH=$(CURDIR) bash run_tests.sh -N -v
465+ testr init && testr run
466 endif
467
468 override_dh_install:
469@@ -23,7 +19,14 @@
470
471 override_dh_fixperms:
472 dh_fixperms -Xcinder_tgt.conf
473+<<<<<<< TREE
474
475 override_dh_clean:
476 dh_auto_clean
477 rm -rf setuptools_git*.egg
478+=======
479+
480+override_dh_clean:
481+ # temporary workaround for d2to1 wonkyness
482+ dh_clean -Xsetup.cfg
483+>>>>>>> MERGE-SOURCE
484
485=== added directory 'debian/tests'
486=== added file 'debian/tests/cinder-daemons'
487--- debian/tests/cinder-daemons 1970-01-01 00:00:00 +0000
488+++ debian/tests/cinder-daemons 2014-02-25 15:15:47 +0000
489@@ -0,0 +1,15 @@
490+#!/bin/bash
491+#-----------------------
492+# Testing cinder-daemons
493+#-----------------------
494+set -e
495+DAEMONS=('cinder-api' 'cinder-scheduler')
496+
497+for daemon in "${DAEMONS[@]}"; do
498+ if pidof -x $daemon > /dev/null; then
499+ echo "OK"
500+ else
501+ echo "ERROR: ${daemon} IS NOT RUNNING"
502+ exit 1
503+ fi
504+done
505
506=== added file 'debian/tests/cinder-volume'
507--- debian/tests/cinder-volume 1970-01-01 00:00:00 +0000
508+++ debian/tests/cinder-volume 2014-02-25 15:15:47 +0000
509@@ -0,0 +1,17 @@
510+#!/bin/bash
511+#----------------------
512+# Testing cinder-volume
513+#----------------------
514+set -e
515+apt-get install -y cinder-volume cinder-backup 2>&1 > /dev/null
516+DAEMONS=('cinder-volume' 'cinder-backup')
517+
518+for daemon in "${DAEMONS[@]}"; do
519+ if pidof -x $daemon > /dev/null; then
520+ echo "OK"
521+ else
522+ echo "ERROR: ${daemon} IS NOT RUNNING"
523+ exit 1
524+ fi
525+done
526+apt-get remove -y cinder-volume cinder-backup 2>&1 > /dev/null
527
528=== added file 'debian/tests/control'
529--- debian/tests/control 1970-01-01 00:00:00 +0000
530+++ debian/tests/control 2014-02-25 15:15:47 +0000
531@@ -0,0 +1,3 @@
532+Tests: python-cinder cinder-daemons cinder-volume
533+Depends: python-cinder, cinder-api, cinder-scheduler, lvm2
534+Restrictions: needs-root
535
536=== added file 'debian/tests/python-cinder'
537--- debian/tests/python-cinder 1970-01-01 00:00:00 +0000
538+++ debian/tests/python-cinder 2014-02-25 15:15:47 +0000
539@@ -0,0 +1,14 @@
540+#!/bin/bash
541+#-------------------------
542+# Testing client utilities
543+#-------------------------
544+set -e
545+
546+result=$(python `dirname $0`/test_import_cinder.py 2>&1)
547+if [ "$result" ]; then
548+ echo "ERROR: PYTHON-CINDER MODULE CANNOT BE IMPORTED"
549+ exit 1
550+else
551+ echo "OK"
552+ exit 0
553+fi
554
555=== added file 'debian/tests/test_import_cinder.py'
556--- debian/tests/test_import_cinder.py 1970-01-01 00:00:00 +0000
557+++ debian/tests/test_import_cinder.py 2014-02-25 15:15:47 +0000
558@@ -0,0 +1,4 @@
559+try:
560+ import cinder
561+except ImportError, e:
562+ print "ERROR IMPORTING MODULE"

Subscribers

People subscribed via source and target branches