]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: make 'ceph tell mgr.*' send to the active mgr
authorSage Weil <sage@redhat.com>
Tue, 10 Sep 2019 18:50:50 +0000 (13:50 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Oct 2019 21:30:53 +0000 (16:30 -0500)
We can only send tell commands to the active mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph.in

index fa6514418c0616ea4b654e0c99348befdcd62125..fac4ce3f06e99cf8eaba4e55f5eb7713c77c259e 100755 (executable)
@@ -211,8 +211,9 @@ def mgrids():
     d = json.loads(outbuf.decode('utf-8'))
     l = []
     l.append(d['active_name'])
-    for i in d['standbys']:
-        l.append(i['name'])
+    # we can only send tell commands to the active mgr
+    #for i in d['standbys']:
+    #    l.append(i['name'])
     return l