Merge lp:~ahasenack/charms/precise/mysql/wait-for-rbd-device into lp:charms/mysql
Proposed by
Andreas Hasenack
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Adam Gandelman | ||||
Approved revision: | 104 | ||||
Merged at revision: | 104 | ||||
Proposed branch: | lp:~ahasenack/charms/precise/mysql/wait-for-rbd-device | ||||
Merge into: | lp:charms/mysql | ||||
Diff against target: |
46 lines (+18/-6) 2 files modified
hooks/lib/ceph_utils.py (+17/-5) revision (+1/-1) |
||||
To merge this branch: | bzr merge lp:~ahasenack/charms/precise/mysql/wait-for-rbd-device | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Gandelman (community) | Approve | ||
Review via email: mp+179292@code.launchpad.net |
Description of the change
Check for the existence of the rbd device before attempting to format it. If it doesn't exist, wait in a loop for up to 10s before failing.
To post a comment you must log in.
This looks sane. Can you please also propose the same fix to charm-helpers, as this code now lives there in charmhelpers/ contrib/ hacluster/ ceph.py