]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: add call to `ceph-bluestore-tool zap-device`
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 11 Sep 2024 15:37:59 +0000 (15:37 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 25 Sep 2024 07:01:05 +0000 (07:01 +0000)
commit23a0eaa8afbb17cc18070ef01f7351bd4ae1a378
tree51039e82ddfd02a0deeb48533d589c5be8b2540d
parent73c38b73d496e18101038583874df2840b72a898
ceph-volume: add call to `ceph-bluestore-tool zap-device`

BlueStore now writes its metadata at multiple offset on devices [1].
It means `ceph-volume lvm zap` doesn't remove BlueStore signature altogether.
This can confuse ceph-volume when redeploying an OSD on a previously
zapped device because there is still old BlueStore metadata on it.

ceph-volume should call `ceph-bluestore-tool zap-device` [2]
in addition to the existing calls when wiping a device.

[1] https://github.com/ceph/ceph/pull/55374
[2] https://github.com/ceph/ceph/pull/59632

Fixes: https://tracker.ceph.com/issues/68035
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit dcf743928e301c3724a2b7c4d13c0be8ea0714d7)
src/ceph-volume/ceph_volume/devices/lvm/zap.py