The charm does not remove a mon with juju destroy-unit

Bug #1411652 reported by Johan Ehnberg
This bug report is a duplicate of:  Bug #1629679: remove-unit doesn't take OSDs down. Edit Remove
20
This bug affects 4 people
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>

Tags: openstack sts

Related branches

description: updated
James Page (james-page)
Changed in ceph (Juju Charms Collection):
importance: Undecided → Low
status: New → Triaged
milestone: none → 15.07
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 15.07 → 15.10
tags: added: openstack
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 15.10 → 16.01
Seyeong Kim (seyeongkim)
Changed in ceph (Juju Charms Collection):
assignee: nobody → Seyeong Kim (xtrusia)
tags: added: sts
Seyeong Kim (seyeongkim)
Changed in ceph (Juju Charms Collection):
status: Triaged → In Progress
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 16.01 → 16.04
James Page (james-page)
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
Revision history for this message
Chris Holcombe (xfactor973) wrote :

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

Seyeong Kim (seyeongkim)
Changed in ceph (Juju Charms Collection):
status: In Progress → Confirmed
assignee: Seyeong Kim (xtrusia) → nobody
Liam Young (gnuoy)
Changed in ceph (Juju Charms Collection):
milestone: 16.07 → 16.10
Changed in ceph-mon (Juju Charms Collection):
milestone: 16.07 → 16.10
James Page (james-page)
Changed in ceph (Juju Charms Collection):
milestone: 16.10 → 17.01
Changed in ceph-mon (Juju Charms Collection):
milestone: 16.10 → 17.01
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.