summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2010-12-23 07:05:45 +0000
committerTrey Morris <trey.morris@rackspace.com>2010-12-23 07:05:45 +0000
commit45c75b0c8ecea6952d68cc28d2925c6a42a799de (patch)
tree8205327b6f43f4bf401efad3965845a06e15c41a
parent62286399b69218418020baaf524292c1677d27d3 (diff)
downloadnova-45c75b0c8ecea6952d68cc28d2925c6a42a799de.tar.gz
nova-45c75b0c8ecea6952d68cc28d2925c6a42a799de.tar.xz
nova-45c75b0c8ecea6952d68cc28d2925c6a42a799de.zip
added power state logging to nova.virt.xenapi.vm_utils
-rw-r--r--nova/virt/xenapi/vm_utils.py4
1 files changed, 4 insertions, 0 deletions
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,