Comment 6 for bug 1297962

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/82831
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5fc157e0f5245eb79be90cbc8ed545c396fd38af
Submitter: Jenkins
Branch: master

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