Bug 2230934
| Summary: | restore of offline incremental backups is broken | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Evgeni Golov <egolov> |
| Component: | Satellite Maintain | Assignee: | Evgeni Golov <egolov> |
| Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.13.3 | CC: | ahumbe, ehelms, hyu, jpathan, mjia, momran, pcreech |
| Target Milestone: | 6.14.0 | Keywords: | PrioBumpGSS, Triaged, UserExperience |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-foreman_maintain-1.3.4 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-11-08 14:20:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Evgeni Golov
2023-08-10 09:37:09 UTC
Created from redmine issue https://projects.theforeman.org/issues/36668 Upstream bug assigned to egolov Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36668 has been resolved. VERIFIED.
@Satellite 6.14.0 Snap13
rubygem-foreman_maintain-1.3.5-1.el8sat.noarch
by the following manual reproducer:
1) Populate some content (RHEL8 repo sync)
2) Create a full offline backup
# satellite-maintain backup offline -y /var/backup
3) Populate some more content (RHEL9 repo sync)
4) Create an incremental backup based on the full backup
# satellite-maintain backup offline -y -i /var/backup/satellite-backup-2023-08-28-10-56-26 /var/backup
5) Restore the full backup
# satellite-maintain restore -y /var/backup/satellite-backup-2023-08-28-10-56-26
6) Try to restore the incremental backup on top of the full backup
# satellite-maintain restore -y /var/backup/satellite-backup-2023-08-28-11-09-43
REPRO:
Extract any existing tar files in backup:
| Extracting pgsql data [OK]
--------------------------------------------------------------------------------
REINDEX databases:
- Reindexing the databases [FAIL]
Failed executing runuser - postgres -c "reindexdb -a", exit status 1:
reindexdb: error: could not connect to database template1: FATAL: could not open file "base/1/46542": No such file or directory
--------------------------------------------------------------------------------
Scenario [Restore backup] failed.
vs.
FIX:
Extract any existing tar files in backup:
- Extracting pgsql data [OK]
--------------------------------------------------------------------------------
Migrate pulpcore db:
| Migrating pulpcore database [OK]
--------------------------------------------------------------------------------
Ensure Candlepin runs all migrations after restoring the database: [OK]
--------------------------------------------------------------------------------
>>> incremental restore has finished successfully as the db reindex step is being run only when OS version changes
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.14 security and bug fix update), 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-2023:6818 *** Bug 2250206 has been marked as a duplicate of this bug. *** *** Bug 2269551 has been marked as a duplicate of this bug. *** |