Bug 2120992

Summary: Running satellite-clone on SAT6.12 fails beacuse it's not supported
Product: Red Hat Satellite Reporter: Ladislav Vasina <lvasina>
Component: Satellite CloneAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Ladislav Vasina <lvasina>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: egolov
Target Milestone: 6.12.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: satellite-clone-3.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:35:34 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:
Bug Depends On:    
Bug Blocks: 2100578, 2103099    

Description Ladislav Vasina 2022-08-24 09:18:53 UTC
Description of problem:
While running satellite-clone on sat6.12 fails with this message.

######################################################################
TASK [satellite-clone : Check for satellite version in metadata file] ************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Satellite version is not supported or found. Only Satellite 6.6, 6.7, 6.8, 6.9, 6.10, 6.11 is supported."}

PLAY RECAP ***********************************************************************************************
localhost                  : ok=13   changed=1    unreachable=0    failed=1    skipped=4    rescued=0    ignored=1   
######################################################################

In my opinion this is happening because there is no 6.12 version added in SUPPORTED_VERSIONS here: https://github.com/RedHatSatellite/satellite-clone/blob/d1938475580a021f1799e5ee638c466a053ede19/library/parse_backup_metadata.py#L21

How reproducible:
Everytime

Steps to Reproduce:
1. Have 6.12 backup on rhel and try to run satellite-clone
2. Satellite-clone will fail


Actual results:
Satellite-clone fails

Expected results:
Satellite-clone should pass

Additional info:

Comment 1 Ladislav Vasina 2022-08-26 06:22:42 UTC
VERIFIED.
Works on satellite6.12 snap8.
My test that I have for satellite-clone passed.
################################################################################################################################
*
* satellite-clone output here
*
TASK [satellite-clone : Run foreman-rake katello:reimport for Satellite - Note that this might take hours] ***
    skipping: [localhost]
    
    PLAY RECAP *********************************************************************
    localhost                  : ok=70   changed=26   unreachable=0    failed=0    skipped=30   rescued=0    ignored=1   
    
    
xxxxxxxxxxxxxxx.redhat.com executing command: satellite-maintain health check  
xxxxxxxxxxxxxxx.sat.rdu2.redhat.com command result:
    Running ForemanMaintain::Scenario::FilteredScenario
    ================================================================================
    Clean old Kernel and initramfs files from tftp-boot:                  [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
    Check number of fact names in database:                               [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
    Check whether all services are running:                               [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
    Check whether all services are running using the ping call:           [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
    Check for paused tasks:                                               [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
    Check whether system is self-registered or not:                       [32m [1m[OK] [0m
    --------------------------------------------------------------------------------
################################################################################################################################

Comment 5 errata-xmlrpc 2022-11-16 13:35:34 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.12 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-2022:8506