Installing the server software on Ubuntu using microk8s
You can install Rational® Test Automation Server on the Ubuntu server that has a Kubernetes environment to run functional, integration, and performance tests. Rational® Test Automation Server combines test data, test environments, and test runs and reports into a single, web-based browser for testers and non-testers.
Before you begin
-
Completed the tasks provided in the Prerequisites section. See Prerequisites for installing the server software on Ubuntu.
-
Set up the microk8s Kubernetes environment along with other configurations. See Setting up a Kubernetes environment on Ubuntu.
-
Copied an Entitlement key from https://myibm.ibm.com/products-services/containerlibrary to pull the images used by the server software.
-
Optional: Located any user data that was stored in a backup snapshot file from V10.0.2, Fix Pack 1 or earlier. See Backing up the user data from a previous release.
-
Optional: Located any user data that was stored in a backup snapshot file from V10.1.0. See Backing up and restoring the user data on Ubuntu.
-
You must ensure that /snap/bin is in your PATH. You can run the
export PATH=
command to set your PATH./snap/bin:$PATH
About this task
As part of the installation process, you might optionally migrate user data from a previous version of the product, or restore a backup of user data from the current version of the product. You must perform different steps, depending on which version of the user data backup file you are applying during the install. For more details, see the following table:
Procedure
- Log in to the Ubuntu server as a non-root user.
-
Create a namespace to install the server software by entering the following
command:
kubectl create namespace test-system
-
Add the repository to Helm to access the server install charts by entering the
following command:
helm repo add ibm-helm https://raw.githubusercontent.com/IBM/charts/master/repo/ibm-helm
-
Run the following command to get the latest updates from the repository:
helm repo update
-
Create a secret to pull images that are used by Rational® Test Automation Server by entering the following command:
Notes:
-
You must substitute
{your_entitlement_key}
with the password that is fetched from https://myibm.ibm.com/products-services/containerlibrary. -
You can replace
not-required@test
with the administrator's email address, if required.
kubectl create secret docker-registry cp.icr.io \ -n test-system \ --docker-server=cp.icr.io \ --docker-username=cp \ --docker-password={your_entitlement_key} \ --docker-email=not-required@test
-
-
Optionally, you can complete the following two steps to migrate user data from
the previous version (V10.0.2, Fix Pack 1 or earlier):
- Optional:
To enable services in the Istio Service Mesh to be virtualized as stubs, you
must add the following parameters to the helm install parameters in Step 9 before installing the
server:
--set execution.istio.enabled=true \ --set execution.istio.clusterRoleBinding.create=true
- Optional:
To enable the running of stubs that virtualize services in namespaces, add the
following parameters to the helm install parameters in Step 9 before installing the
server:
--set execution.istio.namespaces='{namespaceA,namespaceB}' \
Alternatively, you can add the parameters to the helm install parameters by using an array index notation.--set execution.istio.namespaces[0]=namespaceA \ --set execution.istio.namespaces[1]=namespaceB
-
Run the following commands to install the server software on your
computer:
Notes:
-
You must substitute the value of the following variables with the actual value in the command:
-
{my-rtas}
with the release name of your choice. -
{my-ingress-dns-name}
with the same Ingress DNS name that you used in ubuntu-init.sh.Note: You must provide the value that consists of lowercase alphanumeric characters,-
(hyphen) or.
(period). Also, the value must start and end with an alphanumeric character. -
{my-super-secret}
with a value of your choice.Note: You can use the password seed to create all other default passwords. You must store the password seed securely. When you install the server software by using the backup of the user data, you can reuse the password seed. You can use this seed to restore backup files either on the current or later versions of the server software. -
{rlks-ip-address}
with the IP address of Rational License Key Server. -
{namespace}
with the name of the namespace that you created.
-
-
If you migrated user data from a previous release (V10.0.2, Fix Pack 1), you must use the same
{my-rtas}
name that you chose then, during the install step.
#Make sure the repository is current and retrieve the charts required to install the server helm repo update helm pull --untar ibm-helm/ibm-rtas-prod --version 2.1011.0 #Install the server helm install {my-rtas} ./ibm-rtas-prod -n test-system \ --set license=accept \ -f ibm-rtas-prod/values-microk8s.yaml \ --set global.ibmRtasIngressDomain={my-ingress-dns-name} \ --set global.rationalLicenseKeyServer=@{rlks-ip-address} \ --set global.ibmRtasPasswordAutoGenSeed={my-super-secret} \ --set global.ibmRtasRegistryPullSecret=cp.icr.io \ --set keycloak.keycloak.image.pullSecrets[0]=cp.icr.io
-
- Optional:
Set the following parameters, if you have installed a Jaeger operator on the
cluster and you want to use it for performance and Web UI tests logs:
--set-string execution.annotations.sidecar\\.jaegertracing\\.io/inject=true --set global.jaegerAgent.enabled=true --set global.jaegerAgent.internalHostName=localhost --set global.jaegerDashboard.enabled=true --set global.jaegerDashboard.externalURL={my-jaeger-dashboard-url}
Note: You must substitute{my-jaeger-dashboard-url}
with the URL of the Jaeger server. -
Optionally, perform the following steps to restore the backed up user data from
the current version:
- Optional:
Run the following command to verify and test the installed server
software:
$ helm test {my-rtas} -n {namespace}
where:{my-rtas}
is the release name of your choice.{namespace}
is the name of the namespace that you created during the server installation process.
Results
On successful installation of Rational® Test Automation Server, the output displays the URL to access the Rational® Test Automation Server UI.
What to do next
You can back up the user data that are saved in the Kubernetes clusters to secure your data. See Backing up and restoring the user data on Ubuntu.