From 58f0ff6fd67d5e9b30c70d5201d1e5bb82211b8a Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 9 Feb 2026 11:10:51 +0100 Subject: [PATCH] ceph-volume: pass osd_type value to ceph-volume Use OSDType.value when building the ceph-volume lvm batch command so that the CLI receives "classic" or "crimson" instead of the enum repr ("OSDType.classic"). Fixes: https://tracker.ceph.com/issues/74818 Signed-off-by: Guillaume Abrioux --- src/python-common/ceph/deployment/translate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python-common/ceph/deployment/translate.py b/src/python-common/ceph/deployment/translate.py index fab0518e1a9..634fb0e1f51 100644 --- a/src/python-common/ceph/deployment/translate.py +++ b/src/python-common/ceph/deployment/translate.py @@ -136,7 +136,8 @@ class to_ceph_volume(object): cmd += " --objectstore {}".format(self.spec.objectstore) if self.spec.osd_type: - cmd += " --osd-type {}".format(self.spec.osd_type) + osd_type_str = getattr(self.spec.osd_type, 'value', self.spec.osd_type) + cmd += " --osd-type {}".format(osd_type_str) cmds.append(cmd) -- 2.47.3