]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do source devices zapping if they're detached. 58996/head
authorIgor Fedotov <ifedotov@croit.io>
Fri, 31 May 2024 14:05:29 +0000 (17:05 +0300)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 2 Aug 2024 12:03:48 +0000 (12:03 +0000)
commit1f962f59439af26308b0cb5b4873f7ecada00cc2
tree260a2eef76b3b8e36fcfc6e6e7a2cb30ae930e6b
parent4e7345c9a65ffbe5d5558b9286f5c79d83814c40
ceph-volume: do source devices zapping if they're detached.

One needs to zap source device(s) after DB/WAL migration.
Original imlementation removes LVM tags only which leaves device(s) in a
state where "ceph-volume raw activate" still reconginizes them as
attached to OSD due to information preserved in bdev label.
Hence the need to do more zapping.
Fixes: https://tracker.ceph.com/issues/66315
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
(cherry picked from commit ae5ef432845dcf9b061258357ffd97f4eae59a63)
src/ceph-volume/ceph_volume/devices/lvm/migrate.py