New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nightly test failure uninstalling PKI #4329
Comments
|
So this is an existing problem, but Is there a reason for IPA to stop PKI server before removing it? The way it's designed now is that PKI subsystems are registered to a security domain which is also running on the same PKI server. So in order to remove the CA properly, PKI server needs to be running such that My suggestion for now is to fix IPA to keep PKI server running and let |
|
Since the behavior of If we want to be able to use |
|
Does this mean that if the CA (or other services I assume) cannot be started then they cannot be uninstalled? |
|
Does Currently the security domain service is running in CA subystem. If the CA subsystem is down the security domain service will be down too, so it won't be possible to notify the security domain service about the removal of another subsystem. It might be possible to forcibly remove a subsystem with the above command, but you might end up with outdated information in the security domain database. If IPA is relying on this information for something, it might have a problem later, so you'll need to clean up the outdated information manually once you manage to bring the security domain service (i.e. the CA subsystem) back up, or clean it up directly from the security domain database (we can provide CLIs for this, but it can only run locally on CA's machine). There might be other options, but they probably require major redesign. |
|
We'll have to see. We did something similar for the KRA a few years ago, trying to ensure that the services are running at shutdown but not treating them as a blocker. We don't pass --force though. I think we can work this out in IPA. |
The IPA tests detected a regression during uninstallation when the pki packages from the copr repository @pki/master are used.
See PR #2434 with the test
test_backup_and_restore_TestBackupReinstallRestoreWithKRA(Report, logs).The test scenario is the following:
The simplest reproducer is:
The
ipa-server-install --uninstallcommand succeeds but prints an error related to the failure ofpkidestroy. The PKI server is not uninstalled and any tentative IPA reinstallation would fail because the instance has been left in place.Logs from pki-ca-destroy are available here and show that the command
pkidestroy -i pki-tomcat -s CAis unable to unregister CA subsystem:This failure is not surprising as IPA uninstaller is stopping the services before it calls
pkidestroy. In the past, this didn't cause any issue but I suspect that commit b6b6d0b has changed the behavior.IMO it should be possible to call pkidestroy even if the pki service is stopped.
Companion issue reported against IPA: https://pagure.io/freeipa/issue/9330
The text was updated successfully, but these errors were encountered: