Update gnt-node evacuate man page/help text
authorIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 09:17:39 +0000 (10:17 +0100)
committerIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 09:50:38 +0000 (10:50 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

lib/client/gnt_node.py
man/gnt-node.rst

index e831221..38251f4 100644 (file)
@@ -889,7 +889,7 @@ commands = {
     EvacuateNode, ARGS_ONE_NODE,
     [FORCE_OPT, IALLOCATOR_OPT, NEW_SECONDARY_OPT, EARLY_RELEASE_OPT,
      PRIORITY_OPT, PRIMARY_ONLY_OPT, SECONDARY_ONLY_OPT],
-    "[-f] {-I <iallocator> | -n <dst>} <node>",
+    "[-f] {-I <iallocator> | -n <dst>} [-p | -s] [options...] <node>",
     "Relocate the primary and/or secondary instances from a node"),
   "failover": (
     FailoverNode, ARGS_ONE_NODE, [FORCE_OPT, IGNORE_CONSIST_OPT,
index b8cc2af..4065737 100644 (file)
@@ -95,9 +95,10 @@ interpreted as stdin.
 EVACUATE
 ~~~~~~~~
 
-**evacuate** [-f] [\--early-release] [\--iallocator *NAME* \|
-\--new-secondary *destination\_node*]
-[\--primary-only \| \--secondary-only] [\--early-release] {*node*}
+| **evacuate** [-f] [\--early-release]
+| [{-I|\--iallocator} *NAME* \| {-n|\--new-secondary} *destination\_node*]
+| [{-p|\--primary-only} \| {-s|\--secondary-only} ]
+|  {*node*}
 
 This command will move instances away from the given node. If
 ``--primary-only`` is given, only primary instances are evacuated, with