
Some substitutions also added to accomodate StX vs partner file naming. Add 750.006 alarm to performing-an-orchestrated-upgrade Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: I33588f3c1b22cd0dbc96133cf8eb056c8c2e5162 Signed-off-by: Ron Stone <ronald.stone@windriver.com>
4.7 KiB
Install In-Service Software Updates Using the CLI
The procedure for applying an in-service update is similar to that of a reboot-required update, except that the host does not need to be locked and unlocked as part of applying the update.
Upload the update (patch).
$ sudo sw-patch upload INSVC_HORIZON_SYSINV.patch INSVC_HORIZON_SYSINV is now available
Confirm that the update is available.
$ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= =========== INSVC_HORIZON_SYSINV N 20.04 Available
Check the status of the hosts.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 Yes No 20.01 idle controller-0 192.168.204.3 Yes No 20.01 idle controller-1 192.168.204.4 Yes No 20.01 idle
Ensure the original update files have been deleted from the root drive.
After they are uploaded to the storage area, the original files are no longer required. You must use the command-line interface to delete them, in order to ensure enough disk space to complete the installation.
$ rm </path/patchfile>
Caution
If the original files are not deleted before the updates are applied, the installation may fail due to a full disk.
Apply the update (patch).
$ sudo sw-patch apply INSVC_HORIZON_SYSINV INSVC_HORIZON_SYSINV is now in the repo
The update state transitions to Partial-Apply:
$ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= ============= INSVC_HORIZON_SYSINV N 20.04 Partial-Apply
As it is an in-service update, the hosts report that they are not 'patch current', but they do not require a reboot.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 No No 20.04 idle controller-0 192.168.204.3 No No 20.04 idle controller-1 192.168.204.4 No No 20.04 idle
Install the update on controller-0.
$ sudo sw-patch host-install controller-0 ............. Installation was successful.
Query the hosts to check status.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 No No 20.01 idle controller-0 192.168.204.3 Yes No 20.01 idle controller-1 192.168.204.4 No No 20.01 idle
The controller-1 host reports it is now 'patch current' and does not require a reboot, without having been locked or rebooted
Install the update on worker-0 (and other worker nodes and storage nodes, if present)
$ sudo sw-patch host-install worker-0 .... Installation was successful.
You can query the hosts to confirm that all nodes are now 'patch current', and that the update has transitioned to the Applied state.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 Yes No 20.04 idle controller-0 192.168.204.3 Yes No 20.04 idle controller-1 192.168.204.4 Yes No 20.04 idle $ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= =========== INSVC_HORIZON_SYSINV N 20.04 Applied