]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not call get_device_vgs() per devices 47348/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Jul 2022 11:07:33 +0000 (11:07 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 29 Jul 2022 07:51:25 +0000 (09:51 +0200)
commit9a4470a00beb29e9792a3c1f96963c2e334c083b
tree6d2dd0dba8d5014fbe4dd46e3c5bde73be42317f
parentc1869febea8f8b0162e2bfc56621c7cc677aa10c
ceph-volume: do not call get_device_vgs() per devices

let's call `ceph_volume.api.lvm.get_all_devices_vgs` only one time instead
so we avoid a bunch of subprocess calls that slow down the process when running
`ceph-volume inventory` command.

Fixes: https://tracker.ceph.com/issues/56623
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f5bd0f6da9a3c2f60df2ed6dfaa4c26831a3be37)
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py