]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add available property in target specific flavors 32634/head
authorJan Fajerski <jfajerski@suse.com>
Mon, 6 Jan 2020 17:02:57 +0000 (18:02 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 7 Feb 2020 11:04:18 +0000 (12:04 +0100)
commit233ccff24006082766b52a94b7c46cdf5b7cd929
tree812791ce0e2a2c60c5a7c7d5b259638e3b212aea
parent3f4065c44305b20b698eea84e0440e698aab9280
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>
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