]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common: fix raw OSD prepare to use osd-id instead of osd-ids 67842/head
authorYonatan Zaken <yzaken@redhat.com>
Tue, 17 Mar 2026 10:15:39 +0000 (12:15 +0200)
committerYonatan Zaken <yzaken@redhat.com>
Tue, 17 Mar 2026 10:15:39 +0000 (12:15 +0200)
commit00e2ce86079c5bda84c53560b921198fa1ff906f
tree2076bad3d39aee536fe7acf5fdbb4dd5c855f08f
parent906949d3dc8345aa5edfd4cf368e1cc0809cffef
python-common: fix raw OSD prepare to use osd-id instead of osd-ids

ceph-volume raw prepare does not support --osd-ids (plural), only
--osd-id (singular) per device since for raw prepare each data device
needs its own prepare command. When replacing a destroyed OSD using
"ceph orch daemon add osd <host>:<dev> raw", the wrong argument was
passed causing ceph-volume to fail with "unrecognized arguments:
--osd-ids".

Fix the osd_id_claims handling in translate.py to use --osd-id
(singular, per device) for raw mode, and retain --osd-ids (plural)
for lvm batch mode.

Fixes: https://tracker.ceph.com/issues/69284
Signed-off-by: Yonatan Zaken <yzaken@redhat.com>
src/python-common/ceph/deployment/translate.py
src/python-common/ceph/tests/test_drive_group.py