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.
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