Drop the -g shortcut for --vg-name
authorGuido Trotter <ultrotter@google.com>
Fri, 29 Oct 2010 10:42:11 +0000 (11:42 +0100)
committerGuido Trotter <ultrotter@google.com>
Mon, 1 Nov 2010 17:27:21 +0000 (17:27 +0000)
Changing the volume group is a lot less frequent than acting on a node
group. As such we drop the "-g" shortcut and require the long option to
be passed. In 2.3 the commands which used to accept the volume group as
"-g" won't have any node group option, so no confusion will arise. Later
on we may pass "-g" as the initial node group name to gnt-cluster init,
although that's not strictly necessary, as modifying it later is always
possible.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

lib/cli.py
man/gnt-cluster.sgml

index 32e1a0f..eceebe0 100644 (file)
@@ -902,7 +902,7 @@ CP_SIZE_OPT = cli_option("-C", "--candidate-pool-size", default=None,
                          dest="candidate_pool_size", type="int",
                          help="Set the candidate pool size")
 
-VG_NAME_OPT = cli_option("-g", "--vg-name", dest="vg_name",
+VG_NAME_OPT = cli_option("--vg-name", dest="vg_name",
                          help="Enables LVM and specifies the volume group"
                          " name (cluster-wide) for disk allocation [xenvg]",
                          metavar="VG", default=None)
index c1a8bb1..53e9483 100644 (file)
         <sbr>
         <arg>-s <replaceable>secondary_ip</replaceable></arg>
         <sbr>
-        <arg>-g <replaceable>vg-name</replaceable></arg>
+        <arg>--vg-name <replaceable>vg-name</replaceable></arg>
         <sbr>
         <arg>--master-netdev <replaceable>interface-name</replaceable></arg>
         <sbr>
       </para>
 
       <para>
-        The <option>-g</option> option will let you specify a volume group
+        The <option>--vg-name</option> option will let you specify a volume group
         different than "xenvg" for Ganeti to use when creating instance disks.
         This volume group must have the same name on all nodes. Once the
         cluster is initialized this can be altered by using the
       <cmdsynopsis>
         <command>modify</command>
         <sbr>
-        <arg choice="opt">-g <replaceable>vg-name</replaceable></arg>
+        <arg choice="opt">--vg-name <replaceable>vg-name</replaceable></arg>
         <sbr>
         <arg choice="opt">--no-lvm-storage</arg>
         <sbr>
         </para>
 
         <para>
-          The <option>-g</option>, <option>--no-lvm-storarge</option>,
+          The <option>--vg-name</option>, <option>--no-lvm-storarge</option>,
           <option>--enabled-hypervisors</option>,
           <option>--hypervisor-parameters</option>,
           <option>--backend-parameters</option>,