Commit 0c0f834d authored by Iustin Pop's avatar Iustin Pop
Browse files

Watcher: do not activate disks for admin_down

Currently the watcher does activate disks (via bootid mechanisms) even
for admin_down instances.  This patch logs and skips over these
instances.

Reviewed-by: ultrotter
parent b544cfe0
......@@ -367,6 +367,12 @@ class Watcher(object):
# Activate disks for all instances with any of the checked nodes as a
# secondary node.
for instance in GetInstanceList(with_secondaries=check_nodes):
if not instance.autostart:
self.messages.append(Message(NOTICE,
("Skipping disk activation for"
" non-autostart instance '%s'." %
instance.name)))
continue
try:
self.messages.append(Message(NOTICE, ("Activating disks for %s." %
instance.name)))
......
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