[ocata] Can't add a resource_provider in placement-api [closed]

asked 2017-08-17 09:49:36 -0500

On a new install of ocata, I can't get new instances to schedule

I'm getting a bunch 404 and 409 on the placement-api :

"GET /resource_providers/3c476ac4-770f-4e12-b2cb-d3aca5eed4c3" status: 404 len: 125 microversion: 1.0

"POST /resource_providers" status: 409 len: 644 microversion: 1.0

"GET /resource_providers/3c476ac4-770f-4e12-b2cb-d3aca5eed4c3" status: 404 len: 125 microversion: 1.0

"GET /resource_providers/3c476ac4-770f-4e12-b2cb-d3aca5eed4c3/allocations" status: 404 len: 193 microversion: 1.0

On the compute side I'm getting :

Another thread already created a resource provider with the UUID 3c476ac4-770f-4e12-b2cb-d3aca5eed4c3. Grabbing that record from the placement API.

Unable to refresh my resource provider record

Final resource view: name=example.host.logilab.fr phys_ram=32159MB used_ram=512MB phys_disk=426GB used_disk=0GB total_vcpus=16 used_vcpus=0 pci_stats=[]

Any tips on how to debug this ?

Update : I solved this one, the resource had a different UUID in the nova_api resource_providers table (reinstall of the compute node), so I did :

mysql nova_api update resource_providers set uuid="3c476ac4-770f-4e12-b2cb-d3aca5eed4c3" WHERE name='example.host.ocata.logilab.fr'

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Bernd Bausch
close date 2017-08-18 17:48:05.092121