]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume/batch: fail on filtered devices when non-interactive
authorJan Fajerski <jfajerski@suse.com>
Tue, 3 Dec 2019 12:44:00 +0000 (13:44 +0100)
committerJan Fajerski <jfajerski@suse.com>
Mon, 27 Jan 2020 13:35:40 +0000 (14:35 +0100)
commit2e985053deec6c4cf60c0b85aec3df16cd77ceeb
treef32855c156ec2daadde99507e726e36f0331dda0
parent05cc0d8c70fd92cbb700712160431434f81c76c8
ceph-volume/batch: fail on filtered devices when non-interactive

When batch is called non-interactively and a user explicitly specifies,
say a db-device, this will be filtered when unavailable. This can cause
the resulting OSD to be very different from the users intention
(standalone vs external db when the db-device was filtered). If devices
get filtered in non-interactive mode, ceph-volume should fail.

Fixes: https://tracker.ceph.com/issues/43105
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py