Merge lp:~negronjl/charms/precise/zookeeper/trunk into lp:charms/zookeeper
Proposed by
Juan L. Negron
Status: | Merged |
---|---|
Merged at revision: | 8 |
Proposed branch: | lp:~negronjl/charms/precise/zookeeper/trunk |
Merge into: | lp:charms/zookeeper |
Diff against target: |
177 lines (+97/-8) 2 files modified
config.yaml (+16/-0) hooks/zookeeper-common (+81/-8) |
To merge this branch: | bzr merge lp:~negronjl/charms/precise/zookeeper/trunk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Needs Fixing | ||
Review via email: mp+132992@code.launchpad.net |
Description of the change
Added config option to be able to include an external zookeeper into the quorum.
Added weight and group directives in zoo.cfg for better integration and control of leader.
-Juan
To post a comment you must log in.
Hi Juan
Had a quick review and test - couple of issues:
1) Line 49: + default_ group=` config- get default_weight`
Incorrect - should pick the default_group config - as a result generated wacky config and charms fail to upgrade.
2) config-changed hook
Fails - missing symlink to zookeeper-common
3) existing peers/quorum.
I tested this by deploying a zookeeper cluster of three nodes (which formed correctly) and then setting the external server - at which point all three existing unit lost track of each other.
configure_zookeeper is purging all server.* entries from the file - but not then re-adding them based on members of the peer relation.
Cheers
James