Merge lp:~james-page/charms/precise/cinder/hook-fixup into lp:charms/raring/cinder

Proposed by James Page
Status: Merged
Merge reported by: Adam Gandelman
Merged at revision: not available
Proposed branch: lp:~james-page/charms/precise/cinder/hook-fixup
Merge into: lp:charms/raring/cinder
Diff against target: 55 lines (+11/-4)
3 files modified
hooks/cinder-common (+5/-1)
hooks/cinder-hooks (+5/-2)
revision (+1/-1)
To merge this branch: bzr merge lp:~james-page/charms/precise/cinder/hook-fixup
Reviewer Review Type Date Requested Status
Adam Gandelman (community) Approve
Review via email: mp+138184@code.launchpad.net

Description of the change

Charm currently does not deploy due to syntax error in hooks case statement.

To post a comment you must log in.
19. By James Page

Add future fix for move to start-stop-daemon in grizzly

Revision history for this message
Adam Gandelman (gandelman-a) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/cinder-common'
2--- hooks/cinder-common 2012-11-28 17:45:31 +0000
3+++ hooks/cinder-common 2012-12-05 17:45:26 +0000
4@@ -2,7 +2,7 @@
5
6 CHARM="cinder"
7
8-COMMON_PACKAGES="cinder-common python-mysqldb"
9+COMMON_PACKAGES="cinder-common python-mysqldb gdisk"
10 API_PACKAGES="cinder-api"
11 VOL_PACKAGES="cinder-volume"
12 SCHED_PACKAGES="cinder-scheduler"
13@@ -124,6 +124,10 @@
14 fi
15 echo "yes" | pvremove -ff "$block_dev" ||
16 error_out "Could not pvremove $block_dev"
17+ else
18+ juju-log "Zapping disk of all GPT and MBR structures"
19+ sgdisk --zap-all $block_dev ||
20+ error_out "Unable to zap $block_dev"
21 fi
22 }
23
24
25=== modified file 'hooks/cinder-hooks'
26--- hooks/cinder-hooks 2012-11-29 20:00:26 +0000
27+++ hooks/cinder-hooks 2012-12-05 17:45:26 +0000
28@@ -153,6 +153,9 @@
29 # XXX: Horrid kludge to make cinder-volume use
30 # a different ceph username than admin
31 echo "CEPH_ARGS=--id $SERVICE_NAME" >> /etc/environment
32+ # Also add it to the overrides for cinder volume
33+ # in preparation for move to start-stop-daemon.
34+ echo "env CEPH_ARGS=\"--id $SERVICE_NAME\"" > /etc/init/cinder-volume.override
35
36 # Create the cinder pool if it does not already exist
37 if ! rados --id $SERVICE_NAME lspools | grep -q cinder; then
38@@ -169,8 +172,8 @@
39 juju-log "cinder: Attempting to fire hook for: $arg0"
40 case $arg0 in
41 "install") install_hook ;;
42- "start") cinder_ctl all start
43- "stop") cinder_ctl all stop
44+ "start") cinder_ctl all start;;
45+ "stop") cinder_ctl all stop;;
46 "shared-db-relation-joined") db_joined ;;
47 "shared-db-relation-changed") db_changed ;;
48 "amqp-relation-joined") amqp_joined ;;
49
50=== modified file 'revision'
51--- revision 2012-11-29 00:04:15 +0000
52+++ revision 2012-12-05 17:45:26 +0000
53@@ -1,1 +1,1 @@
54-1
55+2

Subscribers

People subscribed via source and target branches

to all changes: