]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not call get_device_vgs() per devices
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Jul 2022 11:07:33 +0000 (11:07 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 5 Aug 2022 06:58:17 +0000 (08:58 +0200)
commitbbb44f05d2c44e221925c679fdc79de666eb62f0
treef74d195e441ce858315041dad4e9c647daae3989
parent4252cc44211f0ccebf388374744eaa26b32854d3
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