"diagnostics" not working for libvirt driver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Christian Berendt |
Bug Description
Looks like "nova diagnostics ID" is not working when using libvirt as driver (with Xen as hypervisor) on nova-compute. I received the following error.
In the code is also an hint that it's maybe not working:
---snip---
# memoryStats might launch an exception if the method
# is not supported by the underlying hypervisor being
# used by libvirt
---snap---
I think there should be place some exception handling...
2012-11-08 20:21:06 AUDIT nova.compute.
2012-11-08 20:21:06 ERROR nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 TRACE nova.openstack.
2012-11-08 20:21:06 ERROR nova.openstack.
Changed in nova: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
exception handling has to be more generic to also fetch the AttributeError. I'll commit a bugfix.