#664 pkispawn overwrites files when adding subsystem to existing instance
Closed: Fixed Opened by edewata.

When adding a new subsystem into an existing instance pkispawn will regenerate Tomcat configuration files such as serverCertNick.conf and server.xml. So if there are subsystem-specific settings in those files they will get replaced by the settings of the new subsystem.

For example the serverCertNick.conf on a CA may initially contain the following value:

Server-Cert cert-pki-ca

When KRA is added to the same instance it could change to this:

Server-Cert cert-pki-kra

One possible solution is to not regenerate Tomcat configuration files. This means the contents of those files are controlled by the first subsystem and if the second subsystem defines a different value it will get ignored, which may be confusing to the admin.

Another solution is to verify that the second subsystem does not define different values for the parameters that will go into Tomcat configuration files. Otherwise, the installation should fail.

Another possible solution is to split Tomcat configuration from subsystem configuration into separate deployment files. When adding a new subsystem to an existing instance only the subsystem configuration is required so the admin will not accidentally change the Tomcat configuration.


[06/04/2014] - Moving to Milestone 10.3 due to schedule restrictions.

Per 10.2.2 Triage meeting of 02/24/2015: 10.2.3

Contents of this ticket were merged into PKI TRAC Ticket #1196 - serverCertNick.conf is replaced when second subsystem is installed. and it has been closed as a duplicate.

There are other files that get overwritten when installing additional subsystems (e.g. server.xml). This is needed by ticket #1438.

False alarm: https://bugzilla.redhat.com/show_bug.cgi?id=1234638#c16

The fix in ticket #1196 is sufficient.

Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1302142

Metadata Update from @edewata:
- Issue assigned to edewata
- Issue set to the milestone: 10.3.0

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/1234

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata