commit 8141e7aecdccaa55d92b8174633d0cfc97845412
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
(cherry picked from commit 5fc157e0f5245eb79be90cbc8ed545c396fd38af)
Reviewed: https:/ /review. openstack. org/94409 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8141e7aecdc caa55d92b817463 3d0cfc97845412
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 8141e7aecdccaa5 5d92b8174633d0c fc97845412
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 79be90cbc8ed545 c396fd38af)
Co-Authored-By: Andrew Melton <email address hidden>
Closes-Bug: 1297962
Change-Id: Ie8bf5c9d1f2a27
(cherry picked from commit 5fc157e0f5245eb