]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: fix 'orch ps' for osds
authorSage Weil <sage@redhat.com>
Fri, 13 Mar 2020 16:03:30 +0000 (12:03 -0400)
committerSage Weil <sage@redhat.com>
Tue, 17 Mar 2020 15:45:21 +0000 (11:45 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/rook/module.py

index 6e3796298e31c894795d9a4aaa381d310029bac8..a8b18de0fcbb2fac766e4f48b2f0e2b72c17c77c 100644 (file)
@@ -355,6 +355,8 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator):
 
             if 'ceph_daemon_id' in p['labels']:
                 sd.daemon_id = p['labels']['ceph_daemon_id']
+            elif 'ceph-osd-id' in p['labels']:
+                sd.daemon_id = p['labels']['ceph-osd-id']
             else:
                 # Unknown type -- skip it
                 continue