-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
facts: fix SPARC cpu count on linux #30792
Conversation
On sparc64, /proc/cpuinfo has no usual 'model name', 'Processor', 'vendor_id', 'Vendor', as a result "ansible_processor_vcpus" is always 1. Add check element "ncpus active" to fix the issue. Backport from e93ecac (ansible#30261)
@zorun Greetings! Thanks for taking the time to open this pullrequest. In order for the community to handle your pullrequest effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this pullrequest with this template: |
The change looks good but I don't have a SPARC cpu to verify that it works. |
@jimi-c bring this in for 2.3 backport? |
Ansible 2.3 has reached end-of-life and is no longer supported. See release and maintenance status for additional details. |
SUMMARY
On sparc64, /proc/cpuinfo has no usual 'model name', 'Processor', 'vendor_id', 'Vendor',
as a result "ansible_processor_vcpus" is always 1.
Add check element "ncpus active" to fix the issue.
Backport from e93ecac (#30261)
ISSUE TYPE
COMPONENT NAME
facts
ADDITIONAL INFORMATION
This is not a straight cherry-pick from e93ecac (#30261) because some code has been moved around. But the actual change is exactly the same.