]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: drop --{mon,osd,mds,rgw,mgr}_num options 18648/head
authorKefu Chai <kchai@redhat.com>
Tue, 31 Oct 2017 10:52:09 +0000 (18:52 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 31 Oct 2017 10:53:16 +0000 (18:53 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rgw/test_multi.py
src/vstart.sh

index 21154585ceb05f2962acafb54fc252b339c349f0..bbf6d49f3734197a199444be27e2414a5ca8ebca 100644 (file)
@@ -58,9 +58,12 @@ class Cluster(multisite.Cluster):
 
     def start(self):
         cmd = [mstart_path + 'mstart.sh', self.cluster_id]
+        env = None
         if self.needs_reset:
-            cmd += ['-n', '--mds_num', '0']
-        bash(cmd)
+            env = os.environ.copy()
+            env['CEPH_NUM_MDS'] = '0'
+            cmd += ['-n']
+        bash(cmd, env=env)
         self.needs_reset = False
 
     def stop(self):
index ac5f1907f85b018e1821bc5f795343b9fc1d3f4f..8f69bc7dd6a1ee0225103c8a43fb5011fe9fb06a 100755 (executable)
@@ -127,7 +127,7 @@ keyring_fn="$CEPH_CONF_PATH/keyring"
 osdmap_fn="/tmp/ceph_osdmap.$$"
 monmap_fn="/tmp/ceph_monmap.$$"
 
-usage="usage: $0 [option]... \nex: $0 -n -d --mon_num 3 --osd_num 3 --mds_num 1 --rgw_num 1\n"
+usage="usage: $0 [option]... \nex: MON=3 OSD=1 MDS=1 MDS=1 RGW=1 $0 -n -d\n"
 usage=$usage"options:\n"
 usage=$usage"\t-d, --debug\n"
 usage=$usage"\t-s, --standby_mds: Generate standby-replay MDS for each active\n"
@@ -145,11 +145,6 @@ usage=$usage"\t-X disable cephx\n"
 usage=$usage"\t--hitset <pool> <hit_set_type>: enable hitset tracking\n"
 usage=$usage"\t-e : create an erasure pool\n";
 usage=$usage"\t-o config\t\t add extra config parameters to all sections\n"
-usage=$usage"\t--mon_num specify ceph monitor count\n"
-usage=$usage"\t--osd_num specify ceph osd count\n"
-usage=$usage"\t--mds_num specify ceph mds count\n"
-usage=$usage"\t--rgw_num specify ceph rgw count\n"
-usage=$usage"\t--mgr_num specify ceph mgr count\n"
 usage=$usage"\t--rgw_port specify ceph rgw http listen port\n"
 usage=$usage"\t--rgw_frontend specify the rgw frontend configuration\n"
 usage=$usage"\t--rgw_compression specify the rgw compression plugin\n"
@@ -234,27 +229,6 @@ case $1 in
     --smallmds )
            smallmds=1
            ;;
-    --mon_num )
-            echo "mon_num:$2"
-            CEPH_NUM_MON="$2"
-            shift
-            ;;
-    --osd_num )
-            CEPH_NUM_OSD=$2
-            shift
-            ;;
-    --mds_num )
-            CEPH_NUM_MDS=$2
-            shift
-            ;;
-    --rgw_num )
-            CEPH_NUM_RGW=$2
-            shift
-            ;;
-    --mgr_num )
-            CEPH_NUM_MGR=$2
-            shift
-            ;;
     --rgw_port )
             CEPH_RGW_PORT=$2
             shift