commit 5fc157e0f5245eb79be90cbc8ed545c396fd38af
Author: Chuck Short <email address hidden>
Date: Tue Mar 25 10:08:28 2014 -0400
libvirt: Handle unsupported host capabilities
Neither libvirt-xen nor libvirt-lxc support
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES so check for the proper error
code that is returned by libvirt.
The existing code was performing this check improperly by trying to
catch an enum value; instead, we need to catch the `libvirtError`
exception and then check its return code.
Co-Authored-By: Rick Harris <email address hidden>
Co-Authored-By: Andrew Melton <email address hidden>
Closes-Bug: 1297962
Change-Id: Ie8bf5c9d1f2a27c387f8b2f54a9bb729fa2f0985
Reviewed: https:/ /review. openstack. org/82831 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5fc157e0f52 45eb79be90cbc8e d545c396fd38af
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5fc157e0f5245eb 79be90cbc8ed545 c396fd38af
Author: Chuck Short <email address hidden>
Date: Tue Mar 25 10:08:28 2014 -0400
libvirt: Handle unsupported host capabilities
Neither libvirt-xen nor libvirt-lxc support CONNECT_ BASELINE_ CPU_EXPAND_ FEATURES so check for the proper error
VIR_
code that is returned by libvirt.
The existing code was performing this check improperly by trying to
catch an enum value; instead, we need to catch the `libvirtError`
exception and then check its return code.
Co-Authored-By: Rick Harris <email address hidden> c387f8b2f54a9bb 729fa2f0985
Co-Authored-By: Andrew Melton <email address hidden>
Closes-Bug: 1297962
Change-Id: Ie8bf5c9d1f2a27