]> git.apps.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>
Fri, 13 Sep 2024 08:40:09 +0000 (10:40 +0200)
commitdcf743928e301c3724a2b7c4d13c0be8ea0714d7
treeaf3aab5e7a053038c80a42542d5711536d22244c
parenta2782315255a3e7d5f6cdc9eb35785187ff6ddf8
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>
src/ceph-volume/ceph_volume/devices/lvm/zap.py