Red Hat Bugzilla – Bug 858864
create/ identify a mechanism for clients to determine that the pki subsystem is up
Last modified: 2013-02-21 05:05:58 EST
This bug is created as a clone of upstream ticket: https://fedorahosted.org/pki/ticket/314 IPA needs a way to determine that PKI is up and ready to service requests. Checking the service status is not sufficient.
Here is an initial idea to solve this: 1. There is a currently little used dogtag 9/10 servlet called getStatus. This servlet returns the type of server (CA, KRA, etc) and the configuration status of the server (1 - configured / 0 - not configured). We can extend this servlet to provide other information like the dogtag version - which we need to know when supporting cloning between dogtag 9/10, and also whether the system is initialized. In the init() function in CMSEngine.java, we can make the following changes: 1. at the beginning, set cs.startup_state in CS.cfg to "starting" 2. at the end, set cs.startup_state to "running" The getStatus() servlet would query the cs.startup_state in CS.cfg. If the server is down, you would not be able to reach that servlet in any case.
Patch committed to IPA_v2_RHEL_6_ERRATA_BRANCH commit b7acae7bf42d524355257d92bba9851fafc6f606 Author: Ade Lee <alee@redhat.com> Date: Fri Sep 28 17:27:12 2012 -0400 Resolves #858864 - create/ identify a mechanism for clients to determine that the pki subsystem is up commit f29ffc6392c758954fa53a0b4e645c0c72a636f4 Author: Ade Lee <alee@redhat.com> Date: Fri Sep 28 15:39:31 2012 -0400 Resolves #858864 - create/ identify a mechanism for clients to determine that the pki subsystem is up
Ran regression test suites for IPA, and didn't see any issues. So marking this verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0511.html