Bug 1482166 - katello-backup error message displays incorrect file
Summary: katello-backup error message displays incorrect file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Backup & Restore
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On: 1488590
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-16 15:34 UTC by John Mitsch
Modified: 2019-09-26 16:13 UTC (History)
5 users (show)

Fixed In Version: katello-3.4.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 17:09:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20633 0 None None None 2017-08-17 14:47:46 UTC

Description John Mitsch 2017-08-16 15:34:12 UTC
Description of problem:
When config_files.tar.gz is missing, katello-restore error message mentions config_file.tar.gz. (singular name, not plural)

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

How reproducible:
Always

Steps to Reproduce:
1.Create backup
2.rm config_files.tar.gz (or rename)
3.run katello-restore

Actual results:
error message mentions config_file.tar.gz

Expected results:
error message mentions config_files.tar.gz

Additional info:

Comment 2 John Mitsch 2017-08-17 14:47:45 UTC
Created redmine issue http://projects.theforeman.org/issues/20633 from this bug

Comment 3 Satellite Program 2017-08-17 16:17:08 UTC
Upstream bug assigned to jomitsch

Comment 4 Satellite Program 2017-08-17 16:17:11 UTC
Upstream bug assigned to jomitsch

Comment 5 Satellite Program 2017-08-17 18:17:10 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20633 has been resolved.

Comment 7 Chris Roberts 2017-09-06 16:20:05 UTC
Unable to run restore command:

[root@rhel7 ~]# katello-restore /tmp/backup/katello-backup-20170906161439/
WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Are you sure(Y/N)? y 
Starting restore from /tmp/backup/katello-backup-20170906161439/: 2017-09-06 16:19:12 +0000
Setting file security
Done.
Resetting Katello
yes | foreman-installer -v --reset --scenario katello
Failed 'yes | foreman-installer -v --reset --scenario katello'

Comment 8 John Mitsch 2017-09-06 16:53:49 UTC
This is blocked being verified by https://bugzilla.redhat.com/show_bug.cgi?id=1488590

Once that is resolved, we can verify this.

Comment 9 Peter Ondrejka 2017-11-10 15:10:24 UTC
Verified on sat 6.3 snap 24:

Using backup with renamed pg_globals:

~]# katello-restore /backup/satellite-backup-20171110092110

DEPRECATION WARNING: katello-restore is deprecated and will
be removed in the next Satellite release. It is being replaced by
satellite-restore. Redirecting to satellite-restore now.

---- The given directory does not contain the required files or has too many files
---- All backup directories contain: config_files.tar.gz, pulp_data.tar*
---- An online backup directory contains: mongo_dump, candlepin.dump, foreman.dump, pg_globals.dump
---- An offline backup directory contains: mongo_data.tar.gz, pgsql_data.tar.gz
---- A logical backup directory contains: mongo_dump, candlepin.dump, foreman.dump, pg_globals.dump, mongo_data.tar.gz, pgsql_data.tar.gz
---- *pulp_data.tar is optional
---- Please choose a valid backup directory
Usage: satellite-restore /path/to/dir [options]
 eg: $ satellite-restore /tmp/backup/satellite-backup-20171002150106
    -y, --assumeyes                  Answer yes for all questions

Comment 10 Bryan Kearney 2018-02-21 17:09:53 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, 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-2018:0336


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