Signed-off-by: Ricardo Dias <rdias@suse.com>
# The type of service (osd, mon, mgr, etc.)
self.service_type = None
+ # Service version that was deployed
+ self.version = None
+
+ # Location of the service configuration when stored in rados
+ # object. Format: "rados://<pool>/[<namespace/>]<object>"
+ self.rados_config_location = None
+
+ # If the service exposes REST-like API, this attribute should hold
+ # the URL.
+ self.service_url = None
+
class DriveGroupSpec(object):
"""
services.sort(key = lambda s: (s.service_type, s.nodename, s.daemon_name))
lines = []
for s in services:
- lines.append("{0}.{1} {2} {3}".format(
+ lines.append("{0}.{1} {2} {3} {4} {5}".format(
s.service_type,
s.daemon_name,
s.nodename,
- s.container_id))
+ s.container_id,
+ s.version,
+ s.config_location))
return HandleCommandResult(odata="\n".join(lines))