]> 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>
Fri, 2 Oct 2020 08:09:51 +0000 (10:09 +0200)
commite29d124bb360e247afdbc6285ed3601dd45dff2e
tree17c6facd75eae6bfeae057449367f7fe950560b4
parentde22347d2ddeb815a8ebc3e2904658f18d1ff284
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)
  - removed the lsmdisk import from src/ceph-volume/ceph_volume/util/device.py
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