]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/ceph-volume: fast device unavailable as error 67916/head
authorTimothy Q Nguyen <timqn22@gmail.com>
Wed, 11 Mar 2026 18:45:38 +0000 (11:45 -0700)
committerGuillaume Abrioux <gabrioux@ibm.com>
Fri, 20 Mar 2026 14:00:12 +0000 (14:00 +0000)
commitc546948eba826e762f8bb049655cc9a928387240
tree36a1d5abe71b5457e114db006f997acaf2ac1616
parent5bb3278730741031382ca9c3dc9d221a942e06a2
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>
(cherry picked from commit 262175b107a86a0a330629645b4bc7a00a4fe047)
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