OpenStack in a snap!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

diff --git a/nova/virt/libvirt/ b/nova/virt/libvirt/
index 65ae0ff2f1..b75adf9269 100644
--- a/lib/python2.7/site-packages/nova/virt/libvirt/
+++ b/lib/python2.7/site-packages/nova/virt/libvirt/
@@ -503,21 +503,25 @@ class Host(object):
libvirt_version = conn.getLibVersion()
if op(libvirt_version,
+ LOG.error("version check false because lv_ver too low")
return False
if hv_ver is not None:
hypervisor_version = conn.getVersion()
if op(hypervisor_version,
+ LOG.error("version check false because hv_ver too low")
return False
if hv_type is not None:
hypervisor_type = conn.getType()
if hypervisor_type != hv_type:
+ LOG.error("version check false because hv_type too low")
return False
return True
- except Exception:
+ except Exception as e:
+ LOG.exception("version check false because exception {}".format(e))
return False
def has_min_version(self, lv_ver=None, hv_ver=None, hv_type=None):