]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/ceph-volume: fast device unavailable as error 67745/head
authorTimothy Q Nguyen <timqn22@gmail.com>
Wed, 11 Mar 2026 18:45:38 +0000 (11:45 -0700)
committerTimothy Q Nguyen <timqn22@gmail.com>
Thu, 19 Mar 2026 16:13:13 +0000 (09:13 -0700)
commit262175b107a86a0a330629645b4bc7a00a4fe047
tree86a3e88ab84aa10da284db9299f27fc667975e26
parentcc64fab70a7461f69d05383a379e7f58ec56db05
src/ceph-volume: fast device unavailable as error

Normally when fast devices are passed to batch command but
no fast allocations could be found the batch command will
do nothing and return an empty plan. This leads to issues
however because the return essentially makes this issue silent
which makes it hard to debug in certain scenarios. I propose
to change this to raise error, and have made changes in osd.py
to better log the errors and process the exceptions. This
shouldn't affect processes that much and the change in
osd.py ensures the raised errors will not interrupt the return
output. I've also changed the unit tests to account for
change.

Signed-off-by: Timothy Q Nguyen <timqn22@gmail.com>
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py
src/pybind/mgr/cephadm/services/osd.py