get_vcpu_total does not account for cpu_allocation_ratio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Song Li |
Bug Description
When retrieving the vCPU total via the Nova API the returned value does not account for cpu_allocation_
For example:
If compute node has 8 cores, and overcommit is 16, that means 128 vCPUs are available from the schedulers point of view. The API call will however continue to return 8.
Obviously it's probably not possible to change the vCPU total behaviour in the current field, but it would be nice for external consumers to be able to determine (possibly via an additional field or extension) how many vCPUs the host is actually exposing for scheduling.
tags: | added: compute |
Changed in nova: | |
assignee: | nobody → Song Li (lisong-cruise) |
status: | New → In Progress |
Changed in nova: | |
assignee: | Song Li (lisong-cruise) → nobody |
assignee: | nobody → Song Li (lisong-cruise) |
Hi, are you using the command like 'nova hypervisor-show 1' and get the vcpus? ratio.
I also got the vcpus number without accounting cpu_allocation_
Could you tell me which Nova API you used? Thanks