Skip to content

Version information not reported correctly after upgrade #5221

@fmarco76

Description

@fmarco76

Upgrading from Fedora 42 to 43, using the copr build of master the pki package is updated from version 11.7 to 11.9. However the info endpoint will report the original version:

[root@vm-10-0-187-99 ~]# cat /etc/redhat-release 
Fedora release 43 (Forty Three)
[root@vm-10-0-187-99 ~]# rpm -qa|grep dogtag
python3-dogtag-pki-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-base-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-jss-5.9.0~alpha1^20251111191731.e4588e3f-1.fc43.x86_64
dogtag-ldapjdk-5.6.0-1.20251105020911UTC.47384e18.fc43.noarch
dogtag-jss-tomcat-5.9.0~alpha1^20251111191731.e4588e3f-1.fc43.x86_64
dogtag-pki-java-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-tools-11.9.0~alpha1^20251113110553.da045da8-1.fc43.x86_64
dogtag-pki-server-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-ca-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-theme-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-tests-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-tps-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-tks-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-ocsp-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-kra-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-javadoc-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-est-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-acme-11.9.0~alpha1^20251113110553.da045da8-1.fc43.noarch
dogtag-pki-11.9.0~alpha1^20251113110553.da045da8-1.fc43.x86_64
[root@vm-10-0-187-99 ~]# pki info
  Server URL: https://vm-10-0-187-99.hosted.upshift.rdu2.redhat.com:8443
  Server Name: Dogtag Certificate System
  Server Version: 11.7.0
[root@vm-10-0-187-99 ~]# 

The problem is that the file /etc/sysconfig/<instance_name> does not get updated and maintain the original version.
This file overwrites the configuration in /etc/pki/<instance_name>/tomcat.conf which is updated with the new version because it is loaded after in systemd configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions