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): ...@@ -210,9 +210,12 @@ class shutdown(AbortableTask):
def run(self, args): def run(self, args):
from time import sleep from time import sleep
name, = args name, = args"Shutdown started for vm: %s", name)
try: try:
domain = lookupByName(name) domain = lookupByName(name)"%s domain found in shutdown", name)
domain.shutdown() domain.shutdown()"Domain shutdown called for vm: %s", name)
while True: while True:
try: try:
Connection.get().lookupByName(name) 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