Command nova-status upgrade check always return warning when checking resource providers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
Version: master
Cluster model: 1 controller and 1 compute
I used nova api database for placement service.
When I run command: "nova-status upgrade check",
the output always warning in check resource providers.
Expected result
===============
+------
| Check: Resource Providers |
| Result: Success |
| Details: None |
+------
Actual result
=============
+------
| Check: Resource Providers |
| Result: Warning |
| Details: There are no compute resource providers in the Placement |
| service but there are 1 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. |
+------
Logs & Configs
==============
I checked in nova-compute.log that compute node was reported to placement
service with log:
"INFO nova.compute.
Compute node record created for compute1:compute1 with uuid ..."
The resource_providers table in nova_api database:
MariaDB [nova_api]> select * from resource_providers;
+------
| created_at | updated_at | id | uuid | name | generation | can_host | root_provider_id | parent_provider_id |
+------
| 2018-08-16 07:20:33 | 2018-08-27 03:12:37 | 1 | a5ac6e98-
+------
Is the check running before or after the nova-compute service is showing up in the "nova service-list" output? You might be racing depending on when you run the upgrade check.
Is the nova.conf being used to run the nova-status upgrade check CLI configured with the [api_database] /connection set? It must be if it's pulling compute nodes out of the cell database.
Which release is this tested against?