]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: abort when passed devices have partitions 45126/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Feb 2022 08:36:29 +0000 (09:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Feb 2022 11:02:09 +0000 (12:02 +0100)
commit75c91a8c6f37a38d69d5da8b1e7d49d9c636230b
treeb55f84526f2dbe47a52451529d452d6f39f50cc1
parent76ad85965840ad751909b98642e56015e8b11864
ceph-volume: abort when passed devices have partitions

ceph-volume doesn't prevent from using db and/or wal devices
with existing partitions on them.
This can lead to a data loss situation.

Fixes: https://tracker.ceph.com/issues/54376
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/common.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py
src/ceph-volume/ceph_volume/tests/util/test_arg_validators.py
src/ceph-volume/ceph_volume/util/arg_validators.py
src/ceph-volume/ceph_volume/util/device.py