2021-05-14 10:06:02 -04:00
|
|
|
|
|
|
|
.. utq1552920689344
|
|
|
|
.. _update-status-and-lifecycle:
|
|
|
|
|
|
|
|
===========================
|
|
|
|
Update Status and Lifecycle
|
|
|
|
===========================
|
|
|
|
|
|
|
|
|prod| software updates move through different status levels as the updates are
|
|
|
|
being applied.
|
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
2023-02-28 14:02:05 +00:00
|
|
|
After adding an update (patch) to the storage area you must move it to the
|
2021-05-14 10:06:02 -04:00
|
|
|
repository, which manages distribution for the cluster. From there, you can
|
|
|
|
install the updates to the hosts that require them.
|
|
|
|
|
|
|
|
Some of the available updates may be required on controller hosts only, while
|
|
|
|
others may be required on worker or storage hosts. Use :command:`sw-patch
|
2023-02-28 14:02:05 +00:00
|
|
|
query-hosts` to see which hosts are impacted by the newly applied (or
|
|
|
|
removed) updates. You can then use :command:`sw-patch host-install` to update
|
2021-05-14 10:06:02 -04:00
|
|
|
the software on individual hosts.
|
|
|
|
|
|
|
|
To keep track of software update installation, you can use the
|
|
|
|
:command:`sw-patch query` command.
|
|
|
|
|
|
|
|
.. parsed-literal::
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sudo sw-patch query
|
2022-08-18 14:14:14 -04:00
|
|
|
Patch ID Patch State
|
|
|
|
=========== ============
|
|
|
|
|pvr|-<nn>.<nn>_PATCH_0001 Applied
|
2021-05-14 10:06:02 -04:00
|
|
|
|
2022-08-18 14:14:14 -04:00
|
|
|
where <nn>.<nn> in the update filename is the |prod| release number.
|
2021-05-14 10:06:02 -04:00
|
|
|
|
2022-08-18 14:14:14 -04:00
|
|
|
This shows the 'Patch State' for each of the updates in the storage area:
|
2021-05-14 10:06:02 -04:00
|
|
|
|
2022-08-18 14:14:14 -04:00
|
|
|
``Available``
|
2021-05-14 10:06:02 -04:00
|
|
|
An update in the *Available* state has been added to the storage area, but
|
|
|
|
is not currently in the repository or installed on the hosts.
|
|
|
|
|
2022-08-18 14:14:14 -04:00
|
|
|
``Partial-Apply``
|
2021-05-14 10:06:02 -04:00
|
|
|
An update in the *Partial-Apply* state has been added to the software
|
|
|
|
updates repository using the :command:`sw-patch apply` command, but has not
|
|
|
|
been installed on all hosts that require it. It may have been installed on
|
|
|
|
some but not others, or it may not have been installed on any hosts. If any
|
2023-02-28 14:02:05 +00:00
|
|
|
reboot-required update is in a partial state (Partial-Apply or
|
|
|
|
Partial-Remove), you cannot update the software on any given host without
|
2021-05-14 10:06:02 -04:00
|
|
|
first locking it. If, for example, you had one reboot-required update and
|
|
|
|
one in-service update, both in a Partial-Apply state and both applicable to
|
|
|
|
node X, you cannot just install the non-reboot-required update to the
|
|
|
|
unlocked node X.
|
|
|
|
|
2022-08-18 14:14:14 -04:00
|
|
|
``Applied``
|
2021-05-14 10:06:02 -04:00
|
|
|
An update in the *Applied* state has been installed on all hosts that
|
|
|
|
require it.
|
|
|
|
|
|
|
|
You can use the :command:`sw-patch query-hosts` command to see which hosts are
|
2023-02-28 14:02:05 +00:00
|
|
|
fully updated (Patch Current). This also shows which hosts require
|
2021-05-14 10:06:02 -04:00
|
|
|
reboot, either because they are not fully updated, or because they are fully
|
|
|
|
updated but not yet rebooted.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
~(keystone_admin)]$ sudo sw-patch query-hosts
|
|
|
|
|
|
|
|
Hostname IP Address Patch Current Reboot Required Release State
|
|
|
|
============ ============== ============= =============== ======= =====
|
2022-03-16 15:41:09 -03:00
|
|
|
worker-0 192.168.204.95 Yes No nn.nn idle
|
|
|
|
worker-1 192.168.204.63 Yes No nn.nn idle
|
|
|
|
worker-2 192.168.204.99 Yes No nn.nn idle
|
|
|
|
worker-3 192.168.204.49 Yes No nn.nn idle
|
2021-06-14 15:02:19 -03:00
|
|
|
controller-0 192.168.204.3 Yes No nn.nn idle
|
|
|
|
controller-1 192.168.204.4 Yes No nn.nn idle
|
|
|
|
storage-0 192.168.204.37 Yes No nn.nn idle
|
|
|
|
storage-1 192.168.204.90 Yes No nn.nn idle
|