]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_volume: Rejecting locked devices
authorErwan Velu <erwan@redhat.com>
Tue, 9 Oct 2018 20:51:39 +0000 (22:51 +0200)
committerAlfredo Deza <adeza@redhat.com>
Fri, 26 Oct 2018 20:14:49 +0000 (16:14 -0400)
commita4c4c9a4a9d9393c306304654b75550162980e7f
treef12ed444d74de229974e6920d75b0f955c478e3b
parent0f78875ee755b92475f9df6be212688c2e8e1e7e
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>
(cherry picked from commit d5de9583ee6c4d9ccaab2b1146606a0ee316cc27)
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py