]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do source devices zapping if they're detached.
authorIgor Fedotov <ifedotov@croit.io>
Fri, 31 May 2024 14:05:29 +0000 (17:05 +0300)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 31 Jul 2024 12:52:14 +0000 (12:52 +0000)
commitd8f9d1ec1f4e80cdc539ebf89e76dfa4ac5da24e
tree4ee1c31294fd7c7a17fafad74d8cb3cab6789393
parente60c26912394ef1a36e31c304e34d38f4ae6eff7
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