From 68a856ef0244155d64efc35ce5f42e5d4712fc67 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 5 Jan 2012 14:05:08 +0100
Subject: [PATCH] =?UTF-8?q?rpc=5Fdefs:=20Enable=20=E2=80=9Cnode=5Fpowercyc?=
 =?UTF-8?q?le=E2=80=9D=20for=20offline=20nodes?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenΓ© Nussbaumer <rn@google.com>
---
 lib/rpc_defs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rpc_defs.py b/lib/rpc_defs.py
index 657776ff4..288acf2aa 100644
--- a/lib/rpc_defs.py
+++ b/lib/rpc_defs.py
@@ -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"),
   ]
-- 
GitLab