QMetry and Reports Installation on Linux - 2 Tier (RHEL8, RHEL9 & Podman)

This guide describes how to install QMetry Test Management application and QMetry Reports in your environment. In a two-tier deployment, the application and its database run on one server, and the reporting tools run on a second server.

QMetry runs in Docker containers on Apache Tomcat 11.0.5, MySQL 8.4.8, and OpenJDK 17.0.2 as the Java runtime.

2-Tier Installation

The two-tier deployment uses two Linux servers. The following table lists the role of each server.

2 Tiers

Installations

Server 1

QMetry App and QMetry DB

Server 2

QMetry Reports

Pre-requisites

Confirm every item in the Pre-requisites for QMetry Application and Report Server Installation document. After that confirm the following:

Prerequisite

What to confirm

Operating System

RHEL 8, 9 and 10

Internet access

Internet access should be enabled on both servers to install using podman, in case of online installation.

Firewall and SELinux

Both are disabled on every server during installation.

Proxy Servers

No proxy blocks downloads from the internet.

Server communication

The application and report servers can reach each other on the required ports.

Open ports

Ports 80, 443, and 3306 are free on the relevant servers.

Root access

Podman and podman-compose utilities should be installed using the root user.

Disk space

The Docker and data directories have enough free space.

Installation files

QMetry_RHEL_Installer.zip & container repository credentials.

In addition to this, ensure the following:

  1. Refer QMetry Deployment Document for the hardware requirements.

  2. To install using a non-root user, refer to Installing QMetry as a Standard User before starting the install on both QMetry and Report servers.

  3. Post installation, QMetry application and QMetry Report both should be configured either on https or http.

  4. If you are planning Jira integration with QMetry and Jira is running on https, make sure your QMetry is also running over https protocol. QMetry and Jira should run on the same protocol.

  5. The following Ports should be open:

    Installation

    Ports that need to be enabled and should be available for use

    QMetry Application

    80/443 & 3306

    (8080/443 & 3306 in case of rootless installation)

    QMetry Reports

    80/443, 8081 & 3306

  6. Application and Report servers should be in the same network. Report Server should be able to communicate with Application Server over 80/443 (8080/443 in case of rootless installation) and Database Server 3306/DB Port. Ports 8080 and 3306 should be enabled/open on Reports Server to allow connections from the QMetry application server.

Pre-requisites

In case of offline installation

Step 1. Install podman and podman-compose tools. You can follow steps mentioned in the Podman and Podman-Compose Installation section to install the tools. However, it is not mandatory to follow these specific guidelines for the installation of the tools.

Step 2. Download docker images of QMetry products.

Refer to Download Docker Images of QMetry Products. Follow these steps on a machine where the internet is accessible so that the docker images can be downloaded on it.

In case of rootless installation

Note

It is mandatory to follow the steps mentioned for Podman and Podman-Compose Installation.

Install QMetry Application

To install QMetry Application, perform the following steps:

Step 1: Extract the installation files

Copy the QMetry_RHEL_Installer.zip file that you received from QMetry Support to the server. Go to the directory that contains the file, and run the following command.

unzip QMetry_RHEL_Installer.zip

Step 2: Run the installer

Run the following commands to start the installer.

cd QMetry_RHEL_Installer
sudo su
chmod +x install.sh
./install.sh

Step 3: Online Install Prompt

Options

Allowed Values

Default Value

Recommended Value

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

Y, y, N, n

Y

Y

Step 4: Docker Verification

The script runs docker.sh to verify Docker installation and prerequisites are met. Enter container repository credentials shared as a part of the installation package.

Step 5: Main Installation Menu

Enter 2 to install the QMetry application.

image-20260331-061107.png

Step 6: Specify the application data directory

Enter a directory path on the host machine to store QMetry data such as attachments, licenses, imports, and exports. You can specify any valid path, and the installer creates the directory automatically if it does not exist.

Options

Example

Please enter QMetry application directory

/opt/QMetry_RHEL_Installer

Note

Recommended: Back up the application data directory on a regular schedule. Periodic backups help prevent data loss if a disaster occurs.

Step 7: Enter the configuration parameters

After the script finishes running, enter the following parameters when prompted.

Options

Details

Default Value

Example

Enter QMetry database schema

QMetryApplication Database schema name.

qmetry

qmetry

Enter QMetry database password for root user

Enter QMetryApplication Database Password for the root user.

-

QMetry@123

Enter Email for QMetryadmin user

Enter QMetryuser email address for Admin.

-

admin@qmetry.com

Enter password for QMetryadmin user

Enter QMetryuser password for Admin.

-

Admin@123

Enter Min. Heap Memory for the web server in GB

Enter Heap Memory in GB

2

2

Enter Max. Heap Memory for the web server in GB

Enter Heap Memory in GB

4

4

Enter QMetryDatabase Connection Pool Size

Enter Pool Size in number format

100

100

The installation may take a while.

When it finishes QMetry displays the message "QMetry Application Installation is complete".

Type 0 to exit the installer.

Run the following command to confirm that the containers are running.

podman ps
image2023-8-16_12-39-22__1_.png

The podman containers installed will be shown along with their container IDs and names.

Step 8: Get QMetry License and Install it

Choose the option that matches your license type.

  • For evaluating users

    • Use the evaluation license, valid for 30 days, that you received with the installation.

  • For commercial users

    Once you receive license.key from QMetry Support, you can follow the Steps to Apply License file .

Step 9: Access the Application

Access QMetry application using the following address.

  • http://<your IP Address OR Domain Name>

  • http://<your IP Address OR Domain Name>: 8080 (in case of rootless installation of QMetry)

Log in with the Default QMetry credentials.

  • Username: admin

  • Password: <user specified password in Step # 7 >

The MySQL 8.4.8 database is installed on port 3306 with the following details.

  • Username: root

  • Password: <user specified password in Step # 7 >

  • Schema: <user specified Schema in Step # 7 >

Note

This installation deploys QMetry over Apache Tomcat 11.0.5, MySQL 8.4.8 and Open JDK 17.0.2 in a docker container.

Step 10: Update the administrator profile

After you complete the previous steps, log in to the QMetry application and update the administrator profile.

  • Go to "Admin" Profile and Edit the Profile.

  • Update the administrator email address in the Email field.

  • In the Base URL field, enter your QMetry URL.

  • Select Update.

QSvrlog into QMetry application.png

Step 11: Configure additional Tomcat settings

QMetry installs with a default configuration for minimum and maximum heap memory. You can adjust these settings to match your hardware configuration. For more information, refer to Additional Configuration for more details.

Install QMetry Reports

Note

Reports installation require Redis Server and ActiveMQ Server. Refer to the Redis and Automation installation sections for setup steps.

Pre-requisites

Before you install QMetry reports, verify the following requirements.

  • QMetry App is installed and running.

  • QMetry App DNS/IP is configured in profile section.

  • Active MQ and Redis containers are running and configured in QMetry App.

  • The services are reachable from the report server: Redis (6379), ActiveMQ (61616, 8161), App (80, 443), App DB (3306).

QMetry Report Installation Steps

To install QMetry Reports on the second server, perform the following steps:

Step 1: Get the installation zip file

Connect to the report server. Upload the QMetry_RHEL_Installer.zip to the /opt directory of the Report server and extract it with the following commands.

sudo su -
cd /opt
unzip QMetry_RHEL_Installer.zip
cd QMetry_RHEL_Installer/

Step 2: Run the reports installer

chmod +x install.sh
./install.sh

Step 3: Online Install Prompt

Options

Allowed Values

Default Value

Recommended Value

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

Y, y, N, n

Y

Y

Step 4: Docker Verification

The script runs docker.sh to verify Docker installation and prerequisites are met. Enter the Docker credentials that were shared as part of the installation package.

Step 5: Main Installation Menu

When the QMetry Installation Menu appears, enter 3 to install QMetry Reports.

image-20260331-061107.png

After QMetry creates the containers, the system runs a full sync. When the script finishes, QMetry displays the message "QMetry Report installation is complete".

image-20260416-064212.png

Type 0 to exit the installer.

Step 6: Enter the report configuration parameters

After the installation starts, enter the following parameters when prompted.

Options

Details

Example

Enter App Database Host URL

