Comment 9 for bug 1646255

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

Reviewed: https://review.openstack.org/407961
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5931f555568eb52235dd28bb520f354d884b7ea4
Submitter: Jenkins
Branch: stable/newton

commit 5931f555568eb52235dd28bb520f354d884b7ea4
Author: Matt Riedemann <email address hidden>
Date: Sun Dec 4 15:08:04 2016 -0500

    Handle ComputeHostNotFound when listing hypervisors

    Compute node resources must currently be deleted manually
    in the database, and as such they can reference service
    records which have been deleted via the services delete API.
    Because of this when listing hypervisors (compute nodes), we
    may get a ComputeHostNotFound error when trying to lookup a
    service record for a compute node where the service was
    deleted. This causes the API to fail with a 500 since it's not
    handled.

    This change handles the ComputeHostNotFound when looping over
    compute nodes in the hypervisors index and detail methods and
    simply ignores them.

    Change-Id: I2717274bb1bd370870acbf58c03dc59cee30cc5e
    Closes-Bug: #1646255
    (cherry picked from commit f0d44c5b09f3f3c84038d40b621bb629a1f8110e)