]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not raise RuntimeError in util.lsblk 50145/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:01:20 +0000 (17:01 +0100)
commit259a3d554f53c549b135570f2054c3b5c517f993
tree5c5112c67b851c9269b17dbda6153e28a759ee74
parentfa06ef1bfdb9e3aa2e1cfe84f406185a89e1755b
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