#6913 ipa-restore should check backup archive before proceeding
Closed: insufficientinfo 5 years ago by rcritten. Opened 6 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1442684

Description of problem:
When user provide directory to ipa-restore command, command should check
availability of backup archive file before proceeding.

[root@server1 ~]# ipa-restore /tmp/
Directory Manager (existing master) password:

Preparing restore from /tmp/ on server1.testrelm.test
Cannot read backup metadata: [Errno 2] No such file or directory: '/tmp/header'
The ipa-restore command failed. See /var/log/iparestore.log for more
information

Version-Release number of selected component (if applicable):
# rpm -qa ipa-server 389-ds-base selinux-policy
389-ds-base-1.3.6.1-5.el7.x86_64
selinux-policy-3.13.1-141.el7.noarch
ipa-server-4.5.0-6.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Install ipa-server on fresh machine
2. Without ipa-backup, run ipa-restore on given directory

Actual results:
Command fails with above error.

Expected results:
Command should notify user about non-availability of archival file in given
location.

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1442684

6 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1442684

6 years ago

Metadata Update from @rcritten:
- Issue priority set to: low

5 years ago

Asked reporter in BZ for more details on what they want. While the current error doesn't explicitly say "/tmp is not an IPA backup file" it seems pretty clear to me anyway.

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.7.1 (was: FreeIPA 4.7)

5 years ago

FreeIPA 4.7 has been released, moving to FreeIPA 4.7.1 milestone

Closed BZ with insufficient_data, closing ticket as well.

Metadata Update from @rcritten:
- Issue close_status updated to: insufficientinfo
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata