QMetry Upgrade Document for RHEL8, RHEL9 & Podman (from below v8.16.0.1 to the latest version)

QMetry Upgrade Document for RHEL8, RHEL9 & Podman (from below v8.16.0.1 to the latest version)

QTM (1).png

If you are upgrading to QTM v8.18.1, update the Single Sign On (SSO) login URL. Go to Changes in SSO URL in QMetry Onpremise for v8.18.1 and refer to the corresponding Identity Provider page to know the URL changes.

In this guide, we will run you through upgrading to QMetry Test Management v8.18.1 from any previous version. These steps should be followed on your QMetry app server hosted on the RHEL8, and RHEL9 machine.

Pre-requisites

Important Prerequisites to check before the upgrade.

  • MySql version of QMetry Reports and QMetry Application should be 8.0.40.

  • Ensure internet connectivity is enabled on the server for this upgrade.

Upgrade Document for RHEL8, RHEL9 & Podman

Step 1: IMPORTANT: Backup your existing QMetry Database

Take the backup of your existing “qmetry” database. You can replace the username, password, and location of the backup file (currently default /opt).

  • Syntax: podman exec qmetryapp_db sh -c 'exec mysqldump -uroot -p<password> --triggers --routines --hex-blob --single-transaction --lock-tables --no-create-db qmetry' > /opt/qmetry_backup_<date>.sql

  • For example: podman exec qmetryapp_db sh -c 'exec mysqldump -uroot -pqmetry --triggers --routines --hex-blob --single-transaction --lock-tables --no-create-db qmetry' > /opt/qmetry_backup_2021-01-01.sql

Verify that your database has been backed up properly and is available for later use in case of any emergency.

Step 2: Download Required Files

  • You can generate a request on the QMetry Support Portal, to get the latest version of QMetry Upgrade Installer.

  • Download the UpgradeQMetryApp.zip to your QMetry Application Server on host machine once you receive it.

Step 3: Run the QMetry Upgrade

1. Check the running containers using the following command. The podman must be running to ensure a successful upgrade.

podman ps

 

If the podman is not running, start it using the below commands (replace container names according to the application container name seen in the command above)

podman start qmetryapp_db podman start qmetry_app_1

 

2. Go to the directory where the UpgradeQMetryApp.zip file is downloaded.

3. Unzip the file UpgradeQMetryApp.zip on the host machine. 

unzip UpgradeQMetryApp.zip

 

4. Go to QMetry directory:

cd UpgradeQMetryApp

 

5. Give permission to upgrade.sh file through the following command. 

chmod +x upgrade.sh 

 

6. Execute this command.

./upgrade.sh

 

The utility will confirm if you want to upgrade.

Options 

Allowed Values 

Default Value 

Description 

Do you want to make an online installation (Y/N)? 

Y,y,N,n 

Enter “Y to begin the online upgrade.

Wait for the process to complete.


Step 4: Check QMetry and MySQL Container

Check the running containers using the following command:

podman ps

Note: If you are upgrading the QTM app to version 8.18.1, it is essential to update the Automation API to the latest version. Refer to Install/Upgrade Automation API Feature (RHEL8, RHEL9 & Podman).