]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph_volume: Rejecting locked devices
authorErwan Velu <erwan@redhat.com>
Tue, 9 Oct 2018 20:51:39 +0000 (22:51 +0200)
committerErwan Velu <erwan@redhat.com>
Mon, 22 Oct 2018 09:56:19 +0000 (11:56 +0200)
commitd5de9583ee6c4d9ccaab2b1146606a0ee316cc27
treeb8052b511eff32b291bb721a739eace22c00569e
parente0ea3d475a85844afdcdf92cf638b8128c8e2d9e
ceph_volume: Rejecting locked devices

If we cannot open a block device in O_RDWR in exclusive mode, it means
someone is actually using it like a raw database or similar.

In that case, the device should be considered as unusable as OSDs will
not be in a position to use it.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py