Commit a9105b24 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Catch disk activation errors in watcher

If activating disks fails for some reason, the watcher didn't
catch the exception. With this patch it's caught and logged.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent c32b908e
......@@ -440,7 +440,10 @@ class Watcher(object):
for name in offline_disk_instances]
job_id = cli.SendJob(job, cl=client)
cli.PollJob(job_id, cl=client, feedback_fn=logging.debug)
cli.PollJob(job_id, cl=client, feedback_fn=logging.debug)
except Exception: # pylint: disable-msg=W0703
logging.exception("Error while activating disks")
def ParseOptions():
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