docs/doc/source/dist_cloud/kubernetes/uploading-and-applying-updates-to-systemcontroller-using-the-cli.rst
Ron Stone d7a2a00182 Dist. Cloud edits (r6, dsr6)
Copy edits for typos, markup and other technical issues.
Fix label in :ref:
Fix gerund mismatch.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ie6dd03f0af3ff9d7ace7efe0f61479dfee7dc1ba
2022-08-31 20:15:47 +00:00

3.3 KiB

Upload and Apply Updates to SystemController Using the CLI

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 . For , you must include an additional parameter.

If you prefer, you can use the Horizon Web interface. For more information, see Uploading and Applying Updates to SystemController Using Horizon <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.

For standard updating procedures, see the : software-updates-and-upgrades-software-updates guide.

For SystemController of (and the central update repository), you must include the additional parameter --os-region-name with the value SystemController when using 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 sw-patch commands are not supported in the System Controller region:

  • sw-patch query-hosts
  • sw-patch host-install
  • sw-patch host-install-async
  • sw-patch host-install-local
  • sw-patch drop-host

  1. Log in as the sysadmin user.

  2. Copy all patches to be uploaded and applied to /home/sysadmin/patches/.

  3. Upload all patches placed in /home/sysadmin/patches/ to the storage area.

    ~(keystone_admin)]$ sw-patch upload-dir /home/sysadmin/patches --os-region-name SystemController

    Note

    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 to controller-0 (system controller) before it was first unlocked.

  4. Confirm that the newly uploaded patches have a status of available.

    ~(keystone_admin)]$ sw-patch query --os-region-name SystemController
  5. Apply all available updates in a single operation.

    ~(keystone_admin)]$ sw-patch apply --all --os-region-name SystemController
  6. Confirm that the updates have been applied.

    ~(keystone_admin)]$ sw-patch query --os-region-name SystemController

To update the software on the System Controller and subclouds, you must use the Update Orchestration. For more information, see Update Orchestration of Central Cloud's RegionOne and Subclouds <update-orchestration-of-central-clouds-regionone-and-subclouds>.