orchestrator device ls [node]
-Query the status of a particular service (mon, osd, mds, rgw). For OSDs
+Query the status of a particular service (mon, osd, mgr, mds, rgw). For OSDs
the id is the numeric OSD ID, for MDS services it is the filesystem name:
::
@deferred_read
def describe_service(self, service_type, service_id):
- assert service_type in ("mds", "osd", "mon", "rgw"), service_type + " unsupported"
+ assert service_type in ("mds", "osd", "mgr", "mon", "rgw"), service_type + " unsupported"
pods = self.rook_cluster.describe_pods(service_type, service_id)
elif service_type == "mon":
sl.daemon_name = p['labels']["mon"]
elif service_type == "mgr":
- # FIXME: put a label on the pod to consume
- # from here
- raise NotImplementedError("mgr")
+ sl.daemon_name = p['labels']["mgr"]
elif service_type == "rgw":
# FIXME: put a label on the pod to consume
# from here
# label like mon=rook-ceph-mon0
label_filter += ",mon={0}".format(service_id)
elif service_type == "mgr":
- # TODO: get Rook to label mgr pods
- pass
+ label_filter += ",mgr={0}".format(service_id)
elif service_type == "rgw":
# TODO: rgw
pass