action zap-disk does not allow zapping of vault-encrypted bluestore bcache paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
New
|
Undecided
|
Unassigned |
Bug Description
When running ceph-osd zap disk action (after stopping ceph-osd@
If I first remove the pv forcibly and close the crypt, I can then successfully zap-disk with the action.
for i in $(ceph-
pvs|awk '/ceph/ {print \$1}'|xargs -I@ pvremove @ --force --force -y
juju run -u $unt "grep mapper/crypt /home/ubuntu/
This is on charm ceph-osd-294 running on bionic with source:distro (queens)
I believe that the action used to work before vault encrypted disks and that the function to check if a device is mounted was expanded to also check if it was part of a bluestore or luks process. This check needs a bit more nuance for the specific zap-disk action where we expect to override and tear down anything on the disk when the action is called.