facts - return the correct number of VCPUs for systems with only one core#74693
Open
samdoran wants to merge 14 commits intoansible:develfrom
Open
facts - return the correct number of VCPUs for systems with only one core#74693samdoran wants to merge 14 commits intoansible:develfrom
samdoran wants to merge 14 commits intoansible:develfrom
Conversation
Contributor
Author
|
/rebuild |
Contributor
|
@samdoran Can you rebase this one too? |
This makes it much easier to run specific test fixtures.
Created a dictitonary of sockets used to track and later derive all CPU based facts. This makes the final reporting much simpler since all the data about CPUs is contained in one dict and the dict is a map of the socket to CPU relationships.
I believe these values were incorrect before since they were calculated rather than taken from the /proc/cpuinfo. I need to double check and make sure these new values are correct or if there is a bug in my code.
Flatter data structure that's a bit easier to work with.
Contributor
Author
|
I'm only here for the rebases. 🤪 |
324401b to
58b073c
Compare
Member
|
@samdoran Could you please rebase this? Thanks in advance. |
Contributor
Author
|
I'm working on it. Might take me a little while though since there are some conflicts to work through. |
Member
Sure, let me know if you need help. Thanks, |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
SUMMARY
If the
physical idandcore idare all the same, the CPU information is incorrectly calculated. Instead, count the number of CPU IDs to get an accurate count.ISSUE TYPE
COMPONENT NAME
lib/ansible/module_utils/facts/hardware/linux.py