Readd nodes as online
authorKlaus Aehlig <aehlig@google.com>
Thu, 7 Nov 2013 14:19:22 +0000 (15:19 +0100)
committerKlaus Aehlig <aehlig@google.com>
Thu, 7 Nov 2013 15:05:33 +0000 (16:05 +0100)
Patch d0d7d7cf accidentally removed the offline-flag reset
when readding a node. Readd it.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>

lib/cmdlib/node.py

index e83049d..1d98f29 100644 (file)
@@ -317,6 +317,7 @@ class LUNodeAdd(LogicalUnit):
     # later in the procedure; this also means that if the re-add
     # fails, we are left with a non-offlined, broken node
     if self.op.readd:
+      self.new_node.offline = False
       self.new_node.drained = False
       self.LogInfo("Readding a node, the offline/drained flags were reset")
       # if we demote the node, we do cleanup later in the procedure