Revision dd94e9f6

b/lib/cli.py
108 108
  "NODE_PLACEMENT_OPT",
109 109
  "NODEGROUP_OPT",
110 110
  "NODE_PARAMS_OPT",
111
  "NODE_POWERED_OPT",
111 112
  "NODRBD_STORAGE_OPT",
112 113
  "NOHDR_OPT",
113 114
  "NOIPCHECK_OPT",
b/lib/client/gnt_node.py
680 680
                               secondary_ip=opts.secondary_ip,
681 681
                               force=opts.force,
682 682
                               ndparams=opts.ndparams,
683
                               auto_promote=opts.auto_promote)
683
                               auto_promote=opts.auto_promote,
684
                               powered=opts.node_powered)
684 685

  
685 686
  # even if here we process the result, we allow submit only
686 687
  result = SubmitOrSend(op, opts)
......
739 740
    SetNodeParams, ARGS_ONE_NODE,
740 741
    [FORCE_OPT, SUBMIT_OPT, MC_OPT, DRAINED_OPT, OFFLINE_OPT,
741 742
     CAPAB_MASTER_OPT, CAPAB_VM_OPT, SECONDARY_IP_OPT,
742
     AUTO_PROMOTE_OPT, DRY_RUN_OPT, PRIORITY_OPT, NODE_PARAMS_OPT],
743
     AUTO_PROMOTE_OPT, DRY_RUN_OPT, PRIORITY_OPT, NODE_PARAMS_OPT,
744
     NODE_POWERED_OPT],
743 745
    "<node_name>", "Alters the parameters of a node"),
744 746
  'powercycle': (
745 747
    PowercycleNode, ARGS_ONE_NODE,
b/man/gnt-node.rst
354 354
| [--master-capable=``yes|no``] [--vm-capable=``yes|no``] [--auto-promote]
355 355
| [-s *secondary_ip*]
356 356
| [--node-parameters *ndparams*]
357
| [--node-powered=``yes|no``]
357 358
| {*node*}
358 359

  
359 360
This command changes the role of the node. Each options takes
......
361 362
yes. The meaning of the roles and flags are described in the
362 363
manpage **ganeti**(7).
363 364

  
365
``--node-powered`` can be used to modify state-of-record if it doesn't reflect
366
the reality anymore.
367

  
364 368
In case a node is demoted from the master candidate role, the
365 369
operation will be refused unless you pass the ``--auto-promote``
366 370
option. This option will cause the operation to lock all cluster nodes

Also available in: Unified diff