Commit 604c175c authored by Iustin Pop's avatar Iustin Pop
Browse files

watcher: improve logging a bit

Add some debug logging to detail why we don't run some steps.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarRené Nussbaumer <>
parent 0c39d5eb
......@@ -527,6 +527,8 @@ class Watcher(object):
if in self.started_instances:
# we already tried to start the instance, which should have
# activated its drives (if they can be at all)
logging.debug("Skipping disk activation for instance %s, as"
" it was already started",
try:"Activating disks for instance %s",
......@@ -561,8 +563,7 @@ class Watcher(object):, MAXTRIES)
try:"Restarting %s%s",, last)"Restarting %s%s",, last)
except Exception: # pylint: disable-msg=W0703
......@@ -605,8 +606,9 @@ class Watcher(object):
offline_disk_instances = result[1]
if not offline_disk_instances:
# nothing to do
logging.debug("verify-disks reported no offline disks, nothing to do")
logging.debug("Will activate disks for instances %s",
logging.debug("Will activate disks for instance(s) %s",
# we submit only one job, and wait for it. not optimal, but spams
# less the job queue
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