Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2007735

Summary: The foreman-maintain fails to validate backup if some of the databases are external but not all are external
Product: Red Hat Satellite Reporter: Amit Upadhye <aupadhye>
Component: Satellite MaintainAssignee: Amit Upadhye <aupadhye>
Status: CLOSED DUPLICATE QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.9.0CC: apatel, kgaikwad
Target Milestone: Unspecified   
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: Environment:
Last Closed: 2021-09-27 13:04:33 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 Amit Upadhye 2021-09-24 17:44:41 UTC
Description of problem:

The setup can have some of the databases out of candlepin, foreman, pulpcore, mongo managed externally. Though foreman-maintain takes backup successfully it fails to restore it in validation phase,

# foreman-maintain restore /home/backups/bkp-old/ofl-pulp/satellite-backup-2021-09-02-14-42-01/
...
--------------------------------------------------------------------------------
Validate backup has appropriate files:                                [FAIL]

The given directory does not contain the required files or has too many files

All backup directories contain: config_files.tar.gz
An online or remote database backup directory contains: candlepin.dump, foreman.dump, foreman.dump
An offline backup directory contains: pgsql_data.tar.gz
A logical backup directory contains: candlepin.dump, foreman.dump, foreman.dump, pgsql_data.tar.gz
Including pulp_data.tar is optional and will restore pulp data to the filesystem if included.

Only the following files were found: pgsql_data.tar.gz, pulp_data.tar, foreman.dump, candlepin.dump, config_files.tar.gz, metadata.yml

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

all versions of Satellite where some of the dbs are external instead of fully external db setup

How reproducible:

Everytime

Steps to Reproduce:
1.Configure Satellite to use any of the db as external
2.Take backup
3.Try to restore

Actual results:

Restore fails in validation step

Expected results:

Successful restore

Additional info:

By default this fails on 6.9 with external db setup as pulpcore db is always locally installed due to lack of documentation https://bugzilla.redhat.com/show_bug.cgi?id=1999791

Comment 1 Amit Upadhye 2021-09-27 13:04:33 UTC

*** This bug has been marked as a duplicate of bug 2000971 ***