Bug 2109697 - Migrate openshift-ansible to ansible-core
Summary: Migrate openshift-ansible to ansible-core
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.12.0
Assignee: OCP Installer
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks: 2117370
TreeView+ depends on / blocked
 
Reported: 2022-07-21 20:45 UTC by Yaakov Selkowitz
Modified: 2023-01-17 19:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:53:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 12397 0 None Merged Bug 2109697: Port to ansible-core 2022-07-21 20:46:23 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:53:25 UTC

Description Yaakov Selkowitz 2022-07-21 20:45:35 UTC
Ansible Engine 2.9 remains supported for layered product consumption until September 2023, which is prior to the end of support for OCP 4.11.  As such, openshift-ansible needs to migrate to RHEL AppStream ansible-core in 4.11+.

Comment 2 Gaoyun Pei 2022-07-25 04:07:40 UTC
On a clean RHEL-8 machine, after enabling 3.8 stream of python38 mudule, openshift-ansible rpm package could be installed. 


[root@gpei-test-ansible-core ~]# yum module list python38
aos-4.11-el8                                                          49 kB/s | 3.0 kB     00:00    
rhel-8-for-x86_64-appstream-rpms/8
Name             Stream         Profiles              Summary                                        
python38         3.8            build, common         Python programming language, version 3.8       

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[root@gpei-test-ansible-core ~]# yum module enable python38:3.8
aos-4.11-el8                                                          55 kB/s | 3.0 kB     00:00    
Dependencies resolved.
=====================================================================================================
 Package                Architecture          Version                   Repository              Size
=====================================================================================================
Enabling module streams:
 python38                                     3.8                                                   

Transaction Summary
=====================================================================================================

Is this ok [y/N]: y
Complete!

[root@gpei-test-ansible-core ~]# yum module list python38
aos-4.11-el8                                                          53 kB/s | 3.0 kB     00:00    
rhel-8-for-x86_64-appstream-rpms/8
Name             Stream          Profiles             Summary                                        
python38         3.8 [e]         build, common        Python programming language, version 3.8       

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[root@gpei-test-ansible-core ~]# yum install openshift-ansible
aos-4.11-el8                                                          61 kB/s | 3.0 kB     00:00    
Dependencies resolved.
=====================================================================================================
 Package        Arch   Version                                Repository                        Size
=====================================================================================================
Installing:
 openshift-ansible
                noarch 4.12.0-202207221446.p0.g3a6267d.assembly.stream.el8
                                                              aos-4.11-el8                      58 k
Installing dependencies:
 ansible-core   x86_64 2.12.2-4.el8_6                         rhel-8-for-x86_64-appstream-rpms 2.4 M
 bash-completion
                noarch 1:2.7-5.el8                            rhel-8-for-x86_64-baseos-rpms    274 k
 openshift-clients
                x86_64 4.12.0-202207201547.p0.g3cdf3c2.assembly.stream.el8
                                                              aos-4.11-el8                      41 M
 python38       x86_64 3.8.12-1.module+el8.6.0+12642+c3710b74 rhel-8-for-x86_64-appstream-rpms  80 k
 python38-asn1crypto
                noarch 1.2.0-3.module+el8.4.0+8888+89bc7e79   rhel-8-for-x86_64-appstream-rpms 184 k
 python38-babel noarch 2.7.0-11.module+el8.5.0+11015+9c1c7c42 rhel-8-for-x86_64-appstream-rpms 5.9 M
 python38-cffi  x86_64 1.13.2-3.module+el8.4.0+8888+89bc7e79  rhel-8-for-x86_64-appstream-rpms 248 k
 python38-cryptography
                x86_64 2.8-3.module+el8.4.0+8888+89bc7e79     rhel-8-for-x86_64-appstream-rpms 553 k
 python38-idna  noarch 2.8-6.module+el8.4.0+8888+89bc7e79     rhel-8-for-x86_64-appstream-rpms  87 k
 python38-jinja2
                noarch 2.10.3-5.module+el8.5.0+10542+ba057329 rhel-8-for-x86_64-appstream-rpms 263 k
 python38-libs  x86_64 3.8.12-1.module+el8.6.0+12642+c3710b74 rhel-8-for-x86_64-appstream-rpms 8.3 M
 python38-markupsafe
                x86_64 1.1.1-6.module+el8.4.0+8888+89bc7e79   rhel-8-for-x86_64-appstream-rpms  36 k
 python38-pip-wheel
                noarch 19.3.1-5.module+el8.6.0+13002+70cfc74a rhel-8-for-x86_64-appstream-rpms 1.0 M
 python38-ply   noarch 3.11-10.module+el8.4.0+9579+e9717e18   rhel-8-for-x86_64-appstream-rpms 112 k
 python38-pycparser
                noarch 2.19-3.module+el8.4.0+8888+89bc7e79    rhel-8-for-x86_64-appstream-rpms 128 k
 python38-pytz  noarch 2019.3-3.module+el8.4.0+8888+89bc7e79  rhel-8-for-x86_64-appstream-rpms  55 k
 python38-pyyaml
                x86_64 5.4.1-1.module+el8.5.0+10721+14d8e0d5  rhel-8-for-x86_64-appstream-rpms 212 k
 python38-resolvelib
                noarch 0.5.4-5.el8                            rhel-8-for-x86_64-appstream-rpms  30 k
 python38-setuptools
                noarch 41.6.0-5.module+el8.5.0+12205+a865257a rhel-8-for-x86_64-appstream-rpms 668 k
 python38-setuptools-wheel
                noarch 41.6.0-5.module+el8.5.0+12205+a865257a rhel-8-for-x86_64-appstream-rpms 304 k
 python38-six   noarch 1.12.0-10.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms  39 k
 sshpass        x86_64 1.09-4.el8                             rhel-8-for-x86_64-appstream-rpms  30 k
