]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add available property in target specific flavors 33606/head
authorJan Fajerski <jfajerski@suse.com>
Mon, 6 Jan 2020 17:02:57 +0000 (18:02 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Feb 2020 12:51:35 +0000 (13:51 +0100)
commitdb8afc2694e1fcb294910e0bafd638b12fe54961
tree15fb073db56e0758c72490ea14f849bd93f18154
parent727de7f8bccf9127c8f4dced19c93ddcc9508936
ceph-volume: add available property in target specific flavors

This adds two properties available_[lvm,raw] to device (and thus inventory).
The goal is to have different notions of availability based on the
intended use case. For example finding LVM structures make a drive
unavailable for the raw mode, but might be available for the lvm mode.

Fixes: https://tracker.ceph.com/issues/43400
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 233ccff24006082766b52a94b7c46cdf5b7cd929)
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py