dmcrypt lockbox isn't cleared on reinstall

Bug #1743280 reported by Chris Sanders
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Opinion
Undecided
Unassigned

Bug Description

Testing dmcrypt with bluestore I've noticed that the lockbox fails to install when a drive was previously used as a dmcrypt bluestore device. I believe this is because the zap operation is not clearing the filesystem, the lockbox is re-created at the same location, and mk2fs stops for a user verification seeing an existing file system.

Running ceph-disk directly will produce the prompt at the mk2fs stage. The charmhelpers zap_disk function isn't sufficient, calling wipefs -a on the block device doesn't clear the necessary portion of the disk.

I've run across this working on other items and have a patch in progress. It appears you can solve this by calling wipefs on each partition before removing the partition. I'm opening this to raise awareness, but intend to fix this as a drive-by on another patch since I've touched this same part of the code in the other patch.

Changed in charm-ceph-osd:
assignee: nobody → Chris Sanders (chris.sanders)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-osd (master)

Fix proposed to branch: master
Review: https://review.openstack.org/533838

Changed in charm-ceph-osd:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ceph-osd (master)

Change abandoned by Frode Nordahl (<email address hidden>) on branch: master
Review: https://review.openstack.org/533838
Reason: Marking this review as abandoned due to lack of activity in the past 6 months.
Feel free to restore it again if you want to pick up and continue the work.

Revision history for this message
Chris Sanders (chris.sanders) wrote :

I'm abandoning this and I'm not clear if it still applies with the latest charms change in OSD initialization.

Changed in charm-ceph-osd:
assignee: Chris Sanders (chris.sanders) → nobody
status: In Progress → Opinion
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.