]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: abort when passed devices have partitions 45145/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Feb 2022 08:36:29 +0000 (09:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Mar 2022 08:25:01 +0000 (09:25 +0100)
commit48b02e7f5058125991306cd6c385a1336a73dc77
tree4e363c5686cc593950ac586834f34768c7f25a3b
parent2d984f9d57616b668ded8a025e1b42e2da34f9b7
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>
(cherry picked from commit 75c91a8c6f37a38d69d5da8b1e7d49d9c636230b)
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