#4838 better error message: ipa-restore without ipa installed
Closed: Fixed None Opened 9 years ago by pvoborni.

On
full ipa-restore on a machine without IPA:

Performing FULL restore from FULL backup
Restoring data will overwrite existing live data. Continue to restore? [no]: yes
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
Restoring files
Systemwide CA database updated.
Starting IPA services
Restarting SSSD
The ipa-restore command was successful

The error is expected but Unable to bind to LDAP server: [Errno 2] No such file or directory might be confusing for users.

Better error message is needed.

FYI: use case


During processing of remaining tickets in 4.2 Backlog, this ticket was found as suitable to be fixed in the nearest bugfixing branch - which is 4.2.x.

master:

  • 3177675 ipa-restore: check whether DS is running before attempting connection

ipa-4-2:

  • e4b8cff ipa-restore: check whether DS is running before attempting connection

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.2.1

7 years ago

Login to comment on this ticket.

Metadata