Installing weak dependencies:
 python38-pip   noarch 19.3.1-5.module+el8.6.0+13002+70cfc74a rhel-8-for-x86_64-appstream-rpms 1.8 M

Transaction Summary
=====================================================================================================
Install  24 Packages

Total download size: 63 M
Installed size: 205 M
Is this ok [y/N]: y
...


Installed:
  ansible-core-2.12.2-4.el8_6.x86_64                                                                 
  bash-completion-1:2.7-5.el8.noarch                                                                 
  openshift-ansible-4.12.0-202207221446.p0.g3a6267d.assembly.stream.el8.noarch                       
  openshift-clients-4.12.0-202207201547.p0.g3cdf3c2.assembly.stream.el8.x86_64                       
  python38-3.8.12-1.module+el8.6.0+12642+c3710b74.x86_64                                             
  python38-asn1crypto-1.2.0-3.module+el8.4.0+8888+89bc7e79.noarch                                    
  python38-babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.noarch                                       
  python38-cffi-1.13.2-3.module+el8.4.0+8888+89bc7e79.x86_64                                         
  python38-cryptography-2.8-3.module+el8.4.0+8888+89bc7e79.x86_64                                    
  python38-idna-2.8-6.module+el8.4.0+8888+89bc7e79.noarch                                            
  python38-jinja2-2.10.3-5.module+el8.5.0+10542+ba057329.noarch                                      
  python38-libs-3.8.12-1.module+el8.6.0+12642+c3710b74.x86_64                                        
  python38-markupsafe-1.1.1-6.module+el8.4.0+8888+89bc7e79.x86_64                                    
  python38-pip-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch                                         
  python38-pip-wheel-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch                                   
  python38-ply-3.11-10.module+el8.4.0+9579+e9717e18.noarch                                           
  python38-pycparser-2.19-3.module+el8.4.0+8888+89bc7e79.noarch                                      
  python38-pytz-2019.3-3.module+el8.4.0+8888+89bc7e79.noarch                                         
  python38-pyyaml-5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64                                       
  python38-resolvelib-0.5.4-5.el8.noarch                                                             
  python38-setuptools-41.6.0-5.module+el8.5.0+12205+a865257a.noarch                                  
  python38-setuptools-wheel-41.6.0-5.module+el8.5.0+12205+a865257a.noarch                            
  python38-six-1.12.0-10.module+el8.4.0+8888+89bc7e79.noarch                                         
  sshpass-1.09-4.el8.x86_64                                                                          

Complete!



[root@gpei-test-ansible-core ~]# rpm -qa |grep ansible
openshift-ansible-4.12.0-202207221446.p0.g3a6267d.assembly.stream.el8.noarch
ansible-core-2.12.2-4.el8_6.x86_64

Run RHEL scale-up on this machine using openshift-ansible/playbooks/scaleup.yml and got passed, no regression issue.

Comment 5 errata-xmlrpc 2023-01-17 19:53:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:7399


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