Upgrading on RHOSO

1] Configuration change

If any config parameter changed in tvo-operator-inputs.yaml like db user password or service endpoints, you can apply the changes using following command.

cd ctlplane-scripts
./deploy_tvo_control_plane.sh

Above command will output ‘configured' or 'unchanged’ depending upon changes happened in tvo-operator-inputs.yaml.

2] Upgrade to new build

Please follow below steps to upgrade to new build on RHOSO18 setup.

Take a backup of existing triliovault-cfg-scripts and clone latest triliovault-cfg-scripts github repository.

mv triliovault-cfg-scripts triliovault-cfg-scritps-old
git clone -b {{ trilio_branch }} https://github.com/trilioData/triliovault-cfg-scripts.git

Copy the input values from triliovault-cfg-scripts-old to latest directory.

cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/ctlplane-scripts/tvo-operator-inputs.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/ctlplane-scripts/tvo-operator-inputs.yaml
cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/dataplane-scripts/cm-trilio-datamover.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts/cm-trilio-datamover.yaml
cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/dataplane-scripts/trilio-datamover-service.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts/trilio-datamover-service.yaml
cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/dataplane-scripts/trilio-data-plane-deployment.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts/trilio-data-plane-deployment.yaml

2.1] Upgrade Trilio for OpenStack Operator

Run operator deployment with new image tag as mentioned in step 2 of this documentation

2.2] Upgrade Trilio OpenStack Control Plane Services

Update the image tags in tvo-operator-inputs.yaml file.

cd triliovault-cfg-scripts/redhat-director-scripts/rhosp18/ctlplane-scripts
vi tvo-operator-inputs.yaml

Update the below parameters:

    triliovault_wlm: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_wlm_api: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_wlm_scheduler: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_wlm_cron: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_wlm_workloads: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_wlm_cloud_trust: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_object_store: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>
    triliovault_datamover_api: registry.connect.redhat.com/trilio/trilio-datamover-api-rhoso:<NEW-BUILD-TAG>
    triliovault_datamover_db_sync: registry.connect.redhat.com/trilio/trilio-datamover-api-rhoso:<NEW-BUILD-TAG>
    triliovault_wlm_db_sync: registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>

Now apply the changes using below command:

oc apply -n trilio-openstack -f tvo-operator-inputs.yaml

Verify the deployment status and successful deployment.

2.3] Upgrade Trilio Data Plane Services

Update the image tags in cm-trilio-datamover.yaml file.

cd triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts
vi cm-trilio-datamover.yaml

Update the below parameters:

    triliovault_datamover_image: "registry.connect.redhat.com/trilio/trilio-datamover-rhoso:<NEW-BUILD-TAG>"
    triliovault_wlm_image: "registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>"

Now apply the changes using below command:

oc -n openstack apply -f cm-trilio-datamover.yaml

Update the ansible runner tag in trilio-datamover-service.yaml file.

cd triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts
vi trilio-datamover-service.yaml

Update the below parameters:

  openStackAnsibleEERunnerImage: registry.connect.redhat.com/trilio/trilio-ansible-runner-rhoso:<NEW-BUILD-TAG>

Now apply the changes using command:

oc -n openstack apply -f trilio-datamover-service.yaml

Update the deployment name as mentioned in step 4.6 of this documentation and trigger deployment.

Verify the deployment as mentioned in step 4.7 of this documentation

2.4] Upgrade Trilio Horizon Plugin

Follow step 5 of this documentation and update the trilio horizon plugin with new image tag.

3] Upgrade dynamically added Backup Target

Note: This step is needed only when there is change in python3-s3fuse-plugin-el9 package.

Please follow below steps to upgrade s3 backup target pods to new build on RHOSO18 setup.

Copy the input files from old triliovault-cfg-scripts directory to latest directory.

cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/ctlplane-scripts/tvo-backup-target-cr-amazon-s3.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/ctlplane-scripts/
cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/ctlplane-scripts/tvo-backup-target-cr-other-s3.yaml triliovault-cfg-scripts/redhat-director-scripts/rhosp18/ctlplane-scripts/
cp triliovault-cfg-scripts-old/redhat-director-scripts/rhosp18/dataplane-scripts/<BACKUP-TARGET-NAME> triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts/

3.1] Upgrade dynamic backup target on control plane

Update the below parameter with new image tag in respective files tvo-backup-target-cr-amazon-s3.yaml and tvo-backup-target-cr-other-s3.yaml.

cd triliovault-cfg-scripts/redhat-director-scripts/rhosp18/ctlplane-scripts
vi tvo-backup-target-cr-amazon-s3.yaml
vi tvo-backup-target-cr-other-s3.yaml
  images:
    triliovault_object_store: "registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>"

Now apply the changes.

oc -n trilio-openstack apply -f tvo-backup-target-cr-amazon-s3.yaml
oc -n trilio-openstack apply -f tvo-backup-target-cr-other-s3.yaml

Check the s3 backup target containers up and running with new image.

oc -n trilio-openstack get pods | grep <backup-target-name>
oc -n trilio-openstack describe pod <pod-name> | grep Image:

3.2] Upgrade dynamic backup target on data plane

Update the wlm image parameter with new image tag in respective files.

cd triliovault-cfg-scripts/redhat-director-scripts/rhosp18/dataplane-scripts
vi <BACKUP-TARGET-NAME>/cm-trilio-backup-target.yaml


  trilio_env.yml: |
    triliovault_wlm_image: "registry.connect.redhat.com/trilio/trilio-wlm:<NEW-BUILD-TAG>"

Now apply the changes.

oc -n openstack apply -f <BACKUP-TARGET-NAME>/cm-trilio-backup-target.yaml

Update the ansible runner image with new image tag.

vi <BACKUP-TARGET-NAME>/trilio-add-backup-target-service.yaml


  openStackAnsibleEERunnerImage: registry.connect.redhat.com/trilio/trilio-ansible-runner-rhoso:<NEW-BUILD-TAG>

Now apply the changes.

oc -n openstack apply -f <BACKUP-TARGET-NAME>/trilio-add-backup-target-service.yaml

Update the deployment name with unique name.

vi <BACKUP-TARGET-NAME>/trilio-add-backup-target-deployment.yaml


metadata:
  name: edpm-trilio-add-backup-target-s3-bt4

Now apply the changes.

oc -n openstack apply -f <BACKUP-TARGET-NAME>/trilio-add-backup-target-deployment.yaml

Verify the s3 backup target containers on compute nodes.

podman ps -a | grep <BACKUP-TARGET-NAME>

Last updated

Was this helpful?