Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1175287
Created attachment 970089 contains snip for restore.log and named service log Description of problem: I tried to run ipa-restore (full kind) on replica from full backup taken on master and was expecting an error message that restore can not proceed and only data restore possible. Following shown on console : "Host name dhcp207-133.testrelm.test does not match backup name dhcp207-214.testrelm.test" And as expected restore failed. [root@dhcp207-133 ~]# ipa-restore -p xxxxxxxx /var/lib/ipa/backup/ipa-full-2014-12-16-16-16-53/ -U Preparing restore from /var/lib/ipa/backup/ipa-full-2014-12-16-16-16-53/ on dhcp207-133.testrelm.test Host name dhcp207-133.testrelm.test does not match backup name dhcp207-214.testrelm.test Each master will individually need to be re-initialized or re-created from this one. The replication agreements on masters running IPA 3.1 or earlier will need to be manually re-enabled. See the man page for details. Disabling all replication. Disabling replication agreement on dhcp207-214.testrelm.test to dhcp207-133.testrelm.test Stopping IPA services Systemwide CA database updated. Restoring files Systemwide CA database updated. Restoring from userRoot in TESTRELM-TEST Starting IPA services Command ''ipactl' 'start'' returned non-zero exit status 1 [root@dhcp207-133 ~]# echo $? 1 [root@dhcp207-133 ~]# Version-Release number of selected component (if applicable): ipa-server-4.1.0-12.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Take full backup on master and copy it on replica 2. Run ipa-restore (full kind) from full backup copied from master Actual results: Restore fails as expected. Expected results: Restore process should not proceed throwing an error message that cannot restore from full backup taken on another master. Additional info: (1)Please find the attached file for snip from iparestore.log
Required by downstream release (RHEL), bumping priority.
attachment freeipa-dkupka-0036-Abort-full-backup-restoration-on-not-matching-host.patch
attachment freeipa-dkupka-0036-2-Abort-backup-restoration-on-not-matching-host-in-una.patch
attachment freeipa-dkupka-0036-3-Abort-backup-restoration-on-not-matching-host.patch
attachment freeipa-dkupka-0036-4-Abort-backup-restoration-on-not-matching-host.patch
attachment freeipa-dkupka-0036-5-Abort-backup-restoration-on-not-matching-host.patch
master:
ipa-4-1:
Metadata Update from @mkosek: - Issue assigned to dkupka - Issue set to the milestone: FreeIPA 4.1.3
Login to comment on this ticket.