Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Conversation

zorun
Copy link
Contributor

@zorun zorun commented Sep 23, 2017

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
  • Bugfix Pull Request
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.

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)
@ansibot
Copy link
Contributor

ansibot commented Sep 23, 2017

@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:

  • issue type

Please set the description of this pullrequest with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/PULL_REQUEST_TEMPLATE.md

click here for bot help

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 backport This PR does not target the devel branch. module_utils/facts needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Sep 23, 2017
@alikins alikins added affects_2.3 This issue/PR affects Ansible v2.3 and removed affects_2.5 This issue/PR affects Ansible v2.5 needs_triage Needs a first human triage before being processed. labels Sep 25, 2017
@zorun
Copy link
Contributor Author

zorun commented Oct 1, 2017

Updated PR description to make it clearer why this is not a cherry-pick from e93ecac (#30261)

@ansibot ansibot added bugfix_pull_request stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. and removed needs_info This issue requires further information. Please answer any outstanding questions. needs_template This issue/PR has an incomplete description. Please fill in the proposed template correctly. labels Oct 1, 2017
@ansibot ansibot added the new_contributor This PR is the first contribution by a new community member. label Oct 18, 2017
@ansibot ansibot removed the new_contributor This PR is the first contribution by a new community member. label Nov 3, 2017
@maxamillion
Copy link
Contributor

The change looks good but I don't have a SPARC cpu to verify that it works.

@maxamillion
Copy link
Contributor

@jimi-c bring this in for 2.3 backport?

@ansibot ansibot added the new_contributor This PR is the first contribution by a new community member. label Jan 27, 2018
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 2, 2018
@mattclay
Copy link
Member

Ansible 2.3 has reached end-of-life and is no longer supported.

See release and maintenance status for additional details.

@mattclay mattclay closed this May 22, 2018
@ansible ansible locked and limited conversation to collaborators May 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.3 This issue/PR affects Ansible v2.3 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. module_utils/facts new_contributor This PR is the first contribution by a new community member. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants