]> 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 69143/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 28 May 2026 11:39:55 +0000 (13:39 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 28 May 2026 11:39:55 +0000 (13:39 +0200)
commitd91d320a7f1eb936be9ecb4f18806aa9f235ea0e
tree184714080402116ae3be3b5589279e4ade5f8067
parent8023e9f5dfd63db8f9dee79ba366ffcdb066e2e6
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>
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/tests/api/test_api.py