Upgrading VNF Software
ESC supports upgrading the initial or base image in a deployment. The ESC policy framework provides custom scripts to upgrade the software for new and existing VMs. Incremental updates are supported for the VMs, provided the ESC policy frameworks are up-to-date.
Upgrading Existing VMs—The following ESC policy framework triggers script for upgrading existing VMs already deployed before the software version update.
Upgrading New VMs—The following ESC policy framework triggers script for upgrading new VMs when deployed, being recovered, or when scaling out.
For information on VNF Upgrade with Volume, see Upgrading VNF Software with Volume.
Updating VNF Software Version and triggering Software Upgrade
The scenario explains the procedure to trigger a software upgrade using the custom script. A CSR VM is upgraded in the example
below. The service update using the
csr_dep2.xml triggers the custom script action LCS::DEPLOY_UPDATE::POST_VM_SOFTWARE_VERSION_UPDATED. The LCS first disables monitoring
of that VM, and then calls the
csr_upgrade.exp script. The script connects to the CSR, scp's the specified upgrade .bin to the boot flash of the CSR, points the boot loader
to that new bin file, and reboots the CSR VM. It then resets the bootup_time and enables monitoring. The bootup_time allows
the CSR to finish rebooting without being redeployed by ESC.
Deploy the ESC VM.
Upload the Day 0 configuration to the ESC VM as /var/tmp/csp-csr-day0-config.
Upload the custom upgrade script to the ESC VM. For example, upload csr_upgrade.exp script to the ESC VM as /var/tmp/csr_upgrade.exp.
Execute chmod +x /var/tmp/csr_upgrade.exp.
Edit the initial deployment data model, for example dep.xml to include relevant IPs, username, password, and the upgrade version of the CSR.
Edit the deployment data model's (dep.xml's) software version to reflect the upgraded CSR version.
Upload the CSR upgrade to the home directory of the ESC user.
Upgrade the deployed CSR VM. Run the command: