]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: fix a bug in lsblk_all()
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 1 Dec 2022 08:49:21 +0000 (09:49 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Jan 2023 22:21:09 +0000 (23:21 +0100)
commitdce4d469f66124babe97dd3651f67d55e805088c
tree88ab5271f059992017e3e724069e4332beaf5cd9
parentcb17f286272f7ae9dbdf8117ca7b077b0a5cf650
ceph-volume: fix a bug in lsblk_all()

Rook has a specific use case where devices are copied in /mnt

If the basename (in /mnt) is different from the original device name,
then the current logic can't match it.

The idea is to append the device to the `lsblk` command and return
the result.

Fixes: https://tracker.ceph.com/issues/58137
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/util/disk.py