device ls ✔️ ✔️ ✔️ ✔️
service ls ⚪ ✔️ ✔️ ✔
service-instance status ⚪ ⚪ ⚪ ✔
+ service-instance {stop,start,...} ⚪ ⚪ ⚪ ✔
iscsi {stop,start,reload} ⚪ ⚪ ⚪ ⚪
iscsi add ⚪ ⚪ ⚪ ⚪
iscsi rm ⚪ ⚪ ⚪ ⚪
iscsi update ⚪ ⚪ ⚪ ⚪
- mds {stop,start,reload} ⚪ ⚪ ⚪ ⚪
mds add ⚪ ✔️ ⚪ ✔
mds rm ⚪ ✔️ ⚪ ✔
mds update ⚪ ✔ ⚪ ✔
* If using service_id, perform the action on a single specific daemon
instance.
- :param action: one of "start", "stop", "reload"
+ :param action: one of "start", "stop", "reload", "restart"
:param service_type: e.g. "mds", "rgw", ...
:param service_name: name of logical service ("cephfs", "us-east", ...)
:param service_id: service daemon instance (usually a short hostname)
return HandleCommandResult(stdout=completion.result_str())
@_write_cli('orchestrator service',
- "name=action,type=CephChoices,strings=start|stop|reload "
+ "name=action,type=CephChoices,strings=start|stop|reload|restart "
"name=svc_type,type=CephString "
"name=svc_name,type=CephString",
'Start, stop or reload an entire service (i.e. all daemons)')
return HandleCommandResult(stdout=completion.result_str())
@_write_cli('orchestrator service-instance',
- "name=action,type=CephChoices,strings=start|stop|reload "
+ "name=action,type=CephChoices,strings=start|stop|reload|restart "
"name=svc_type,type=CephString "
"name=svc_id,type=CephString",
'Start, stop or reload a specific service instance')
actions = {
'start': ['reset-failed', 'start'],
'stop': ['stop'],
+ 'restart': ['reset-failed', 'restart'],
}
name = '%s.%s' % (service_type, service_id)
for a in actions[action]: