nova-status upgrade check shows warnings when it shouldn't
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann | ||
| Ocata |
In Progress
|
High
|
Matt Riedemann | ||
| Pike |
In Progress
|
High
|
Matt Riedemann | ||
| Queens |
In Progress
|
High
|
Matt Riedemann | ||
| Rocky |
Fix Committed
|
High
|
Matt Riedemann | ||
Bug Description
# nova-status upgrade check
+------
| Upgrade Check Results |
+------
| Check: Cells v2 |
| Result: Success |
| Details: None |
+------
| Check: Placement API |
| Result: Success |
| Details: None |
+------
| Check: Resource Providers |
| Result: Warning |
| Details: There are no compute resource providers in the Placement |
| service but there are 2 compute nodes in the deployment. |
| This means no compute nodes are reporting into the |
| Placement service and need to be upgraded and/or fixed. |
| See |
| https:/
| for more details. |
+------
| Check: Ironic Flavor Migration |
| Result: Success |
| Details: None |
+------
| Check: API Service Version |
| Result: Success |
| Details: None |
+------
| Check: Request Spec Migration |
| Result: Success |
| Details: None |
+------
nova hypervisor-list
+------
| ID | Hypervisor hostname | State | Status |
+------
| UUID1 | node03.NOPE | up | enabled |
| UUID2 | node02.NOPE | up | enabled |
+------
openstack resource provider list
+------
| uuid | name | generation |
+------
| UUID1 | node02.NOPE | 76 |
| UUID2 | node03.NOPE | 34 |
+------
| tags: | added: placement |

I suspect this is a similar regression as bug 1790701 in that the count for resource providers is using the placement DB API context manager from https:/ /review. openstack. org/#/c/ 541435/ but the placement DB API context manager is not properly configured for the API DB, so it's likely just hitting the cell0 DB where there are no resource providers.