]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix `simple scan` 46992/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 6 Jul 2022 11:42:02 +0000 (13:42 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 7 Jul 2022 20:25:52 +0000 (22:25 +0200)
commit2630a50acb4654332c0b6801e9214564bd09d3d0
treea8ecd2e4d665f643c94bff65940154bbeda5ab8f
parenta5acd69ec64d52aa7c2c26939e70bde67c2e0e8a
ceph-volume: fix `simple scan`

`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>
src/ceph-volume/ceph_volume/util/disk.py