Bug 2048927

Summary: Satellite 6.10 clone is looking for mongo_data.tar.gz file
Product: Red Hat Satellite Reporter: Susmita Sen <sussen>
Component: Satellite CloneAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: high    
Version: 6.10.0CC: ahumbe, alex.bron, egolov, ehelms, jpasqual, mmccune, pcreech, shtiwari
Target Milestone: 6.11.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: satellite-clone-3.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2059370 (view as bug list) Environment:
Last Closed: 2022-07-05 14:32:43 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:
Attachments:
Description Flags
satellite-clone-2.0.3-3.HOTFIXRHBZ2048927.el7sat.noarch.rpm none

Description Susmita Sen 2022-02-01 08:20:10 UTC
Description of problem:

The customer is trying to clone a satellite 6.10 but it is failing with the below error:-

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Backup is missing files. For an online backup, you need candlepin.dump, foreman.dump,\nand mongo_dump folder. For a standard (offline) backup, you will need mongo_data.tar.gz\nand pgsql_data.tar.gz files.\n"}

msg: Backup is missing files. For an online backup, you need candlepin.dump, foreman.dump,
and mongo_dump folder. For a standard (offline) backup, you will need mongo_data.tar.gz
and pgsql_data.tar.gz files.


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

6.10(It is applicable for all minor versions I believe)

How reproducible:


Steps to Reproduce:
1. Please follow the steps mentioned in this below article.
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.10/html-single/upgrading_and_updating_red_hat_satellite/index#cloning_satellite_server

2. Please refer to this section 2.4.1. Preparing the source server for cloning and preparing the entire content to transfer the file to another RHEL server.

3. Please copy the content from the target satellite to the source satellite.

4. Please refer to section 2.4.2. Cloning to the Target Server and follow other steps.

5. Once the target satellite is registered and subscription attached, repositories are enabled. Then install satellite-clone.

6. while running satellite-clone on this target satellite. You'll see this error.


Actual results:

Satellite 6.10 is looking for mongo_data.tar.gz.

Expected results:

Satellite 6.10 should not look for mongo_data.tar.gz.

Comment 3 Mike McCune 2022-02-09 19:18:13 UTC
*** Satellite 6.10 Hotfix Available ***

1) Download satellite-clone-2.0.3-3.HOTFIXRHBZ2048927.el7sat.noarch.rpm from this bugzilla to your Satellite

2) resume operations

Comment 4 Mike McCune 2022-02-09 19:18:39 UTC
Created attachment 1860200 [details]
satellite-clone-2.0.3-3.HOTFIXRHBZ2048927.el7sat.noarch.rpm

Comment 9 Lukas Pramuk 2022-05-18 12:39:19 UTC
VERIFIED.

@Satellite 6.11.0 Snap20
satellite-clone-3.1.0-1.el8sat.noarch

by the following manual reproducer:

1) Create/Have a 6.11.0 backup

2) Copy the backup to a target machine

3) Configure answer file /etc/satellite-clone/satellite-clone-vars.yml
---
satellite_version: 6.11
backup_dir: /tmp/satellite-backup-2022-05-17-13-03-56
enable_repos: False
---

4) Run satellite-clone

# satellite-clone -y
...

TASK [satellite-clone : Check for online backup] *************************************************
Wednesday 18 May 2022  04:40:10 -0400 (0:00:00.026)       0:00:31.703 ********* 
skipping: [target.example.com]

TASK [satellite-clone : Check for standard backup] ***********************************************
Wednesday 18 May 2022  04:40:10 -0400 (0:00:00.020)       0:00:31.724 ********* 
ok: [target.example.com]

TASK [satellite-clone : Check full backup is present] ********************************************
Wednesday 18 May 2022  04:40:10 -0400 (0:00:00.055)       0:00:31.780 ********* 
skipping: [target.example.com]

TASK [satellite-clone : Check only one backup is present] ****************************************
Wednesday 18 May 2022  04:40:10 -0400 (0:00:00.054)       0:00:31.834 ********* 
skipping: [target.example.com]
...

>>> for 6.11 satellite-clone no longer seeks after mongo backup files

Comment 12 errata-xmlrpc 2022-07-05 14:32:43 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: Satellite 6.11 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:5498