From 9b4b2c429ea587655bd1935339c14d945dbc43a3 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python-common/ceph/deployment/translate.py b/src/python-common/ceph/deployment/translate.py index fab0518e1a9..d9bd5714e7b 100644 --- a/src/python-common/ceph/deployment/translate.py +++ b/src/python-common/ceph/deployment/translate.py @@ -136,7 +136,7 @@ class to_ceph_volume(object): cmd += " --objectstore {}".format(self.spec.objectstore) if self.spec.osd_type: - cmd += " --osd-type {}".format(self.spec.osd_type) + cmd += " --osd-type {}".format(self.spec.osd_type.value) cmds.append(cmd) -- 2.47.3