orchestrator: rework describe_service prototype to allow for nodename

...and a new service_type field in ServiceLocation object.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
Jeff Layton 2018-10-30 14:21:33 -04:00
parent 79bb26121a
commit 99cbbdd5a1

View File

@ -154,7 +154,7 @@ class Orchestrator(object):
"""
raise NotImplementedError()
def describe_service(self, service_type, service_id):
def describe_service(self, service_type=None, service_id=None, node_name=None):
"""
Describe a service (of any kind) that is already configured in
the orchestrator. For example, when viewing an OSD in the dashboard
@ -320,6 +320,9 @@ class ServiceLocation(object):
# in the FSMap/ServiceMap.
self.daemon_name = None
# The type of service (osd, mon, mgr, etc.)
self.service_type = None
class ServiceDescription(object):
"""