Commit a86690c5 by Kálmán Viktor

Merge branch 'advanced-logging-shutdown' into 'master'

More logging for shutdown

This should give us enough information to debug why the shutdown would sometimes hit the celery task time limit without libvirt getting the shutdown request.

See merge request !10
parents 1562b83b 7c90be21
......@@ -210,9 +210,12 @@ class shutdown(AbortableTask):
def run(self, args):
from time import sleep
name, = args
logging.info("Shutdown started for vm: %s", name)
try:
domain = lookupByName(name)
logging.info("%s domain found in shutdown", name)
domain.shutdown()
logging.info("Domain shutdown called for vm: %s", name)
while True:
try:
Connection.get().lookupByName(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 sign in to comment