Performing a software upgrade
You use the fss-upgrade.sh script to perform the software upgrade
steps. The command syntax is as
follows:
[root@fss-deployer ~]# /root/bin/fss-upgrade.sh
Usage: /root/bin/fss-upgrade.sh configure <config-file> - Reads config file and configures accordingly.
./bin/fss-upgrade.sh discover - Discovers cluster.
./bin/fss-upgrade.sh upgrade - Upgrades FSS application.
./bin/fss-upgrade.sh status - Prints status of cluster and FSS Chart information.
./bin/fss-upgrade.sh clean - Cleans temporary files.
./bin/fss-upgrade.sh [help | -h] - Prints usage.
This script updates the entire Fabric Services System application using the new Helm charts.
-
Update the configuration.
In the following example, the input configuration file is customer-input.json.
[root@fss-deployer ~]# /root/bin/fss-upgrade.sh configure customer-input.json Timesync service is running on 192.168.59.195 Time difference is 0 seconds Timesync service is running on 192.168.59.129 Time difference is 0 seconds Timesync service is running on 192.168.59.127 Time difference is 0 seconds Timesync service is running on 192.168.59.201 Time difference is 0 seconds Timesync service is running on 192.168.59.183 Time difference is 0 seconds Timesync service is running on 192.168.59.190 Time difference is 0 seconds Maximum time difference between nodes 0 seconds Successfully configured. Please run /root/bin/fss-upgrade.sh upgrade
Note: Do not execute the fss-upgrade.sh upgrade command as indicated in the output. Continue with Step 2. -
Discover the cluster.
[root@fss-deployer ~]# /root/bin/fss-upgrade.sh discover Trying to discover 192.168.59.195 Trying to discover 192.168.59.129 Trying to discover 192.168.59.127 NAME STATUS ROLES AGE VERSION fss-compute-01 Ready control-plane,master 21m v1.23.1 fss-compute-02 Ready control-plane,master 21m v1.23.1 fss-compute-03 Ready control-plane,master 21m v1.23.1 fss-compute-04 Ready <none> 20m v1.23.1 fss-compute-05 Ready <none> 20m v1.23.1 fss-compute-06 Ready <none> 20m v1.23.1 FSS release discovered fss-FSS_22_8_B1-charts-v22.8.2-6
-
Upgrade the Fabric Services System application.
[root@fss-deployer ~]# /root/bin/fss-upgrade.sh upgrade NAME STATUS ROLES AGE VERSION fss-compute-01 Ready control-plane,master 21m v1.23.1 fss-compute-02 Ready control-plane,master 21m v1.23.1 fss-compute-03 Ready control-plane,master 21m v1.23.1 fss-compute-04 Ready <none> 20m v1.23.1 fss-compute-05 Ready <none> 20m v1.23.1 fss-compute-06 Ready <none> 20m v1.23.1 FSS will be upgraded from fss-FSS_22_8_B1-charts-v22.8.2-6 to fss-FSS_22_12_B1-charts v22.12.1-14 : Are you sure [YyNn]? y Upgrade in progress... W1208 05:20:03.982626 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:03.991013 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.000377 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.007284 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.015925 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.041830 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.048555 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.055468 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W1208 05:20:04.070000 5196 warnings.go:67] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget Release "prod" has been upgraded. Happy Helming! NAME: prod LAST DEPLOYED: Thu Dec 8 05:20:00 2022 NAMESPACE: default STATUS: deployed REVISION: 2 NOTES: Checking for FSS pods Waiting for default cp-zookeeper 3 Running Waiting for FSS pods to comeup Waiting for default cp-zookeeper 3 Running Waiting for FSS pods to comeup Waiting for default cp-zookeeper 3 Running Waiting for FSS pods to comeup Waiting for default fss-auth 1 Running Waiting for FSS pods to comeup Waiting for default fss-auth 1 Running Waiting for FSS pods to comeup All FSS pods are running Checking for FSS digitalsandbox pods FSS digital sandbox pods are running Checking for digitalsandbox pods Digital sandbox pods are running FSS is ready, you can access FSS using https://myhost.mydomain.com
-
Verify that the upgrade is successful.
-
Restore previously added software catalog images.
The upgrade procedure replaces the software catalog. Changes that you made to the software catalog are lost after the upgrade. If you previously added new SR Linus images to the software catalog, you need to modify the software catalog and then upload the SR Linux images. For instructions, see Adding a new software catalog in the Fabric Services System User Guide. You need to complete this step before you can access the Fabric Services System to make any change.