From 1838770f0cf90069b901c03bb24687eba510ddbb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 4 Nov 2021 10:49:07 -0500 Subject: [PATCH] mgr/rook: make 'osd' unmanaged service appear as unmanaged This makes it match the cephadm result, where e.g., the placement shows as '' in 'orch ls'. Signed-off-by: Sage Weil --- src/pybind/mgr/rook/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/rook/module.py b/src/pybind/mgr/rook/module.py index 2a8a140487d..160c87d7fad 100644 --- a/src/pybind/mgr/rook/module.py +++ b/src/pybind/mgr/rook/module.py @@ -371,12 +371,12 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator): svc = 'osd' spec[svc] = orchestrator.ServiceDescription( spec=DriveGroupSpec( + unmanaged=True, service_type='osd', - placement=PlacementSpec(count=len(all_osds), hosts=[osd.metadata.labels['topology-location-host'] for osd in all_osds]), ), size=len(all_osds), last_refresh=now, - running= sum(osd.status.phase == 'Running' for osd in all_osds) + running=sum(osd.status.phase == 'Running' for osd in all_osds) ) # drivegroups -- 2.39.5