]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix a bug in lsblk_all() 49869/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:02:26 +0000 (14:02 +0100)
commit658472614032d8a8f5e8ea5ddb8759e762c69bb2
treeeb9c7cdd7efa0b3a46ae0c555ac8663d5e126bee
parent72d139ac4b1b8435a2d65acc8bc6c599728552d2
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