Commit 68a856ef authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rpc_defs: Enable “node_powercycle” for offline nodes



With this change it's possible to powercycle nodes marked as offline. Of
course the node might not be running the node daemon anymore.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 890ea4ce
......@@ -447,7 +447,7 @@ _NODE_CALLS = [
"Gets all volumes on node(s)"),
("node_demote_from_mc", SINGLE, None, TMO_FAST, [], None, None,
"Demote a node from the master candidate role"),
("node_powercycle", SINGLE, None, TMO_NORMAL, [
("node_powercycle", SINGLE, ACCEPT_OFFLINE_NODE, TMO_NORMAL, [
("hypervisor", None, "Hypervisor type"),
], None, None, "Tries to powercycle a node"),
]
......
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