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)
Reviewed: https:/ /review. openstack. org/407961 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5931f555568 eb52235dd28bb52 0f354d884b7ea4
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 5931f555568eb52 235dd28bb520f35 4d884b7ea4
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: I2717274bb1bd37 0870acbf58c03dc 59cee30cc5e 84038d40b621bb6 29a1f8110e)
Closes-Bug: #1646255
(cherry picked from commit f0d44c5b09f3f3c