Feature #19449
openkatello-restore needs to check for sufficient free disk space before restore
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1414240
Description of problem:
If there is insufficient space on disk while running a katello-restore, it fails with:
####
...
Restoring backend data
tar: Unexpected EOF in archive
tar: rmtlseek not stopped at a record boundary
tar: Error is not recoverable: exiting now
Done.
####
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Create a backup with katello-backup
2. Restore using katello-restore when there is insufficient disk space
Actual results:
####
...
Restoring backend data
tar: Unexpected EOF in archive
tar: rmtlseek not stopped at a record boundary
tar: Error is not recoverable: exiting now
Done.
####
Expected results:
Either run a check before hand to see of there is sufficient disk space available, or provide a more informational error message.
Additional info: