From bad294bd64ec34be8d586b6de8131f376df72356 Mon Sep 17 00:00:00 2001 From: Helga Velroyen Date: Thu, 17 Dec 2015 11:26:41 +0100 Subject: [PATCH] Update documentation of gnt-node {add,remove,modify} MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch brings the documentation (NEWS, man page) of 'gnt-node {add,remove,modify}' up to date with the recent changes.     Signed-off-by: Helga Velroyen Reviewed-by: Klaus Aehlig Signed-off-by: Helga Velroyen --- NEWS | 5 +++-- man/gnt-node.rst | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 2c02bfa..2678148 100644 --- a/NEWS +++ b/NEWS @@ -20,8 +20,9 @@ Incompatible/important changes message of tools is now properly labelled with the name of the tool that submitted the message. - The options ``--debug`` and ``--verbose`` of ``gnt-cluster - renew-crypto`` now (also) control the log level of the SSH calls to - all nodes. + renew-crypto`` and ``gnt-node {add,remove,modify}`` now (also) control the + log level of the SSH calls to all nodes. + New features ~~~~~~~~~~~~ diff --git a/man/gnt-node.rst b/man/gnt-node.rst index 349cfc2..65eb6a3 100644 --- a/man/gnt-node.rst +++ b/man/gnt-node.rst @@ -30,6 +30,7 @@ ADD | [\--disk-state *diskstate*] | [\--hypervisor-state *hvstate*] | [\--no-node-setup] +| [\--verbose] | [\--debug] | {*nodename*} Adds the given node to the cluster. @@ -87,6 +88,10 @@ If the node was previously part of another cluster and still has daemons running, the ``node-cleanup`` tool can be run on the machine to be added to clean remains of the previous cluster from the node. +The options ``--verbose`` and ``--debug`` control the log level of the +operation, in particular the one of the underlying SSH calls that +Ganeti makes when adding a node. + Example:: # gnt-node add node5.example.com @@ -339,6 +344,7 @@ MODIFY | [\--node-powered=``yes|no``] | [\--hypervisor-state *hvstate*] | [\--disk-state *diskstate*] +| [\--verbose] [\--debug] | {*node*} This command changes the role of the node. Each options takes @@ -372,6 +378,11 @@ convert a cluster from single homed to multi-homed or vice versa ``--force`` is needed as well, and the target node for the first change must be the master. +The options ``--verbose`` and ``--debug`` control the log level of the +operation, in particular the one of the underlying SSH calls that +Ganeti makes when modifying some parameters a node (e.g. promoting +or demoting a node to or from 'master candidate' status). + See **ganeti**\(7) for a description of ``--submit`` and other common options. @@ -383,11 +394,16 @@ Example (setting the node back to online and master candidate):: REMOVE ~~~~~~ -**remove** {*nodename*} +**remove** [\--verbose] [\--debug] {*nodename*} Removes a node from the cluster. Instances must be removed or migrated to another cluster before. +The options ``--verbose`` and ``--debug`` control the log level of the +operation, in particular the one of the underlying SSH calls that +Ganeti makes when removing a node. + + Example:: # gnt-node remove node5.example.com -- 1.7.10.4