Revision dec0d9da lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
2464 | 2464 |
node.master_candidate = False |
2465 | 2465 |
changed_mc = True |
2466 | 2466 |
result.append(("master_candidate", "auto-demotion due to drain")) |
2467 |
rrc = self.rpc.call_node_demote_from_mc(node.name) |
|
2468 |
msg = rrc.RemoteFailMsg() |
|
2469 |
if msg: |
|
2470 |
self.LogWarning("Node failed to demote itself: %s" % msg) |
|
2467 | 2471 |
if node.offline: |
2468 | 2472 |
node.offline = False |
2469 | 2473 |
result.append(("offline", "clear offline status due to drain")) |
Also available in: Unified diff