Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2048927 - Satellite 6.10 clone is looking for mongo_data.tar.gz file
Summary: Satellite 6.10 clone is looking for mongo_data.tar.gz file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Clone
Version: 6.10.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-01 08:20 UTC by Susmita Sen
Modified: 2022-07-05 14:33 UTC (History)
8 users (show)

Fixed In Version: satellite-clone-3.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2059370 (view as bug list)
Environment:
Last Closed: 2022-07-05 14:32:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
satellite-clone-2.0.3-3.HOTFIXRHBZ2048927.el7sat.noarch.rpm (40.60 KB, application/x-rpm)
2022-02-09 19:18 UTC, Mike McCune
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github RedHatSatellite satellite-clone pull 397 0 None Merged partial Satellite 6.10 support 2022-02-03 10:52:27 UTC
Red Hat Knowledge Base (Solution) 6694941 0 None None None 2022-04-11 12:24:29 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:33:00 UTC

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


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