]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix a bug in lsblk_all() 49868/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 1 Dec 2022 08:49:21 +0000 (09:49 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 25 Jan 2023 13:01:35 +0000 (14:01 +0100)
commitb41c5302ee81cbbd00dcf3768846762c9907b35d
tree6e6ecbb42cd9ca71e49a34677a6adb98efebd296
parent22c2d68820ab09fd18a2b41e5a46b6e888789c40
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>
(cherry picked from commit dce4d469f66124babe97dd3651f67d55e805088c)
src/ceph-volume/ceph_volume/util/disk.py