Bug 1968728 - BackPort Ansible to Include Support for Rocky Linux ansible_os_family change
Summary: BackPort Ansible to Include Support for Rocky Linux ansible_os_family change
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ansible
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-07 21:09 UTC by Gabriel Graves
Modified: 2021-08-13 00:30 UTC (History)
6 users (show)

Fixed In Version: ansible-2.9.23-1.fc35 ansible-2.9.24-2.el7
Clone Of:
Environment:
Last Closed: 2021-08-13 00:30:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Gabriel Graves 2021-06-07 21:09:44 UTC
Description of problem:

The current version of Ansible in EPEL is old enough to not include support for categorizing Rocky Linux on ansible_os_family as RedHat. As discussed on https://github.com/ansible/ansible/issues/74565 - we are looking to see if this can be done downstream inside of EPEL since the deadline was missed to have it done upstream. We would like the change to be done in 2.9.


Version-Release number of selected component (if applicable):
2.9

How reproducible:
If you currently install Ansible from EPEL, Ansible will see a Rocky Linux server (https://rockylinux.org/) as Rocky for the ansible_os_family instead of RedHat.

Steps to Reproduce:
1. Ensure EPEL repository is enabled.
2. Install Ansible from EPEL repository.
3. Use the setup module against a Rocky Linux server and see the "ansible_os_family" value.

Actual results:
ansible_os_family shows "Rocky".

Expected results:
ansible_os_family should show "RedHat"

Comment 1 Kevin Fenzi 2021-06-08 14:17:07 UTC
Sure. Can try and get this added.

Comment 2 Kevin Fenzi 2021-06-19 17:32:31 UTC
Can you all test this scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=70442850

I want to push this out with the next 2.9.x upstream release (which I think is in a week or so).

Comment 3 Gabriel Graves 2021-06-19 18:33:29 UTC
I can confirm that this works! "ansible_os_family": "RedHat"

Comment 4 Kevin Fenzi 2021-06-19 19:14:14 UTC
Looks like 2.9.23 is planned for monday (day after tomorrow), so I will push this what that update. :)

Comment 5 Gabriel Graves 2021-06-19 19:25:13 UTC
Thank you very much!

Comment 6 Fedora Update System 2021-06-22 23:09:02 UTC
FEDORA-2021-93c2b59729 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-93c2b59729

Comment 7 Fedora Update System 2021-06-22 23:10:30 UTC
FEDORA-2021-93c2b59729 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 adminsys 2021-07-28 13:32:22 UTC
Hello, 

We still have this issue 

Here is the info about my server : 
root@serverrocky1:/# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.4 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.4 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8.4:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"

---

I'm launching ansible from a Centos 7 server with ansible 2.9.23-1.el7

I still have this output
"ansible_os_family": "Rocky"             

I've narrowed the issue to this file /usr/lib/python2.7/site-packages/ansible/module_utils/facts/system/distribution.py       
In this Array, there is not Rocky.

    OS_FAMILY_MAP = {'RedHat': ['RedHat', 'Fedora', 'CentOS', 'Scientific', 'SLC',
                                'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS',
                                'OEL', 'Amazon', 'Virtuozzo', 'XenServer', 'Alibaba',
                                'AlmaLinux'],

Comment 9 Kevin Fenzi (rh) 2021-07-28 17:14:27 UTC
Can you provide output of: 

rpm -qi ansible 

Perhaps you installed from ansible.com ?

Comment 10 adminsys 2021-07-28 17:46:13 UTC
Hello,


I installed from epel repository

 rpm -qi ansible 
Name        : ansible
Version     : 2.9.23
Release     : 1.el7
Architecture: noarch
Install Date: Wed 28 Jul 2021 05:45:44 PM GMT
Group       : Unspecified
Size        : 108146083
License     : GPLv3+
Signature   : RSA/SHA256, Wed 23 Jun 2021 12:26:04 AM GMT, Key ID 6a2faea2352c64e5
Source RPM  : ansible-2.9.23-1.el7.src.rpm
Build Date  : Wed 23 Jun 2021 12:18:38 AM GMT
Build Host  : buildvm-ppc64le-30.iad2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://ansible.com
Bug URL     : https://bugz.fedoraproject.org/ansible
Summary     : SSH-based configuration management, deployment, and task execution system
Description :
Ansible is a radically simple model-driven configuration management,
multi-node deployment, and remote task execution system. Ansible works
over SSH and does not require any software or daemons to be installed
on remote nodes. Extension modules can be written in any language and
are transferred to managed machines automatically.

Comment 11 Kevin Fenzi 2021-07-28 17:55:00 UTC
I see the issue. ;( Look for a new update in a min here.

Comment 12 Fedora Update System 2021-07-28 18:38:02 UTC
FEDORA-EPEL-2021-85cfa9cb1c has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-85cfa9cb1c

Comment 13 adminsys 2021-07-28 20:31:42 UTC
Okay, cool !
The patch is working.
Do you know generally how long for it to merge in epel-release centos 7 ?

Comment 14 Fedora Update System 2021-07-29 01:51:20 UTC
FEDORA-EPEL-2021-85cfa9cb1c has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-85cfa9cb1c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 adminsys 2021-07-29 10:42:28 UTC
Thanks !

I can't create a fedora account.
I get this
"Something went wrong while creating your account, please try again later."

Comment 16 Kevin Fenzi 2021-07-30 17:52:23 UTC
This is https://pagure.io/fedora-infrastructure/issue/10126 again it seems. We are working to fix it.

Comment 17 Fedora Update System 2021-08-13 00:30:42 UTC
FEDORA-EPEL-2021-85cfa9cb1c has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.