]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add available property in target specific flavors 33240/head
authorJan Fajerski <jfajerski@suse.com>
Mon, 6 Jan 2020 17:02:57 +0000 (18:02 +0100)
committerJan Fajerski <jfajerski@suse.com>
Wed, 12 Feb 2020 12:16:14 +0000 (13:16 +0100)
commitd16e2bc4791889da2a9c1ced0565ceb4e7cc948c
tree5966b565af412e6445282210aaa6d2298e90104a
parentfd3afb206443f31d9f90cb2aaf640b2021a12ffc
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