docs/doc/source/updates/kubernetes/rolling-back-a-software-upgrade-before-the-second-controller-upgrade.rst
Juanita-Balaraj c2d2312c1d Updated topics for more clarity
Updated Patchset 1 comments
Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com>
Change-Id: I5b1e3d4e79a328a9d3aa1c496873b98c516ab95f
Signed-off-by: Juanita-Balaraj <juanita.balaraj@windriver.com>
2021-11-10 17:26:58 -05:00

79 lines
2.2 KiB
ReStructuredText

.. wyr1593277734184
.. _rolling-back-a-software-upgrade-before-the-second-controller-upgrade:
=================================================================
Roll Back a Software Upgrade Before the Second Controller Upgrade
=================================================================
After the first controller is upgraded, you can still perform an in-service
abort of an upgrade before the second Controller \(controller-0 in the examples
of this procedure\) has been upgraded. The :command:`system upgrade-abort`
command can be run from the node that is updated with the latest release and
has upgraded successfully.
.. rubric:: |proc|
#. Abort the upgrade with the :command:`upgrade-abort` command.
.. code-block:: none
$ system upgrade-abort
The upgrade state is set to aborting. Once this is executed, there is no
canceling; the upgrade must be completely aborted.
The following states apply when you execute this command.
- aborting:
- State entered when :command:`system upgrade-abort` is executed
before upgrading controller-0.
- Remain in this state until the abort is completed.
#. Make controller-0 active.
.. code-block:: none
$ system host-swact controller-1
If controller-1 was active with the new upgrade release, swacting back to
controller-0 will switch back to using the previous release databases,
which were frozen at the time of the swact to controller-1. Any changes to
the system that were made while controller-1 was active will be lost.
#. Lock and downgrade controller-1.
.. code-block:: none
$ system host-lock controller-1
$ system host-downgrade controller-1
The host is re-installed with the previous release load.
.. note::
The downgrade process will take a minimum of 20 to 30 minutes to
complete.
You can view the downgrade progress on controller-1 using the
serial console.
#. Unlock controller-1.
.. code-block:: none
$ system host-unlock controller-1
#. Complete the upgrade.
.. code-block:: none
$ system upgrade-complete
#. Delete the newer upgrade release that has been aborted.
.. code-block:: none
$ system load-delete <loadID>