]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr/plugins.rst: explain more about the plugin command protocol 22629/head
authorDan Mick <dan.mick@redhat.com>
Tue, 19 Jun 2018 23:45:06 +0000 (16:45 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 19 Jun 2018 23:45:06 +0000 (16:45 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
doc/mgr/plugins.rst

index 377078fd899a59de99be73ec916ecd350af3ed7c..8cfab3520fca107d59ccf8f1a7041ed39d18fd5c 100644 (file)
@@ -61,7 +61,15 @@ like this::
 The ``cmd`` part of each entry is parsed in the same way as internal
 Ceph mon and admin socket commands (see mon/MonCommands.h in
 the Ceph source for examples). Note that the "poll" field is optional,
-and is set to False by default.
+and is set to False by default; this indicates to the ``ceph`` CLI
+that it should call this command repeatedly and output results (see
+``ceph -h`` and its ``--period`` option).
+
+Each command is expected to return a tuple ``(retval, stdout, stderr)``.
+``retval`` is an integer representing a libc error code (e.g. EINVAL,
+EPERM, or 0 for no error), ``stdout`` is a string containing any
+non-error output, and ``stderr`` is a string containing any progress or
+error explanation output.  Either or both of the two strings may be empty.
 
 Configuration options
 ---------------------