2018-08-02 14:32:38 +00:00
|
|
|
|
|
|
|
.. _orchestrator-cli-module:
|
|
|
|
|
|
|
|
================
|
|
|
|
Orchestrator CLI
|
|
|
|
================
|
|
|
|
|
|
|
|
This module provides a command line interface (CLI) to orchestrator
|
|
|
|
modules (ceph-mgr modules which interface with external orchestation services)
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
=============
|
|
|
|
|
|
|
|
You can select the orchestrator module to use with the ``set backend`` command:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
ceph orchestrator set backend <module>
|
|
|
|
|
|
|
|
For example, to enable the Rook orchestrator module and use it with the CLI:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
ceph mgr module enable orchestrator_cli
|
|
|
|
ceph mgr module enable rook
|
|
|
|
ceph orchestrator set backend rook
|
|
|
|
|
|
|
|
|
2018-08-06 15:20:39 +00:00
|
|
|
You can then check backend is properly configured:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
ceph orchestrator status
|
|
|
|
|
|
|
|
|
2018-08-02 14:32:38 +00:00
|
|
|
Usage
|
|
|
|
=====
|
|
|
|
|
|
|
|
Print a list of discovered devices, grouped by node and optionally
|
|
|
|
filtered to a particular node:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
orchestrator device ls [node]
|
|
|
|
|
2018-10-30 18:28:02 +00:00
|
|
|
Print a list of services known to the orchestrator. The list can be limited to
|
|
|
|
services on a particular host with the optional --host parameter and/or
|
|
|
|
services of a particular type via optional --type parameter
|
|
|
|
(mon, osd, mgr, mds, rgw):
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
orchestrator service ls [--host=host] [--type=type]
|
|
|
|
|
2018-10-31 11:40:29 +00:00
|
|
|
Query the status of a particular service (mon, osd, mgr, mds, rgw). For OSDs
|
2018-08-02 14:32:38 +00:00
|
|
|
the id is the numeric OSD ID, for MDS services it is the filesystem name:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
orchestrator service status <type> <id>
|
|
|
|
|
|
|
|
Create a service. For an OSD, the "what" is <node>:<device>, where the
|
|
|
|
device naming should match what was reported in ``device ls``. For an MDS
|
|
|
|
service, the "what" is the filesystem name:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
orchestrator service add <type> <what>
|
|
|
|
|
|
|
|
|