The charm does not remove a mon with juju destroy-unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Juju Charms Collection) |
Confirmed
|
Low
|
Unassigned | ||
ceph-mon (Juju Charms Collection) |
New
|
Low
|
Unassigned |
Bug Description
Juju 1.20.14-amd64. Tested on MaaS and local providers. Tested on a clean install. Charm: cs:trusty/ceph-31
The commands run (after bootstrapping) are:
juju deploy -n3 --config local.yaml ceph
<wait to stabilize>
juju add-unit ceph
<wait for completion>
juju destroy-unit ceph/0
<wait for completion>
juju ssh 2 sudo ceph status
local.yaml has
fsid: <something>
monitor-count: 3
monitor-secret: <something>
osd-devices: '/dev/sdb /dev/sdc /dev/sdd'
osd-reformat: yes
After the commands are run, the mon is removed from ceph.conf but you'll see ceph still shows 4 running monitors.
Logically after the commands, one typically destroys the machine also:
juju destroy-machine <insert the destroyed unit's machine here>
juju ssh 3 sudo ceph status
This results in ceph warning about missing one mon
HEALTH_WARN 1 mons down
You have to remove it manually with the following command on a ceph node:
sudo ceph mon remove <monitor name>
Related branches
- Edward Hope-Morley: Needs Fixing
- Billy Olsen: Needs Fixing
- Chris Holcombe (community): Needs Fixing
- Chris MacNaughton (community): Needs Information
-
Diff: 49 lines (+31/-0)2 files modifiedhooks/ceph.py (+22/-0)
hooks/ceph_hooks.py (+9/-0)
description: | updated |
Changed in ceph (Juju Charms Collection): | |
importance: | Undecided → Low |
status: | New → Triaged |
milestone: | none → 15.07 |
Changed in ceph (Juju Charms Collection): | |
milestone: | 15.07 → 15.10 |
tags: | added: openstack |
Changed in ceph (Juju Charms Collection): | |
milestone: | 15.10 → 16.01 |
Changed in ceph (Juju Charms Collection): | |
assignee: | nobody → Seyeong Kim (xtrusia) |
tags: | added: sts |
Changed in ceph (Juju Charms Collection): | |
status: | Triaged → In Progress |
Changed in ceph (Juju Charms Collection): | |
milestone: | 16.01 → 16.04 |
Changed in ceph (Juju Charms Collection): | |
milestone: | 16.04 → 16.07 |
Changed in ceph-mon (Juju Charms Collection): | |
importance: | Undecided → Low |
milestone: | none → 16.07 |
Changed in ceph (Juju Charms Collection): | |
status: | In Progress → Confirmed |
assignee: | Seyeong Kim (xtrusia) → nobody |
Changed in ceph (Juju Charms Collection): | |
milestone: | 16.07 → 16.10 |
Changed in ceph-mon (Juju Charms Collection): | |
milestone: | 16.07 → 16.10 |
Changed in ceph (Juju Charms Collection): | |
milestone: | 16.10 → 17.01 |
Changed in ceph-mon (Juju Charms Collection): | |
milestone: | 16.10 → 17.01 |
This is just a matter of implementing the remove relationship for ceph and having it properly clean up the services. I've run into this also on bare metal