]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not call get_device_vgs() per devices 47168/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Jul 2022 11:07:33 +0000 (11:07 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 19 Jul 2022 13:18:20 +0000 (13:18 +0000)
commitf5bd0f6da9a3c2f60df2ed6dfaa4c26831a3be37
tree543f054de632527bec076596f9d7d4ec22ffcdc6
parentdab3364f179167df026128a0d51a1dbe52d1f820
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>
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/util/device.py