]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume inventory: add option to filter unwanted devices
authorJan Fajerski <jfajerski@suse.com>
Fri, 11 Sep 2020 14:35:00 +0000 (16:35 +0200)
committerJan Fajerski <jfajerski@suse.com>
Wed, 7 Oct 2020 09:22:40 +0000 (11:22 +0200)
commit6a825ef77de43476ca1fa2ffdb7a5226dc1f67da
tree040f634c22af561c41e0c01fd8514bd046849004
parent950a840f3937d323d668136f8d3a5d547ca8eeda
ceph-volume inventory: add option to filter unwanted devices

Some device we never want to pass to the batch subcommand. For now this
includes devices that have a partition or are mounted on the machine.
One goal is to filter the root device, so it is not included on a batch
command and thus would contribute to its implicit sizing calculation.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 7d168ad7bdbb6d6d5231a4ae540ab03040b49a38)
src/ceph-volume/ceph_volume/inventory/main.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_common.py
src/ceph-volume/ceph_volume/util/device.py
src/pybind/mgr/cephadm/module.py