Commit 04367e70 authored by Guido Trotter's avatar Guido Trotter
Browse files

Drop the -g shortcut for --vg-name



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: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 515d87eb
...@@ -902,7 +902,7 @@ CP_SIZE_OPT = cli_option("-C", "--candidate-pool-size", default=None, ...@@ -902,7 +902,7 @@ CP_SIZE_OPT = cli_option("-C", "--candidate-pool-size", default=None,
dest="candidate_pool_size", type="int", dest="candidate_pool_size", type="int",
help="Set the candidate pool size") 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" help="Enables LVM and specifies the volume group"
" name (cluster-wide) for disk allocation [xenvg]", " name (cluster-wide) for disk allocation [xenvg]",
metavar="VG", default=None) metavar="VG", default=None)
......
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
<sbr> <sbr>
<arg>-s <replaceable>secondary_ip</replaceable></arg> <arg>-s <replaceable>secondary_ip</replaceable></arg>
<sbr> <sbr>
<arg>-g <replaceable>vg-name</replaceable></arg> <arg>--vg-name <replaceable>vg-name</replaceable></arg>
<sbr> <sbr>
<arg>--master-netdev <replaceable>interface-name</replaceable></arg> <arg>--master-netdev <replaceable>interface-name</replaceable></arg>
<sbr> <sbr>
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
</para> </para>
<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. different than "xenvg" for Ganeti to use when creating instance disks.
This volume group must have the same name on all nodes. Once the This volume group must have the same name on all nodes. Once the
cluster is initialized this can be altered by using the cluster is initialized this can be altered by using the
...@@ -635,7 +635,7 @@ ...@@ -635,7 +635,7 @@
<cmdsynopsis> <cmdsynopsis>
<command>modify</command> <command>modify</command>
<sbr> <sbr>
<arg choice="opt">-g <replaceable>vg-name</replaceable></arg> <arg choice="opt">--vg-name <replaceable>vg-name</replaceable></arg>
<sbr> <sbr>
<arg choice="opt">--no-lvm-storage</arg> <arg choice="opt">--no-lvm-storage</arg>
<sbr> <sbr>
...@@ -672,7 +672,7 @@ ...@@ -672,7 +672,7 @@
</para> </para>
<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>--enabled-hypervisors</option>,
<option>--hypervisor-parameters</option>, <option>--hypervisor-parameters</option>,
<option>--backend-parameters</option>, <option>--backend-parameters</option>,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment