Menu

Sessions 4.0.2 to 4.1 Load Balancer Upgrade Guide for Docker

Overview

In this article, we provide instructions to upgrade qTest Sessions 4.0.2 to 4.1 on multiple CentOS/Ubuntu machines using Docker. Please read the instructions thoroughly before starting your installations.

To request assistance with upgrading or obtain the self-upgrade links, complete the Upgrade Request Form and reference the OnPremise Upgrades Guide.

Note: If you are performing a fresh install, use the OnPremise New Install Form and reference the OnPremise Install Guide.

Before You Begin

  • qTest Sessions 4.1 only works with qTest Manager 9.0 or later. 
  • qTest Sessions 4.0.2 was delivered with docker deployment package 4.3 and qTest Sessions 4.1 is delivered with docker deployment package 4.4. You will need to download docker deployment package 4.4 to perform the upgrade.

Read the following:

This diagram provides a sample scenario of qTest Sessions 4.0.2 being installed in a load balancing environment

The highlighted items are qTest Sessions and the components it needs to run. This article will cover upgrading qTest Sessions application nodes, which are Machine #2 and Machine #3 in this example.

sessions-lb.png

Upgrade qTest Sessions

In the Load Balancing model, there are multiple application nodes (qTest Sessions Machine #2 and qTest Sessions Machine #3 in the above diagram). You will need to upgrade each node.

Access your qTest Sessions server (Machine # 2) and start the upgrade process.

Shutdown the Previous Deployment

  1. Open the Terminal.
  2. Access the directory where you extracted the previous docker deployment package 4.3, shut it down and create a backup.
    $ ./shutdown
    $ ./backup

Download the Deployment Package

  1. Download docker-deployment-4.4 package.
    $ wget <ENTER DOWNLOAD LINK HERE>
  2. Extract the package.
    $ tar -zxf <DOWNLOADED PACKAGE FILE NAME>
  3. Access the docker-deployment-4.4 directory.
    $ cd docker-deployment-4.4

Configure qTest Sessions

Choose one of the two options below to configure qTest Sessions:

  1. Copy configuration of all applications in your previous docker deployment to the /profiles directory of docker-deployment-4.4 package.
    $ cp -r /path/to/docker-deloyment-4.3/profiles/ /path/to/docker-deployment-4.4/
    • Above command will copy the old configuration file at /docker-deployment-4.3/profiles/default.in to /docker-deployment-4.4/profiles/default.in
    • Next, open the file at /path/to/docker-deployment-4.4/profiles/default.in, locate and change the version value to 4.4, as below:
      version = "4.4"
  2. Another option is to use ./configure command and specify sessions application that you want to configure.
    $ ./configure --apps "sessions" –-cluster "<public IP of Machine 1>"

Upgrade qTest Sessions

Execute the command below to upgrade qTest Sessions:

$ ./upgrade

Start Deployment Process

  1. Start the deployment process by executing startup script which will download application images and qTest Sessions components to the Docker container.
    Note: It may take a while to complete depending on your network connection.
    $ ./startup
  2. When it's done, you can access qTest Sessions and verify the new version.

Upgrade qTest Sessions on Machine #3

Access Machine #3 where qTest Sessions 4.0.2 has been installed.

Repeat the steps above to upgrade it to qTest Sessions to 4.1.

Machine #4 (sessionslb - the Load Balancer)

Access the directory where you've extracted the docker deployment package 4.3, and shut it down using following commands:
$ ./shutdown

  1. Download the docker deployment 4.4 package:
    $ wget <ENTER DOWNLOAD LINK HERE>
  2. Extract the package
    $ tar -zxf <DOWNLOADED PACKAGE FILE NAME>
  3. Access the extracted package directory:
    $ cd docker-deployment-4.4

Configure the Load Balancer

Choose one of the below options to configure sessionslb - the load balancer.

  1. Copy configuration of all applications in your previous docker deployment to the /profiles directory of docker-deployment-4.4 package.
    $ cp -r /path/to/docker-deloyment-4.3/profiles/ /path/to/docker-deployment-4.4/
    • Above command will copy the old configuration file at /docker-deployment-4.3/profiles/default.in to /docker-deployment-4.4/profiles/default.in
    • Next, open the file at /path/to/docker-deployment-4.4/profiles/default.in, locate and change the version value to 4.4, as below:
      version = "4.4"
  2. Another option is to use ./configure command to configure sessionslb.
    • If you deploy the load balancer with HTTP:
      $ ./configure --apps "sessionslb" --cluster "<public IP address of Machine 1>" --sessions-url "http://<public IP address of current machine>:<qTest Sessions port>" --sessions-http "<qTest Sessions port>"

    • If you deploy the load balancer with HTTPS:
      $ ./configure --apps "sessionslb" --cluster "<public IP address of Machine 1>" --sll-key "<SSL Key>" --ssl-cert "<SSL Cert>" --ssl-ca "<SSL Ca>" --sessions-url "https://<public IP address of current machine>:<qTest Sessions https port>" --sessions-https "<qTest Sessions https port>"

Start the Load Balancer

Next, execute the following command to start the load balancer.

$ ./startup

Troubleshooting

If any of steps above are not successful, you will need to rollback to qTest Sessions 4.0.2 (including docker, sessions, sessionslb on machine #2, #3, #4) following these steps:

  1. Access each machine.
  2. Restore backup data by accessing the earlier docker deployment folder and running the restore command:
    $ cd /path/to/docker-deployment-4.3
    $ ./restore
    $ ./startup
  3. When restore process is complete, contact Customer Support to troubleshoot the issue with upgrading qTest Sessions on a Docker Load Balancing environment.
Powered by Zendesk