From 45c75b0c8ecea6952d68cc28d2925c6a42a799de Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Thu, 23 Dec 2010 07:05:45 +0000 Subject: added power state logging to nova.virt.xenapi.vm_utils --- nova/virt/xenapi/vm_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index 667da27ea..095e32ae2 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -217,6 +217,10 @@ class VMHelper(): @classmethod def compile_info(cls, record): + logging.info("(VM_UTILS) xenserver vm state -> |%s|", + record['power_state']) + logging.info("(VM_UTILS) xenapi power_state -> |%s|", + XENAPI_POWER_STATE[record['power_state']]) return {'state': XENAPI_POWER_STATE[record['power_state']], 'max_mem': long(record['memory_static_max']) >> 10, 'mem': long(record['memory_dynamic_max']) >> 10, -- cgit