]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/orchestrator: make hosts and label args consistent 32253/head
authorSage Weil <sage@redhat.com>
Fri, 13 Dec 2019 22:30:29 +0000 (16:30 -0600)
committerSage Weil <sage@redhat.com>
Fri, 13 Dec 2019 22:50:26 +0000 (16:50 -0600)
- hosts is always n=N; labels is not
- hosts always before labels

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/orchestrator_cli/module.py

index 9dd74a4c98248bd19953cb5148c81c20f5304aa9..5949ed910c015ada7cb308761730ea688d1d0427 100644 (file)
@@ -393,8 +393,8 @@ Usage:
     @orchestrator._cli_write_command(
         'orchestrator rbd-mirror update',
         "name=num,type=CephInt,req=false "
-        "name=label,type=CephString,req=false "
-        "name=hosts,type=CephString,n=N,req=false",
+        "name=hosts,type=CephString,n=N,req=false "
+        "name=label,type=CephString,req=false",
         'Update the number of rbd-mirror instances')
     def _rbd_mirror_update(self, num, label=None, hosts=[]):
         spec = orchestrator.StatelessServiceSpec(
@@ -434,8 +434,8 @@ Usage:
         'orchestrator mds update',
         "name=fs_name,type=CephString "
         "name=num,type=CephInt,req=false "
-        "name=label,type=CephString,req=false",
         "name=hosts,type=CephString,n=N,req=false "
+        "name=label,type=CephString,req=false",
         'Update the number of MDS instances for the given fs_name')
     def _mds_update(self, fs_name, num=None, label=None, hosts=[]):
         placement = orchestrator.PlacementSpec(label=label, count=num, nodes=hosts)
@@ -495,8 +495,8 @@ Usage:
         'name=zone_name,type=CephString '
         'name=realm_name,type=CephString '
         'name=num,type=CephInt,req=false '
-        'name=label,type=CephString,req=false '
-        'name=hosts,type=CephString,n=N,req=false',
+        'name=hosts,type=CephString,n=N,req=false '
+        'name=label,type=CephString,req=false',
         'Update the number of RGW instances for the given zone')
     def _rgw_update(self, zone_name, realm_name, num=None, label=None, hosts=[]):
         spec = orchestrator.RGWSpec(
@@ -583,7 +583,7 @@ Usage:
         'orchestrator mgr update',
         "name=num,type=CephInt,req=false "
         "name=hosts,type=CephString,n=N,req=false "
-        "name=label,type=CephString,n=N,req=false",
+        "name=label,type=CephString,req=false",
         'Update the number of manager instances')
     def _update_mgrs(self, num=None, hosts=[], label=None):
 
@@ -601,7 +601,7 @@ Usage:
         'orchestrator mon update',
         "name=num,type=CephInt,req=false "
         "name=hosts,type=CephString,n=N,req=false "
-        "name=label,type=CephString,n=N,req=false",
+        "name=label,type=CephString,req=false",
         'Update the number of monitor instances')
     def _update_mons(self, num=None, hosts=[], label=None):