Enter Database Host Public IP/DNS of QMetry application.

10.0.8.166

Enter App Database Port

Enter Database Port of QMetry application.

3306

Enter App Database Username

Enter Database username of QMetry application.

root

Enter App Database Password

Enter Database password of QMetry application.

root

Enter App Database Schema Name

Enter Database schema name of QMetry application.

qmetry

Enter Report Database Host URL

Enter Database Host Public IP/DNS of QMetry Report.

10.0.8.221

Enter Report Database Port

Enter Database Port of QMetry Report Database.

3306

Enter Report Database Username

Enter Database username of QMetry Reports Database.

root

Enter Report Database Password

Enter Database password of QMetry Reports Database.

root

Enter Report Database Schema

Enter Database schema name of QMetry Reports Database.

qtmanalytics

Enter MQ URL

Enter MQ Active URL

tcp://10.0.8.166:61616

Enter MQ UserName

Enter MQ Username

admin

Enter MQ Password

Enter MQ Password

admin

Enter maximum memory to allocate for CDC app in GB

Maximum memory allocation for the CDC container:

  • Entered memory would be used by the sync job while running full sync of data.

  • Enter 25% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 6.

    • A minimum of 4 GB memory must be allocated.

  • To check the total memory, run the command: free -h

4

Enter maximum memory to allocate for Sync app in GB

Maximum memory allocation for the Sync container:

  • Entered memory would be used by the sync job while running full sync of data.

  • Enter 70% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 17.

    • A minimum of 8 GB of memory must be allocated.

  • To check the total memory, run the command: free -h

4

Enter number of CPU’s to allocate for CDC app

Number of CPUs to allocate for the CDC container. (The default is 4)

4

Enter number of CPU’s to allocate for Sync app

Number of CPUs to allocate for the Sync container:

  • Allocate 70% of the available CPUs. For example, if CPU has 8 cores, enter 6.

  • A minimum of 4 CPU cores must be allocated.

  • To check total CPUs, run the command : lscpu

4

Note

When you need to force sync to re-sync any missing data, just repeat step 3, and skip all parameter details (by hitting enter) and just enter y when prompted for force sync.

Step 7: Update the Base URL

Log into QMetry and go to your Profile section, edit the Base URL with QMetry app URL. When the full sync is complete, exit the installation by entering 0.

image-20260416-073621.png

Step 8: Configure the database connection

Configure the report database connection under Insight Configuration in the QMetry application. To configure the connection, perform the following steps:

  • Login to QMetry with administrator credentials and go to Customizations.

  • Select Insight Configuration and open Database Configuration tab.

  • Under Database Configuration tab, enter the following details:

    • Host: Enter Report Database Host URL from the report configuration table.

    • Port: 3306

    • Username: <Enter Report database username>

    • Password : <Enter Report database password>

    • Database Name: <Report DB schema specified during installation>

  • Select Test to confirm a successful connection, and then select Test & Save.

    image-20260416-074350.png

Step 9: Set up the report data sync

On the Sync Data tab, set up the Report Data Sync from your reports server to QMetry Reporting.

  • Report Server URL: Enter your report server domain URL followed by port 8081. Confirm that port 8081 is open on the report server.

  • Select Test to confirm a successful connection and then select Test & Save.

Note

Run Sync Data the first time after you install QMetry reports installation. The time that the sync takes depends on the amount of data in QMetry. You can monitor sync progress and status in the interface. QMetry custom reports are not accessible while the sync runs. Run the sync only during off-peak hours.

Users can start using QMetry Reports when the sync is completed. QMetry remains available during this time.

image2020-7-1_12-31-2.png

Podman and Podman-Compose Installation

Follow the steps mentioned below to install podman and podman-compose.

Root user access is required to install Podman and Podman Compose.

Step 1. Copy the installation file you received from QMetry Support to your server and extract the zip file. Navigate to the directory where this file is kept and execute the following commands.

Step 2. Execute the following commands.

chmod +x podman_install.sh
sudo sh podman_install.sh

It may take some time to install the podman and podman-compose utilities. Please wait until it gets completed.

Get support

If you are facing any issues during the installation process, kindly generate a support ticket on Support Portal for assistance.

Publication date: