]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not raise RuntimeError in util.lsblk 50144/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 7 Feb 2023 09:51:36 +0000 (10:51 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 16 Feb 2023 16:00:46 +0000 (17:00 +0100)
commit71f30e47c75bfdd3306be6547e5dd864f2e51925
treef0dbe31bc72d31589bf5a5af328d27638874dd4b
parentda95895fa1eff19f6f25746767f22b2a10cf39e4
ceph-volume: do not raise RuntimeError in util.lsblk

Otherwise it makes `simple scan` calls fail.

```
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/disk.py", line 246, in lsblk
    raise RuntimeError(f"{device} not found is lsblk report")
RuntimeError: /var/lib/ceph/osd/ceph-0/ not found is lsblk report
```

Fixes: https://tracker.ceph.com/issues/58655
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 4f19a0f4e1726466968d610da3b0f753981e44a7)
src/ceph-volume/ceph_volume/util/disk.py