Title: #5485: Ensure IPA is running (ideally) before uninstalling the KRA
Ensure IPA is running (ideally) before uninstalling the KRA
The KRA attempts to unregister itself from the security domain
which requires that IPA be running for this to succeed.
1. Move the KRA uninstall call prior to stopping all IPA
2. Try to start IPA if it isn't running and a KRA is configured
It isn't mandatory that IPA be running for the KRA uninstall to
succeed but it will suppress a pretty scary backtrace and error
Signed-off-by: Rob Crittenden <rcritten(a)redhat.com>
This also removes two deprecated API warnings from dogtag and changes a log level from
info to debug to suppress unnecessary output.
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5485/head:pr5485
git checkout pr5485