Description of problem: On a oVirt node ansible detects CentOS Stream 8 as following: # ansible localhost -m setup | grep dist "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "4", "ansible_distribution_release": "NA", "ansible_distribution_version": "4.4", This is because data is parsed from /etc/os-release, which contains some oVirt version information. Version-Release number of selected component (if applicable): Happens on ansible 2.9.18 as on 2.9.20 Steps to Reproduce: 1. SSH to a oVirt-Node with CentOS Stream 8 2. ansible localhost -m setup | grep dist 3. See the above results Expected results: Ansible should show CentOS 8 as version. Because now multiple oVirt ansible roles break because of this.
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.
This is due to ansible issue reported 2 years ago here: https://github.com/ansible/ansible/issues/61443 and never handled by ansible community.
Proposing to override CentOS Stream VERSION with version taken from centos-stream-release rpm version (centos-stream-release-8.5-2.el8.noarch.rpm -> 8.5)
A patch was added with a workaround on our side.
A new version is (going to be) available from here: https://jenkins.ovirt.org/job/ovirt-node-ng-image_master_build-artifacts-el8-x86_64/679/
Initial build process failed to build an image. Made a new build which is available from here: https://jenkins.ovirt.org/job/ovirt-node-ng-image_master_build-artifacts-el8-x86_64/682/
From the system with the new image: # ansible -m setup localhost | grep dist "ansible_distribution": "CentOS", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "8", "ansible_distribution_release": "NA", "ansible_distribution_version": "8.4", # cat /etc/os-release NAME="CentOS Stream" VERSION="8" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8.4.2105.0" VARIANT="oVirt Node 4.4.6_rc6" VARIANT_ID="ovirt-node" PRETTY_NAME="oVirt Node 4.4.6" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://www.ovirt.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" PLATFORM_ID="platform:el8"
Adding automated testing to detect further cases: https://gerrit.ovirt.org/#/c/ovirt-node-ng-image/+/114574/
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021. Since the problem described in this bug report should be resolved in oVirt 4.4.6 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.