]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
do not use 'ceph tell mgr'
authorSage Weil <sage@redhat.com>
Tue, 10 Sep 2019 15:56:54 +0000 (10:56 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Oct 2019 21:30:53 +0000 (16:30 -0500)
This is now for a daemon/asok command, not a module command.

Signed-off-by: Sage Weil <sage@redhat.com>
doc/mgr/administrator.rst
doc/mgr/influx.rst
qa/workunits/cephtool/test.sh
src/test/mgr/mgr-dashboard-smoke.sh
src/vstart.sh

index ccffe8072d08e5bc61dbbaa7a0c801c88c2bf385..0aebfbd644ab0c3a5e4260597b521d9f78407381 100644 (file)
@@ -125,19 +125,12 @@ Calling module commands
 -----------------------
 
 Where a module implements command line hooks, the commands will
-be accessible as ordinary Ceph commands::
+be accessible as ordinary Ceph commands.  Ceph will automatically incorporate
+module commands into the standard CLI interface and route them appropriately to
+the module.::
 
     ceph <command | help>
 
-If you would like to see the list of commands handled by the
-manager (where normal ``ceph help`` would show all mon and mgr commands),
-you can send a command directly to the manager daemon::
-
-    ceph tell mgr help
-
-Note that it is not necessary to address a particular mgr instance,
-simply ``mgr`` will pick the current active daemon.
-
 Configuration
 -------------
 
index eab9494a96f0b1fdb053b7205708a94561144db9..9a770530ac94b8216e5d6f1a2c9f4ab91304323b 100644 (file)
@@ -70,7 +70,7 @@ To make use of the debugging option in the module:
     [mgr]
         debug_mgr = 20  
 
-- Use this command ``ceph tell mgr.<mymonitor> influx self-test``.
+- Use this command ``ceph influx self-test``.
 - Check the log files. Users may find it easier to filter the log files using *mgr[influx]*.
 
 --------------------
index 01ddacc28c2868505247b46f334c6d12191cd41f..7936b0b823888b2110e7af9144d6d992385003f2 100755 (executable)
@@ -2737,9 +2737,7 @@ function test_mds_tell_help_command()
 
 function test_mgr_tell()
 {
-  ceph tell mgr help
-  #ceph tell mgr fs status   # see http://tracker.ceph.com/issues/20761
-  ceph tell mgr osd status
+  ceph tell mgr version
 }
 
 function test_per_pool_scrub_status()
index 582909a6ed545067b9c30a66706c9f429d07e499..3a4bbff3fe89a9daa4cfacf193c80219b12f1c69 100755 (executable)
@@ -51,7 +51,7 @@ function TEST_dashboard() {
         tries=$((tries+1))
         sleep 1
     done
-    ceph_adm tell mgr dashboard set-login-credentials admin admin
+    ceph_adm dashboard set-login-credentials admin admin
 
     tries=0
     while [[ $tries < 30 ]] ; do
index 5eb4e723feb15f35ee11dcdb0c52393c7efcf15a..3b86f243ef4925ab534e441ce95938d850ba5dbc 100755 (executable)
@@ -932,20 +932,26 @@ EOF
         run 'mgr' $name $CEPH_BIN/ceph-mgr -i $name $ARGS
     done
 
-    # use tell mgr here because the first mgr might not have activated yet
-    # to register the python module commands.
     if [ "$new" -eq 1 ]; then
         # setting login credentials for dashboard
         if $with_mgr_dashboard; then
-            ceph_adm tell mgr dashboard ac-user-create admin admin administrator
+            while ! ceph_adm -h | grep -c -q ^dashboard ; do
+                echo 'waiting for mgr dashboard module to start'
+                sleep 1
+            done
+            ceph_adm dashboard ac-user-create admin admin administrator
             if [ "$ssl" != "0" ]; then
-                if ! ceph_adm tell mgr dashboard create-self-signed-cert;  then
+                if ! ceph_adm dashboard create-self-signed-cert;  then
                     echo dashboard module not working correctly!
                 fi
             fi
         fi
 
-        if ceph_adm tell mgr restful create-self-signed-cert; then
+        while ! ceph_adm -h | grep -c -q ^restful ; do
+            echo 'waiting for mgr restful module to start'
+            sleep 1
+        done
+        if ceph_adm restful create-self-signed-cert; then
             SF=`mktemp`
             ceph_adm restful create-key admin -o $SF
             RESTFUL_SECRET=`cat $SF`