You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On S390 systems, gather_facts return "NA" due to not have /proc/sys entries and dmidecode not being available.
I did not have permission to do a pull request but below is a snippet that might get this in the right direction, I am not a python person so this will likely need some refinement.
else:
# Open the /proc/cpuinfo file
with open('/proc/cpuinfo', 'r') as file:
# Read the content of the file
content = file.readlines()
# Search for "S390" in each line
for line in content:
if "S390" in line:
found_s390 = True
break
# Register "IBM/S390" as 'system_vendor' if found
if found_s390:
system_vendor = "IBM/S390"
AAP-21347
Issue Type
Bug Report
Component Name
setup module
Ansible Version
$ ansible --versionall
Configuration
default configuration
OS / Environment
IBM/S390, Any version of RHEL
Steps to Reproduce
just logging into a S390 system you can see dmidecode is not availalbe and /proc/sys/ entries are not there
Expected Results
to gather facts from other files that are present on S390 systems.
Actual Results
the facts return "NA"
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
To clarify Manufacturer would be used as system_vendor, Type for product_version, Sequence Code as product_serial with leading 0s stripped. This doesn't cover product_name however, which is usually an friendly name for product_version, so maybe we just duplicate.
Summary
On S390 systems, gather_facts return "NA" due to not have /proc/sys entries and dmidecode not being available.
I did not have permission to do a pull request but below is a snippet that might get this in the right direction, I am not a python person so this will likely need some refinement.
linux.py.txt
Add the following after line 407:
AAP-21347
Issue Type
Bug Report
Component Name
setup module
Ansible Version
Configuration
default configuration
OS / Environment
IBM/S390, Any version of RHEL
Steps to Reproduce
just logging into a S390 system you can see dmidecode is not availalbe and /proc/sys/ entries are not there
Expected Results
to gather facts from other files that are present on S390 systems.
Actual Results
the facts return "NA"
Code of Conduct
The text was updated successfully, but these errors were encountered: