#9637 adtrustinstance only prints issues in check_inst() and does not log them
Closed: fixed 5 months ago by frenaud. Opened 6 months ago by rcritten.

Issue

ipaserver/install/adtrustinstance.py provides the function check_inst() which ensures that the Samba packages are installed and that /usr/share/ipa/smb.conf.empty exists which means the adtrust sub-package is installed.

Unfortunately it only prints the output and does not log it making reviewing a user-provided log insufficient to know exactly what is wrong.

Steps to Reproduce

  1. Add --setup-adtrust to the ipa-server-install CLI without having the freeipa-server-trust-ad package installed

Actual behavior

AD Trust requires the 'freeipa-server-trust-ad' package
Please install the package and start the installation again
Aborting installation.

The server install log contains only "Aborting installation."

Expected behavior

The server log also contains the printed messsage.


Metadata Update from @rcritten:
- Issue assigned to rcritten

6 months ago

master:

  • 1dc84ba Log errors reported by adtrustinstance.check_inst() using logger

ipa-4-12:

  • e83d949 Log errors reported by adtrustinstance.check_inst() using logger

ipa-4-11:

  • f21ca0c Log errors reported by adtrustinstance.check_inst() using logger

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

5 months ago
5 months ago

Log in to comment on this ticket.

Metadata