This repository was archived by the owner on Jul 11, 2025. It is now read-only.
Use CPU info instead of hypervisor list data#153
Open
rodrigogansobarbieri wants to merge 1 commit into
Open
Conversation
606d322 to
f2369db
Compare
Author
|
needs more testing |
The total amount of VCPUs should be obtained from cpu_info instead of VCPUs column of hypervisor list, which does not account for pinned CPUs specified by cpu_dedicated_set nova config option. The cpu_info data may be empty in some circumstances (such as old openstack client or certain virt drivers), so fallback to old method in that case. Reserved CPUs are accounted in the "VCPUs Used" column of hypervisor list output. Closes: canonical#152 Signed-off-by: Rodrigo Barbieri <rodrigo.barbieri@canonical.com>
f2369db to
ec07366
Compare
Author
|
added "signed-off-by" tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The total amount of VCPUs should be obtained from
cpu_info instead of VCPUs column of hypervisor list, which does not account for pinned CPUs specified by cpu_dedicated_set nova config option.
The cpu_info data may be empty in some circumstances (such as old openstack client or certain virt drivers), so fallback to old method in that case.
Reserved CPUs are accounted in the "VCPUs Used" column of hypervisor list output.
Closes: #152