ResourceProviderUpdateFailed when total available resource is 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
Ussuri |
Fix Released
|
Medium
|
melanie witt | ||
Victoria |
Fix Released
|
Medium
|
Lars Erik Pedersen |
Bug Description
This got reported downstream [1] where if a compute node has no available (zero) inventory for a resource class, the libvirt driver attempts to PUT the 'total' inventory of the resource as 0 and the placement API does not allow it. To represent a 'total' of 0 in placement for a resource, one must omit that resource from the PUT request instead of trying to set it to zero.
The following traceback is emitted when an attempt to update 'total' inventory to 0 occurs:
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
2020-10-20 11:32:45.484 7 ERROR nova.compute.
Fix proposed to branch: master /review. opendev. org/759348
Review: https:/