You can upgrade the VM nodes in an SBC SWe Cloud VNF to a new version of software using VNFM. Within VNFM, you specify the version of software to which you want to upgrade, select an upgrade method, and then upgrade the VM nodes beginning with the node that you determine currently has the standby role. To avoid service disruption you should only upgrade VM nodes when they are in standby mode. The following procedure supports upgrading an SBC N:1 HA deployment, which can include up to 5 VM instances. However the process is similar regardless of the number of nodes in the cluster.
Before initiating the upgrade make sure you:
show status system rgStatus
assignedRole
as standby.
Before and during the upgrade procedure, use the SBC CLI to check the status of the nodes you are upgrading:
show status system rgStatus
and check the output to:assignedRole
as standby
. This is the node to upgrade first.syncStatus
of all the currently active SBC VM(s) is syncCompleted
.syncStatus
of the current standby SBC VM is unprotectedRunningStandby
.The following is an example of the type of output that would appear in a 4:1 HA deployment:
> show status system rgStatus rgStatus vsbc1-192.168.2.3 { actualCeName vsbc1; assignedRole active; currentRole active; nodeId 1; serviceId 0; syncStatus syncCompleted; usingMetavarsOf vsbc1-192.168.2.3; appVersion V07.02.00; } rgStatus vsbc1-192.168.2.4 { actualCeName vsbc1; assignedRole standby; currentRole standby; nodeId 2; serviceId 1; syncStatus unprotectedRunningStandby; usingMetavarsOf vsbc1-192.168.2.4; appVersion V07.02.00; } rgStatus vsbc1-192.168.2.5 { actualCeName vsbc1; assignedRole active; currentRole active; nodeId 3; serviceId 2; syncStatus syncCompleted; usingMetavarsOf vsbc1-192.168.2.5; appVersion V07.02.00; } rgStatus vsbc1-192.168.2.6 { actualCeName vsbc1; assignedRole active; currentRole active; nodeId 4; serviceId 3; syncStatus syncCompleted; usingMetavarsOf vsbc1-192.168.2.6; appVersion V07.02.00; } rgStatus vsbc1-192.168.2.7 { actualCeName vsbc1; assignedRole active; currentRole active; nodeId 5; serviceId 4; syncStatus syncCompleted; usingMetavarsOf vsbc1-192.168.2.7; appVersion V07.02.00; }
Throughout the upgrade process, maintain a CLI session in one of the VMs to monitor rgStatus
. When it is time to upgrade the VM where you are monitoring rgStatus
, start a CLI session in an upgraded VM to continue monitoring rgStatus
. While upgrading it is also helpful to keep track of which node is the leader node for the cluster by issuing the command: show table system loadBalancingService leaderStatus
The command output lists all of the active nodes in the cluster and the leader node is the first node listed, for example:
> show table system loadBalancingService leaderStatus LEADER LEADER ID IPADDRESS STATE -------------------------- 0 192.168.10.6 completed 1 192.168.10.10 completed [ok][2018-11-15 21:52:51]
The upgrade procedure on VNFM occurs in two phases: specifying the software version at the VNF level followed by upgrading the individual VM nodes.
Complete the following steps to specify to which version of software you want to upgrade the VM nodes within the VNF. Be aware that all nodes must be in "Available" status when you begin this process or the option to upgrade will not be available.
Click VNF Status in the left pane of VNFM to open the VNF Status window where a list of deployed VNFs appears.
In the Select Action list adjacent to the VNF you want to upgrade, select Upgrade. An Upgrade VNF window opens.
Complete the following steps to upgrade the VM nodes, beginning with the standby node.
sbxstop
In the Select Action list adjacent to the VM node you are upgrading, select UPGRADE. The Upgrade VM window opens.
Select one of the Upgrade options: Rebuild or Recreate_reuse. Refer to the following figure for descriptions of each option. Note that if the VM has an attached Cinder boot volume, the Rebuild option is not offered, you must use Recreate_reuse.
Click Upgrade VM. VNFM initiates the upgrade and the status of the VM appears as "Upgrade in Progress."
syncStatus
field in the output of the rgStatus command
to ensure that all the currently active instances are in the syncCompleted
state. The standby instance displays syncStatus
as unprotectedRunningStandby
. After each node is upgraded, its status changes to "Upgraded." After the last node in the VNF is upgraded, the status of the active node(s) changes to "Available." The status of the standby node changes to "Maintenance" for a short time before it comes into service and then it also becomes "Available."
You can then return to the VNF Status window where the status for the VNF as a whole changes to "Ready."
To verify that the nodes instances are up and running with the upgraded software version:
show status system rgStatus
In the output, check that the value for syncStatus
for the currently active instance is syncCompleted
. The value for the standby instance should appear as unprotectedRunningStandby
.