]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: retry lvs after empty result and "devices file is missing" stderr 69206/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 28 May 2026 11:39:55 +0000 (13:39 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 1 Jun 2026 07:58:55 +0000 (07:58 +0000)
commit5980bc90e4e44c8c8405320e45d53b096aea22e4
tree8654a7365bf66ae2fb00ffbee7263071e2be58c7
parent965ff53f375521760d11f744cd7fe39d6e270271
ceph-volume: retry lvs after empty result and "devices file is missing" stderr

When LVM's devices file is out of sync with the runtime device view (common
in teuthology/container namespaces with multipath), `lvs` can exit 0 with
empty stdout and only stderr warnings about missing mapper entries.
It can leave get_lvs() empty and cause Device() to fall through to lsblk on a
vg/lv path which can produce a misleading "not a block device" error.

With this fix, ceph-volume retries once with 'use_devicesfile=0' when it
detects this specific pattern.

Fixes: https://tracker.ceph.com/issues/76959
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit d91d320a7f1eb936be9ecb4f18806aa9f235ea0e)
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/tests/api/test_api.py