Security Server Cluster Ubuntu 22.04 to 24.04 Upgrade.

This document describes the steps required for upgrading a Security Server cluster from Ubuntu 22.04 LTS  to Ubuntu 24.04 LTS in-place. Please read carefully through the whole document before starting the upgrade process. It is assumed that the reader is familiar with the Ubuntu Linux distribution and has experience of Ubuntu release upgrades.

Upgrading a system that uses a hardware security module has not been tested. Please verify that the HSM is compatible with Ubuntu 24.04 and check the HSM module documentation.

The upgrade process is based on

with some additional steps due to PostgreSQL database version upgrade from 14 to 16. Please review both documents before continuing.

Upgrade process

  • Ensure that the X-Road software on all nodes is at version 7.5.0, and all Ubuntu packages are updated.

    • If necessary, update the cluster, following instructions in [1], section 7.

  • Pause the database and configuration synchronization on the secondary nodes ([1], section 7.2.1)

Upgrading the primary node

  • Set the primary node to maintenance mode or manually disable it from the external load balancer.

  • Upgrade the primary node software, using the upgrade process described in [2]

    • At the “Upgrade the database” step, upgrade both database clusters* (main and serverconf) to version 16
      (*) a PostgreSQL "cluster" is a collection of databases served by one postgres instance, should not be confused with a security server cluster

      $ sudo pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 14 main 5432 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log 14 serverconf 5433 online postgres /var/lib/postgresql/14/serverconf /var/log/postgresql/postgresql-14-serverconf.log 16 main 5434 online postgres /var/lib/postgresql/16/main /var/log/postgresql/postgresql-16-main.log $ sudo pg_dropcluster --stop 16 main $ sudo pg_upgradecluster --method=upgrade --link 14 main $ sudo pg_upgradecluster --method=upgrade --link 14 serverconf
    • After upgrading the databases, continue the upgrade process as described in [2]

  • If the primary node was disabled manually from the external load balancer, verify that the primary node is working and enable it in the load balancer

Upgrading the secondary nodes

After successfully upgrading the primary, secondary nodes can be upgraded one by one.
(Alternatively, install new Ubuntu 24.04 secondary node(s) as described in [1])

Troubleshooting