]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix `simple scan`
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 6 Jul 2022 11:42:02 +0000 (13:42 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 5 Aug 2022 06:58:17 +0000 (08:58 +0200)
commitbc0198288d009fc82a0f7ba66fc1c9f6ca300d0d
tree9b3d252d4dbab705bfe03b0c24c9e6125b1ad6d1
parent98e23df3c7885d5f99a8a69655e40d8965097bae
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>
(cherry picked from commit 2630a50acb4654332c0b6801e9214564bd09d3d0)
src/ceph-volume/ceph_volume/util/disk.py