]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 5 Apr 2023 22:33:59 +0000 (22:33 +0000)
commit69fcec6d29816fa4a1008ba1922809a8e93f1e01
treecda3cbc28ccb55dad7a95a5cfd0e4e4ca2f73d62
parentd9234b7a73d915be189e06c8e706ae4bb9f05079
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)
(cherry picked from commit 658472614032d8a8f5e8ea5ddb8759e762c69bb2)
src/ceph-volume/ceph_volume/util/disk.py