`lsblk_all()` should return an empty dict `{}` if nothing was found.
If we raise `RuntimeError()` then the loop in `scan.Scan.main` will stop
and make ceph-volume fails because we don't try to catch this exception.
`scan.Scan.main()` has its own logic in order to detect the given path
is a ceph-disk created OSD anyway.
Fixes: https://tracker.ceph.com/issues/56482
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
2630a50acb4654332c0b6801e9214564bd09d3d0)
if dev['NAME'] == os.path.basename(device):
return dev
- raise RuntimeError(f"{device} not found in lsblk output")
+ return {}
def is_device(dev):
"""