]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix lvm list
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 5 Feb 2020 01:29:14 +0000 (02:29 +0100)
committerJan Fajerski <jfajerski@suse.com>
Wed, 12 Feb 2020 11:37:15 +0000 (12:37 +0100)
commit30dc9359e75e809195dd141ad804825688564d87
treea3d3a122fd1d002a88704b71145940a98dd22fdc
parent6cb2aad6fe68ce1bec84eddda554bba1f62b725b
ceph-volume: fix lvm list

17957d9beb42a04b8f180ccb7ba07d43179a41d3 introduced a regression in `lvm
list`.

When passing a vg/lv path for generating a single report, it fails
because the filter used in the `lvs` command isn't right. It uses the lv
name instead of the vg name because `os.path.basename(device)` is used
while it should be `os.path.dirname(device)`

Fixes: https://tracker.ceph.com/issues/43969
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 0179fed3ab624830ba77349531763c3e116c82e5)
src/ceph-volume/ceph_volume/devices/lvm/listing.py