Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1175326
Description of problem: Tried to run ipa-restore when IPA not configured. ipa-restore proceeds without error message that IPA not configured and fails. [root@dhcp207-1 ~]# ipa-server-install --uninstall -U Shutting down all IPA services Removing IPA client configuration Unconfiguring ntpd Unconfiguring CA Unconfiguring named Unconfiguring web server Unconfiguring krb5kdc Unconfiguring kadmin Unconfiguring directory server Unconfiguring ipa_memcached Unconfiguring ipa-otpd [root@dhcp207-1 ~]# ipa-restore -p xxxxxxxx /var/lib/ipa/backup/ipa-full-2014-12-17-21-53-01/ -U Preparing restore from /var/lib/ipa/backup/ipa-full-2014-12-17-21-53-01/ on dhcp207-1.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. Unable to get connection, skipping disabling agreements: Unable to bind to LDAP server: [Errno 2] No such file or directory Stopping IPA services [Errno 2] No such file or directory: '/etc/dirsrv/slapd-EXAMPLE-COM' [root@dhcp207-1 ~]# Expecting that ipa-restore should not proceed if IPA not configured and should throw following error message "IPA is not configured on this system" like seen in case of backup [root@dhcp207-1 ~]# ipa-backup --logs IPA is not configured on this system. [root@dhcp207-1 ~]# Version-Release number of selected component (if applicable): [root@dhcp207-1 ~]# rpm -q ipa-server ipa-server-4.1.0-12.el7.x86_64 [root@dhcp207-1 ~]# How reproducible: Always Steps to Reproduce: 1. Install IPA server 2. Take a full backup 3. Un-install IPA 4. Run ipa-restore pointing to backup of step(2) Actual results: ipa-restore proceeds without throwing error message Expected results: ipa-restore not proceed and should throw following error message "IPA is not configured on this system."
Required by downstream release (RHEL), bumping priority.
The plan is to check what is missing in the restore process, it may be something important we want to fix.
master:
ipa-4-1:
Metadata Update from @mkosek: - Issue assigned to jcholast - Issue set to the milestone: FreeIPA 4.1.3
Login to comment on this ticket.