Upgrade Nexus OCSP Responder on Podman
This article includes updates for OCSP Responder 6.4.1.
This article describes how to upgrade Nexus OCSP Responder server using quadlets.
Prerequisites
A previous version of Nexus OCSP responder deployed as Podman Quadlets.
Podman version 4.9.4 or later versions.
Access to the new version's distributable package including new container images.
Step-by-step instruction
Stop the OCSP container and create Backup
Stop all running containers
Use the following commands to stop the running containers:CODEsystemctl --user stop ocsp
Backup Volumes: (optional)
Backup the unit files.
Locate the.container
,.volumes
and.network
files used for the quadlet installation of OCSP and make a backup.
Import the new Image.
Use podman image load
to load the new image.
podman image load --input ocsp-<version>/images/ocsp-<version>.tar
Ensure the new images are loaded correctly:
podman images
Update Quadlet configuration
Locate the
ocsp.container
used in the previous installation.
The following command can help to locate the path of theocsp.container
file.CODEsystemctl --user status ocsp
Update the image name
Modify the Image Name and Tag to the new target Image in theocsp.container
file.Reload systemd daemon:
Make sure to reloadsystemd
daemon to apply the changes.BASHsystemctl --user daemon-reload
Create New volumes
New versions of nexus OCSP responder might see new default volumes added to the OCSP container which need to be added as part of the upgrade.
Locate Default OCSP volumes.
Default OCSP volumes are listed in the newocsp.container
file distributed with the new release zip.
Compare theocsp.container
file between the current installation and the new one to identify new default volumes.Add the new default volumes.
Once these volumes are identified, add the corresponding volumes.
For more information how to add these volumes: OCSP Quadlet DeploymentCreate new directory in systemd-ocsp-certs volume for fallback-truststore to use fallback funcitonality.
mkdir /home/azureuser/.local/share/containers/storage/volumes/systemd-ocsp-certs/_data/fallback-truststore
To continue fallback configuration follow the release notes.
Update configuration files
Make sure while doing file changes that the owner of the file does not change!
Configuration Changes between specific version can be found here:
Restart the Containers
Once everything has been done, the containers can be restarted.
systemctl --user start ocsp
Logs can be viewed using the following command:
podman logs -f ocsp
If logs cannot be seen it is most likely because of a startup error, to still see the logs chain the 2 pervious commands together.
systemctl --user start ocsp; podman logs -f ocsp
Rollback procedure
If any issue occurs during the upgrade, it is possible to roll back.
Simply restore the volume state and the .container
, .volume
and .network
files from the backup made previously.