Project

General

Profile

Actions

Bug #16825

closed

katello-restore: Perform required files check before starting the restore

Added by Christine Fouant about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Backup & Restore
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1380905
Description of problem:
katello-restore: Perform required files check before starting the restore

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

How reproducible:
Always

Steps to Reproduce:
1. Get data export from an other satellite. I had the following files in /restore folder
01678184-01678184-config_files.tar.gz
01678184-01678184-elastic_data.tar.gz
01678184-01678184-mongo_data.tar.gz
01678184-01678184-pgsql_data.tar.gz
2. run katello-restore:
#katello-restore /restore
...
...
Restoring backend data
tar (child): elastic_data.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar: pulp_data.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar (child): mongo_data.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
tar (child): pgsql_data.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Done.
...
...

Actual results:
katello-restore failed since the tar file names aren't what the system expected

Expected results:
katello-restore should check for the tar file names before starting the restore process.

Additional info:

Actions

Also available in: Atom PDF