When an error occurs ipa-backup reports:
The ipa-backup command failed. See /var/log/ipabackup.log for more information.
That file may not exist yet I suppose if things failed early enough. I can't tell yet whether it isn't created yet or it is ignored entirely.
Also if --log-file is used then that name is not returned on errors.
ipa-server-4.7.1-11.module+el8+2842+7481110c on RHEL 8.
OK, confirmed that some errors may occur before the log is created.
e.g.
# GNUPGHOME=/root/doesnotexist ipa-backup --gpg --log-file /tmp/foo
Metadata Update from @rcritten: - Issue assigned to rcritten
Metadata Update from @rcritten: - Issue set to the milestone: FreeIPA 4.7.3
https://github.com/freeipa/freeipa/pull/3158
Before validation python logging is setup with no file logging, probably a good idea.
The problem is that the code that displays the message goes by whether log_file_name is set in the class, regardless of whether it was configured or not. Proposed solution: use a temporary value to hold the name while validation is done.
master:
ipa-4-7:
Metadata Update from @rcritten: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.