hypervisor show/uptime may give inaccurate results when using multiple cells and a duplicate id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This was pointed out during review:
https:/
If we have multiple cells and compute hosts within them that have the same primary key id, doing a show or uptime call to the os-hypervisors API could result in retrieving the wrong host.
For example, let's say I have two cells, A and B, and a nova-compute service in each one with id=1.
When I want to show details on that one (GET /os-hypervisors/1) I'm only going to get it back from the first cell processed (A).
The API should be smarter about letting the user know when there are duplicates and fail, like we do for showing details about or deleting a service record in the os-services API and the nova.compute.
Eventually when we add a microversion to get/return compute nodes (hypervisors) and services by their unique uuid then we won't need to worry about the duplicate case. That's being worked in this blueprint: https:/
Changed in nova: | |
assignee: | nobody → Matt Riedemann (mriedem) |
assignee: | Matt Riedemann (mriedem) → nobody |
The patch already at https:/ /review. openstack. org/#/q/ status: open+project: openstack/ nova+branch: master+ topic:bp/ service- hyper-uuid- in-api