destroy-unit will not result in rs.remove or equivalent
Bug #1370542 reported by
Samuele Pedroni
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mongodb (Juju Charms Collection) |
Fix Released
|
High
|
Mario Splivalo |
Bug Description
when decomissioning a unit in a replicaset, it seems the unit is left back in the rs config as unreachable instead of being removed
Related branches
lp:~mariosplivalo/charms/trusty/mongodb/replsets-fix-try
- Felipe Reyes (community): Approve
- Jorge Niedbalski (community): Approve
- James Page: Pending requested
- Edward Hope-Morley: Pending requested
- Ryan Beisner: Pending requested
-
Diff: 1639 lines (+1138/-145)18 files modified.bzrignore (+5/-0)
README.md (+62/-23)
charm-helpers-sync.yaml (+1/-0)
config.yaml (+1/-1)
hooks/charmhelpers/contrib/hahelpers/cluster.py (+26/-12)
hooks/charmhelpers/contrib/python/packages.py (+80/-0)
hooks/charmhelpers/core/decorators.py (+41/-0)
hooks/charmhelpers/core/host.py (+16/-5)
hooks/charmhelpers/core/templating.py (+1/-1)
hooks/charmhelpers/fetch/__init__.py (+8/-1)
hooks/hooks.py (+322/-92)
setup.cfg (+6/-0)
test_requirements.txt (+1/-1)
tests/00_setup.sh (+0/-9)
tests/03_deploy_replicaset.py (+114/-0)
unit_tests/__init__.py (+2/-0)
unit_tests/test_hooks.py (+341/-0)
unit_tests/test_utils.py (+111/-0)
Changed in mongodb (Juju Charms Collection): | |
assignee: | nobody → Mario Splivalo (mariosplivalo) |
status: | New → In Progress |
Changed in mongodb (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in mongodb (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in mongodb (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
we would hope that it could rs.remove( "<HOSTNAME> :<PORT> ") on relation leaving, such as when a unit is destroyed.
This has catastrophic consequences, as it means that you can havea cluster where quorum cannot be reached for leader elections because at least half of the nodes are decommissioned units.