Upgrading the on-premises gateway by using Podman containers
This topic describes how to upgrade the BMC Helix Intelligent Integrations on-premises gateway by using Podman containers.
Upgrading the BMC Helix Intelligent Integrations on-premises gateway involves the following tasks:
- Upgrade the container images
- (Optional) Upgrade the database
- Update the collector URL in the third-party product
Before you begin
- Review the system requirements and download the container images and utility files.
- Back up the connector configurations, see Backing-up-and-restoring-connector-configurations.
To upgrade the on-premises gateway by using Podman containers
- Go to the server where you want to upgrade the on-premises gateway.
- Copy the following files that you have downloaded to the /opt/bmc directory:
- Container images: bmc-hii-podman-images-<version>-<buildNo>.tgz
- Utility file: hii-bmc-<version>-<buildNumber>.zip
Stop the podman-compose service.
podman-compose downDelete and purge the existing container images from the local repository.
podman image prune -a- When prompted to purge all containers, enter Y.
Load the container images that you have downloaded.
podman load --input /opt/bmc/bmc-hii-docker-images-<version>-<buildNo>.tgz- Unzip hii-bmc-<buildNumber>.zip and overwrite the existing files in the /opt/bmc/hii directory.
Perform the following steps to upgrade the database if the database version is earlier than 3.10.6:
Open the /opt/bmc/hii/podman-compose.yaml file with a text editor and search for the following line:
# - --database.auto-upgradeUncomment the line as follows:
- --database.auto-upgradeStart the podman-compose service.
podman-compose -f podman-compose.yaml up -dOpen the /opt/bmc/hii/podman-compose.yaml file with a text editor and search for the following line:
- --database.auto-upgradeComment the line as follows:
# - --database.auto-upgradeStop the podman-compose service.
podman-compose -f podman-compose.yaml down
- If SSL was configured before upgrade, go to step 10. If SSL was not configured before upgrade, configure it and skip to skip 11. For instructions, see To configure SSL for BMC Helix Intelligent Integrations.
Start the podman-compose service by using one of the following set of commands:
podman-compose -f podman-compose.yaml up -dAccess the BMC Helix Intelligent Integrations UI by using the following URL:
https://<hostName>:7443/swpui
To configure SSL for BMC Helix Intelligent Integrations
- Perform one of the following actions to obtain the certificate and private keys:
Generate a self-signed certificate by using the following command:
openssl req -x509 -sha256 -days 397 -nodes -newkey rsa:2048 -subj "/CN=<commonName>/C=<countryName>/L=<locality>" -keyout <hostName>.key -out <hostName>.crtIn the command, replace <hostName> with the fully qualified domain name of the server where you are installing the on-premises gateway.
- Obtain a CA-signed certificate and private keys from the Certificate Authority.
- Create the certs directory in the /opt/bmc/hii/conf directory if it does not exist.
- Copy the certificate and private key you obtained to the /opt/bmc/hii/conf/certs directory, and make sure that the names of the certificate and private key files are in the following format:
<hostName>.crt and <hostName>.key
<hostName> is the fully-qualified domain name of the server where you are installing the on-premises gateway. - Open the hii/conf/nginx.conf file with a text editor.
In the following SSL configuration, replace <certificate> with the fully qualified domain name of the server where you are installing the on-premises gateway.
ssl_certificate /etc/nginx/certs/<certificate>.crt; #certificate path
ssl_certificate_key /etc/nginx/certs/<certificate>.key; #certificate keyComment the following line:
listen 443 sslUncomment the following line:
# listen 7443 ssl- Save and close the file.
Restart the podman-compose service.
podman-compose -f podman-compose.yaml down
podman-compose -f podman-compose.yaml up -d
To update the collector URL in the third-party product
Update the collector URL in the third-party product if the following conditions are satisfied:
- You have upgraded to version 24.1 or later and SSL was not configured before upgrade.
- You are collecting data from a third-party product via the webhook mechanism.
Do the following tasks to update the collector URL:
- Access the BMC Helix Intelligent Integrations UI by using the following URL:
https://<hostName>:7443/swpui - On the SOURCES panel, click Configure Mediator
for the source connection that you created and then expand the <thirdPartyProduct Datatype> panel.
- On the COLLECTOR CONFIGURATION tab, click copy
to copy the existing, auto-generated collector URL and save the URL in a temporary file.
For example, https://hostA:7443/hii/api/mediator/v3/push/9mn-6c97-4c2e-8pc5-12c0asdf. - Configure the third-party product again to forward data to BMC Helix Intelligent Integrations.
For the sample instructions to update the collector URL in the third-party product, see To configure a connection with Entuity for collecting incidents data.