Check compute_id existence when nova-compute reports info to placement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Matt Riedemann |
Bug Description
Description
===========
According to https:/
Steps to reproduce
==================
1. Check enviroment and resource_provider table.
# nova service-list | grep 'nova-compute'
| 3d9092b0-
MariaDB [placement]> select uuid,name from resource_providers;
+------
| uuid | name |
+------
| edfff022-
+------
2. Deleting a compute service when nova-compute process is running, check resource_provider table.
# nova service-delete 3d9092b0-
MariaDB [placement]> select * from resource_providers;
Empty set (0.00 sec)
3. Wait a minute, restart nova-compute process.
# systemctl restart devstack@n-cpu
Expected result
===============
nova-compute work properly and report to resource_provider with new uuid.
Actual result
===============
nova-compute raise 409 when creae a new uuid resource_provider, and report 'No resource provider with uuid 52943fd2-
I found if nova-compute running, it will resume the old uuid to resource_providers when this uuid is gone. So
current resource_provider uuid in DB is still 'edfff022-
So I think we should check compute_id existence first, then update resource_
Changed in nova: | |
assignee: | nobody → xulei (605423512-j) |
tags: | added: placement |
Changed in nova: | |
importance: | Undecided → Medium |
Which release are you testing this against? master (stein)?