]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix `simple scan` 47149/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 6 Jul 2022 11:42:02 +0000 (13:42 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 29 Jul 2022 06:17:06 +0000 (08:17 +0200)
commita154babea5bffd0751bfb8702aed5a361afcec1c
tree14bb31694b48831edb8ed36a5752c26dc814e19d
parentc1869febea8f8b0162e2bfc56621c7cc677aa10c
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