Upgrading to Contrail Service Orchestration Release 3.3
From Contrail Service Orchestration (CSO) Release 3.3, you can directly upgrade the CSO software from Release 3.2.1 by running scripts.
This upgrade procedure is independent of the deployment type (trial and production), environment type (non-HA and HA), infrastructure components and microservices used, and the hypervisor type (KVM or VMware ESXi).
Before you begin the upgrade:
Ensure that you are in Contrail Service Orchestration (CSO) Release 3.2.1.
Ensure the installer Virtual Machine (VM) is up and running.
If you are using VMware ESXi VMs, you must create the
provision_vm.conf
file in theContrail_Service_Orchestration_3.3/confs/
directory.For example, for a trial environment with HA, you can refer to the
provision_vm.conf
that is available in theContrail_Service_Orchestration_3.3/confs/trial/ha/provisionvm/
.If you have created a device template by cloning an existing device template, you must specify the new device template name in the
customer_migration.json
file, and place the file in the/path/Contrail_Service_Orchestration_3.3/ micro_services/data/
location.For example, in the following
customer_migration.json
file, you must specify the new device template name in new-device-template-name.{ "device-profile": [{ "cloned_profile": "new-device-template-name", #Specify the new device template name. "from_profile": "SRX_Advanced_SDWAN_CPE_option_1" #Name of the device template before cloning. },{ "cloned_profile": "new-device-template-nameP", "from_profile": "SRX_Advanced_SDWAN_HUB_option_1" },{ "cloned_profile": "new-device-template-name", "from_profile": "NFX_Advanced_SDWAN_CPE_option_1" }] }
To upgrade to CSO Release 3.3:
- Download the CSO Release 3.3 installer package from the Software Downloads page to the local drive.
- Login to the installer VM as root.
- Copy the installer package from your local folder to the
installer VM.
root@host:~/# scp Contrail_Service_Orchestration_3.3.tar.gz root@installer VM :/root
- On the installer VM, extract the installer package.
For example, if the name of the installer package is Contrail_Service_Orchestration_3.3.tar.gz,
root@host:~/# tar –xvzf Contrail_Service_Orchestration_3.3.tar.gz
The contents of the installer package are extracted in a directory with the same name as the installer package.
- Navigate to the CSO Release 3.3 directory in the installer
VM.
root@host:~/# cd Contrail_Service_Orchestration_3.3
root@host:~/Contrail_Service_Orchestration_3.3#
(Optional) You can view the list of files in the Contrail_Service_Orchestration_3.3.
root@host:~/Contrail_Service_Orchestration_3.3# ls
The Contrail_Service_Orchestration_3.3.tar.tz file includes the following scripts:
upgrade.sh
revert.sh
- Run the upgrade.sh script.
Warning Before you upgrade ensure that all ongoing jobs in Administration Portal and Customer Portal are stopped; otherwise during the upgrade the ongoing jobs are stopped. During the upgrade, you experience a downtime as CSO goes into maintenance mode.
This script upgrades CSO software from Release 3.2.1 to Release 3.3. The upgrade.sh script puts CSO in maintenance mode, takes a snapshot of running status of all VMs (optional), upgrades all microservices and infrastructure components if required, performs health checks at various levels, validates if all VMs, infrastructure components, and microservices are up and running, and puts the CSO in live mode.
If the environment type is production, the upgrade.sh script takes a snapshot of all VMs by default. For trial environment you are prompted to confirm whether you want to take a snapshot.
Note The script does not take a snapshot of installer VM and Virtual Route Reflector (VRR) VM.
root@host:~/Contrail_Service_Orchestration_3.3# ./upgrade.sh
INFO =============================================== INFO Overall Upgrade Summary INFO =============================================== INFO Configuration Upgrade : success INFO System Health Check : success INFO CSO Health-Check before Upgrade : success INFO CSO Maintenance Mode Enabled : success INFO VM Snapshot : success INFO Central Infra Upgrade : success INFO Regional Infra Upgrade : success INFO Microservices pre-deploy scripts execution : success INFO Central Microservices Upgrade : success INFO Regional Microservices upgrade : success INFO Microservices post-deploy scripts execution : success INFO CSO Health-Check after Upgrade : success INFO Enable CSO Services : success INFO Load Microservices Data : success INFO Overall Upgrade Status : success INFO ============================================ INFO System got upgraded to 3.3 Successfully. INFO =============================================
Note The password for each infrastructure component and the Administration Portal password are displayed on the console after the upgrade is successful. You must note the password that is displayed on the console as they are not saved in the system. To enhance the password security, the length and pattern for each password is different and the password is encrypted, and passwords in the log file are masked.
The time taken to complete the upgrade process depends on the hypervisor type and the environment type. If you are using KVM as the hypervisor, while taking a snapshot all VMs are shut down. If you are using VMware ESXi as the hypervisor, while taking a snapshot all VMs are up and running.
If an error occurs, you must fix the error and rerun the upgrade.sh script. When you rerun the upgrade.sh script, the script continues to execute from the previously failed step.
You can view the following log files that are available at
root/Contrail_Service_Orchestration_3.3/logs
:upgrade_console.log
upgrade_error.log
upgrade.log
- (Optional) If you are unable to troubleshoot the error
you can roll back to your previous release. Run the revert.sh script.
root@host:~/Contrail_Service_Orchestration_3.3# ./revert.sh
INFO =============================================== INFO Overall Revert Summary INFO =============================================== INFO Pre-revert processes: success INFO Revert VM Snapshot: success INFO Revert Salt Master Configuration: success INFO Post-revert processes: success INFO CSO Health-Check after Revert: success INFO Start Kubernet Pods: success INFO Enable CSO Services: success INFO ============================================ INFO CSO successfully reverted to the previously installed version INFO ===============================================
After a successful upgrade, CSO is functional and you can login to Administrator Portal and Customer Portal.
After you successfully upgrade from CSO Release 3.2.1 to Contrail Service Orchestration (CSO) Release 3.3, ensure that you download the application signatures before installing signatures on the device. This is a one-time operation after the upgrade.