Upgrading on Ansible OpenStack
Upgrading from Trilio 4.1 to a higher version
Trilio 4.1 can be upgraded without reinstallation to a higher version of T4O if available.
Pre-requisites
Please ensure the following points are met before starting the upgrade process:
No Snapshot or Restore is running
The Global-Job-Scheduler is disabled
wlm-cron
is disabled on the Trilio ApplianceAccess to the Gemfury repository to fetch new packages \
Note: For single IP-based NFS share as a backup target refer to this rolling upgrade on the Ansible Openstack document. User needs to follow the Ansible Openstack installation document if having multiple IP-based NFS share
Deactivating the wlm-cron service
The following sets of commands will disable the wlm-cron
service and verify that it has been completely shut down.
Update the repositories
Deb-based (Ubuntu)
Add the Gemfury repository on each of the DMAPI containers, Horizon containers & Compute nodes.
Create a file /etc/apt/sources.list.d/fury.list
and add the below line to it.
The following commands can be used to verify the connection to the Gemfury repository and to check for available packages.
RPM-based (CentOS)
Add Trilio repo on each of the DMAPI containers, Horizon containers & Compute nodes.
Modify the file /etc/yum.repos.d/trilio.repo
and add the below line in it.
The following commands can be used to verify the connection to the Gemfury repository and to check for available packages.
Upgrade tvault-datamover-api package
The following steps represent the best practice procedure to upgrade the DMAPI service.
Login to DMAPI container
Take a backup of the DMAPI configuration in
/etc/dmapi/
use
apt list --upgradeable
to identify the package used for the dmapi serviceUpdate the DMAPI package
restore the backed-up config files into
/etc/dmapi/
Restart the DMAPI service
Check the status of the DMAPI service
These steps are done with the following commands. This example is assuming that the more common python3 packages are used.
Deb-based (Ubuntu)
RPM-based (CentOS)
Upgrade Horizon plugin
The following steps represent the best practice procedure to update the Horizon plugin.
Login to Horizon Container
use
apt list --upgradeable
to identify the package the Trilio packages for theworkloadmgrclient
,contegoclient
andtvault-horizon-plugin
Install the
tvault-horizon-plugin
package in the required python versionInstall the
workloadmgrclient
packageInstall the
contegoclient
Restart the Horizon webserver
Check the installed version of the
workloadmgrclient
These steps are done with the following commands. This example is assuming that the more common python3 packages are used.
Deb-based (Ubuntu)
RPM-based (CentOS)
Upgrade the tvault-contego service
The following steps represent the best practice procedure to update the tvault-contego
service on the compute nodes.
Login into the compute node
Take a backup of the config files at and
/etc/tvault-contego/
and/etc/tvault-object-store
(if S3)Unmount storage mount path
Upgrade the
tvault-contego
package in the required python version(S3 only) upgrade the
s3-fuse-plugin
packageRestore the config files
(S3 only) Restart the
tvault-object-store
serviceRestart the
tvault-contego
serviceCheck the status of the service(s)
These steps are done with the following commands. This example is assuming that the more common python3 packages are used.
NFS as Storage Backend
Take a backup of the config files
Check the mount path of the NFS storage using the command
df -h
and unmount the path usingumount
command. e.g.Upgrade the Trilio packages:
Deb-based (Ubuntu):
RPM-based (CentOS):
Restore the config files, restart the service and verify the mount point
S3 as Storage Backend
Take a backup of the config files
Check the mount path of the S3 storage using the command
df -h
and unmount the path usingumount
command.
Upgrade the Trilio packages
Deb-based (Ubuntu):
RPM-based (CentOS):
Restore the config files, restart the service and verify the mount point
Advance settings/configuration
Customize HAproxy cfg parameters for Trilio datamover api service
Following are the haproxy cfg parameters recommended for optimal performance of dmapi service. File location on controller /etc/haproxy/haproxy.cfg
If values were already updated during any of the previous releases, further steps can be skipped.
Parameters timeout client, timeout server, and balance for DMAPI service
Remove the below content, if present in the file/etc/openstack_deploy/user_variables.yml
on the ansible host.
Add the below lines at end of the file /etc/openstack_deploy/user_variables.yml
on the ansible host.
Update Haproxy configuration using the below command on the ansible host.
Enable mount-bind for NFS
T4O 4.2 has changed the calculation of the mount point. It is necessary to set up the mount-bind to make T4O 4.1 or older backups available for T4O 4.2
Please follow this documentation for detailed steps to set up mount bind.
Last updated