Merge lp:~bjornt/charms/precise/storage/multiple-units into lp:charms/storage
Status: | Merged |
---|---|
Merged at revision: | 43 |
Proposed branch: | lp:~bjornt/charms/precise/storage/multiple-units |
Merge into: | lp:charms/storage |
Diff against target: |
35 lines (+21/-0) 1 file modified
hooks/storage-provider.d/block-storage-broker/block-storage-relation-changed (+21/-0) |
To merge this branch: | bzr merge lp:~bjornt/charms/precise/storage/multiple-units |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Review Queue (community) | automated testing | Needs Fixing | |
Chris Glass (community) | Approve | ||
Review via email:
|
Description of the change
Allow multiple storage units to work reliably.
Currently, the storage charm reads the block-device-path setting to get the path of the attached volume to mount. This is full of race conditions when you have multiple storage units, since that single setting is shared for all units. In practice, when you add a second storage unit, it will see the existing block-device-path setting for the first unit and try to mount it before any volume has been attached.
I've added a new relation setting, block-device-
That looks great, thanks a lot.
One little nitpick inline, then I'll go ahead and merge.