2021-05-19 06:46:49 -04:00
|
|
|
|
|
|
|
.. clv1558615616705
|
|
|
|
.. _uploading-and-applying-updates-to-systemcontroller-using-the-cli:
|
|
|
|
|
2022-08-18 06:34:53 -04:00
|
|
|
==========================================================
|
|
|
|
Upload and Apply Updates to SystemController Using the CLI
|
|
|
|
==========================================================
|
2021-05-19 06:46:49 -04:00
|
|
|
|
|
|
|
You can upload and apply updates to the SystemController in order to update the
|
|
|
|
central update repository, from the CLI using the standard update procedures
|
|
|
|
for |prod|. For |prod-dc|, you must include an additional |CLI| parameter.
|
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
|
|
|
If you prefer, you can use the Horizon Web interface. For more information, see
|
2023-08-18 01:17:41 +00:00
|
|
|
:ref:`uploading-and-applying-updates-to-systemcontroller-using-horizon`,
|
|
|
|
however the specific procedure for incrementally uploading and applying one or
|
|
|
|
more patches for the SystemController is provided below.
|
2021-05-19 06:46:49 -04:00
|
|
|
|
2022-08-18 06:34:53 -04:00
|
|
|
For standard |prod| updating procedures, see the |updates-doc|:
|
|
|
|
:ref:`software-updates-and-upgrades-software-updates` guide.
|
2021-05-19 06:46:49 -04:00
|
|
|
|
2023-02-28 14:02:05 +00:00
|
|
|
For SystemController of |prod-dc| (and the central update repository), you
|
2021-05-19 06:46:49 -04:00
|
|
|
must include the additional |CLI| parameter ``--os-region-name`` with the value
|
|
|
|
SystemController when using |CLI| :command:`sw-patch` commands.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
When adding a new subcloud, you only need to create and apply an update
|
|
|
|
strategy to apply all updates that were previously applied in the system
|
|
|
|
controller to the new subcloud.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
The following existing :command:`sw-patch` commands are not supported in
|
|
|
|
the System Controller region:
|
|
|
|
|
|
|
|
|
|
|
|
.. _uploading-and-applying-updates-to-systemcontroller-using-the-cli-ul-fvw-cj4-3jb:
|
|
|
|
|
|
|
|
- :command:`sw-patch query-hosts`
|
|
|
|
|
|
|
|
- :command:`sw-patch host-install`
|
|
|
|
|
|
|
|
- :command:`sw-patch host-install-async`
|
|
|
|
|
|
|
|
- :command:`sw-patch host-install-local`
|
|
|
|
|
|
|
|
- :command:`sw-patch drop-host`
|
|
|
|
|
|
|
|
.. rubric:: |proc|
|
|
|
|
|
|
|
|
.. _uploading-and-applying-updates-to-systemcontroller-using-the-cli-steps-scm-jkx-fdb:
|
|
|
|
|
2023-08-18 01:17:41 +00:00
|
|
|
|
2021-05-19 06:46:49 -04:00
|
|
|
#. Log in as the **sysadmin** user.
|
|
|
|
|
2022-08-18 06:34:53 -04:00
|
|
|
#. Copy all patches to be uploaded and applied to ``/home/sysadmin/patches/``.
|
2021-05-19 06:46:49 -04:00
|
|
|
|
2022-08-18 06:34:53 -04:00
|
|
|
#. Upload all patches placed in ``/home/sysadmin/patches/`` to the storage area.
|
2021-05-19 06:46:49 -04:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-patch upload-dir /home/sysadmin/patches --os-region-name SystemController
|
|
|
|
|
|
|
|
.. note::
|
2023-08-18 01:17:41 +00:00
|
|
|
|
2021-05-19 06:46:49 -04:00
|
|
|
You may receive a warning about the update already being imported. This
|
|
|
|
is expected and occurs if the update was uploaded locally to the system
|
|
|
|
controller. The warning will only occur for patches that were applied
|
2023-02-28 14:02:05 +00:00
|
|
|
to controller-0 (system controller) before it was first unlocked.
|
2021-05-19 06:46:49 -04:00
|
|
|
|
2023-08-18 01:17:41 +00:00
|
|
|
|
2021-05-19 06:46:49 -04:00
|
|
|
#. Confirm that the newly uploaded patches have a status of **available**.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-patch query --os-region-name SystemController
|
|
|
|
|
|
|
|
#. Apply all available updates in a single operation.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-patch apply --all --os-region-name SystemController
|
|
|
|
|
|
|
|
#. Confirm that the updates have been applied.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-patch query --os-region-name SystemController
|
|
|
|
|
2023-08-18 01:17:41 +00:00
|
|
|
#. To update the RegionOne, create the patch strategy using:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-manager patch-strategy create
|
|
|
|
|
|
|
|
#. Apply the patch strategy:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sw-manager patch-strategy apply
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
The system controller is not included in the |DC| patch orchestration
|
|
|
|
strategy anymore. You need to patch the system controller before using
|
|
|
|
|DC| orchestration to patch the subclouds.
|
|
|
|
|
2021-05-19 06:46:49 -04:00
|
|
|
.. rubric:: |postreq|
|
|
|
|
|
2023-08-18 01:17:41 +00:00
|
|
|
To update the software on the subclouds, you must use the |prod-dc| Update
|
|
|
|
Orchestration. For more information, see
|
|
|
|
:ref:`update-orchestration-of-central-clouds-regionone-and-subclouds`.
|