placement api-ref unclear if capacity is meant to be total or current
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Bence Romsics |
Bug Description
While exploring the newer microversions (here 1.4) of the placement API I found this part of the API reference unclear to me (https:/
"A comma-separated list of strings indicating an amount of resource of a specified class that a provider must have the capacity to serve:"
Based on the reference I cannot tell if the capacity is meant to be total or current (ie. total - current allocations).
Running a few queries it seems to me the actual behavior is to filter on total capacity. If that was the intended behavior then this report is just a tiny documentation bug I guess.
https:/
Changed in nova: | |
status: | In Progress → Fix Committed |
To be clear, the resource capacity is for the existing situation. Eg. say I want to have 2 vCPUs in my flavor, I'm asking Placement which Resource Provider is having 2 left vCPUs, ie. ( inventory * allocation_ratio - current allocations)