]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: abort when passed devices have partitions 45146/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Feb 2022 08:36:29 +0000 (09:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 24 Feb 2022 16:34:37 +0000 (17:34 +0100)
commit19028a65fe27fa63834a806566596965eaeea0ef
tree3ef723d8a846f56c660b9b326257e40543a02d64
parentb69e4adb60b1cef898d033ac79ea2145aded5586
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