Merge lp://staging/~chad.smith/charms/precise/storage/storage-fix-nfs-relation-ordering into lp://staging/~dpb/charms/precise/storage/trunk
Proposed by
Chad Smith
Status: | Merged |
---|---|
Merged at revision: | 34 |
Proposed branch: | lp://staging/~chad.smith/charms/precise/storage/storage-fix-nfs-relation-ordering |
Merge into: | lp://staging/~dpb/charms/precise/storage/trunk |
Diff against target: |
272 lines (+69/-65) 5 files modified
hooks/common_util.py (+18/-18) hooks/storage-provider.d/nfs/data-relation-changed (+2/-1) hooks/storage-provider.d/nfs/nfs-relation-changed (+0/-23) hooks/storage-provider.d/nfs/nfs-relation-departed (+0/-7) hooks/test_common_util.py (+49/-16) |
To merge this branch: | bzr merge lp://staging/~chad.smith/charms/precise/storage/storage-fix-nfs-relation-ordering |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Britton | Approve | ||
Fernando Correa Neto (community) | Approve | ||
Review via email: mp+210892@code.staging.launchpad.net |
Description of the change
Because we cannot rely on ordering of nfs versus data relation hooks fired, we need to account for either the data relation with the principal charm being fired before the nfs relation with the nfs charm or the other way around.
This branch allows either hook to call mount_volume() which will now attempt to grab specific attributes from a designated "data" or "nfs" hook name. This way either hook can determine if all required information is present before proceeding to try mounting the nfs share.
To post a comment you must log in.
[0] Test failures... Of the form:
https:/ /pastebin. canonical. com/106789/
File "/usr/lib/ python2. 7/unittest/ case.py" , line 331, in run python2. 7/dist- packages/ mocker. py", line 146, in test_method_wrapper dpb/src/ canonical/ juju/charms/ blockstoragebro ker/bsb- ec2-support/ hooks/test_ util.py" , line 1332, in test_wb_ ec2_describe_ volumes_ with_attac storage. _ec2_describe_ volumes( ), expected) dpb/src/ canonical/ juju/charms/ blockstoragebro ker/bsb- ec2-support/ hooks/util. py", line 250, in _ec2_describe_ volumes .DescribeVolume s()
testMethod()
File "/usr/lib/
result = test_method()
File "/home/
hed_instances
self.
File "/home/
command = describevolumes
[...]
requestbuilder. exceptions. ServiceInitErro r: No ec2 endpoint to connect to was given. ec2 endpoints may be specified in a config file with "ec2-url".
test_util. TestEC2Util. test_wb_ ec2_describe_ volumes_ with_attached_ instances
--
David Britton <email address hidden>