Bug 2142514

Summary: Satellite-clone not working if ansible-core 2.13 is installed
Product: Red Hat Satellite Reporter: Ladislav Vasina <lvasina>
Component: Satellite CloneAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Griffin Sullivan <gsulliva>
Severity: high Docs Contact:
Priority: high    
Version: 6.12.0CC: ahumbe, dhjoshi, egolov, ehelms, gsulliva, lvrtelov, pcreech
Target Milestone: 6.13.0Keywords: AutomationBlocker, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2150108 2170874 (view as bug list) Environment:
Last Closed: 2023-05-03 13:22:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ladislav Vasina 2022-11-14 09:58:51 UTC
Description of problem:
I have found out that satellite-clone is failing if ansible-core 2.13 is installed on target RHEL.
This is happening because ansible-core 2.13 needs python 3.9 but satellite-clone is being run with python 3.8 which doesn't have the ansible python package installed.

Version-Release number of selected component (if applicable):
RHEL 8.6
ansible-core-2.13.3-1.el8.x86_64
satellite-clone-3.2.0-1.el8sat.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Install and try running satellite-clone


Actual results:
# satellite-clone -y
Traceback (most recent call last):
  File "/usr/sbin/satellite-clone", line 98, in <module>
    main()
  File "/usr/sbin/satellite-clone", line 82, in main
    from ansible.cli.playbook import PlaybookCLI


ModuleNotFoundError: No module named 'ansible'

Expected results:
Satellite clone shouldn't fail.

Additional info:
See Comment1

Comment 3 Evgeni Golov 2022-12-01 07:49:16 UTC
To workaround the issue, you need to replace the Python version satellite-clone is being executed with:

sed -i 's/python3.8/python3.9/' /usr/sbin/satellite-clone

Comment 4 Griffin Sullivan 2023-01-23 17:05:48 UTC
Verified on Satellite 6.13 snap 7

Satellite clone is running successfully with ansible-core 2.13

Steps to reproduce:

1) Get a satellite and a base rhel

2) Run the clone to target rhel VM

Results:

satellite-clone -y runs successfully without any issues.

Comment 7 errata-xmlrpc 2023-05-03 13:22:42 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 (Important: Satellite 6.13 Release), 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-2023:2097