Apply an OS Update Policy#

OS Update Policy is an invntory resource that allows you to manage OS updates for edge nodes running either mutable or immutable operating systems.

Note

It must be associated with edge node instances to enable OS updates during scheduled maintenance windows, except when only updating existing mutable OS packages to their latest available versions listed in host details view - the Updates tab.

This section assumes you have provisioned and configured an edge node with an OS profile using a mutable or immutable image, such as Ubuntu OS 22.04 or the Edge Microvisor Toolkit OS. The procedure described here works for edge nodes provisioned and configured with both mutable and immutable operating systems, however during creation of the OS Update Policy, ensure to select the appropriate OS Type. Based on the selected OS Type, the relevant options will be enabled for update configuration.

OS Update Policy Types#

Two kinds of OS Update Policies are available:

  • a policy that updates to the latest available OS image version (Update to Latest) - supported only for the immutable OS.

  • a policy that updates to a specific OS image version (Update to Target) - supported for both mutable and immutable OSes.

OS Update Policy Fields#

The OS Update Policy contains the following fields:

  • Name - The name of the OS Update Policy.

  • Description - A description of the OS Update Policy.

  • OS Type - The type of operating system (mutable or immutable).

  • Update Policy - The type of update policy (UPDATE_POLICY_LATEST or UPDATE_POLICY_TARGET).

  • Update Kernel Command - (Optional) Kernel command-line parameters to be added during the update.

  • Update Packages - (Optional, mutable OS only) New Debian packages to be installed on the edge nodes as part of the update process.

  • APT Sources - (Optional, mutable OS only) New APT sources from which the new packages will be installed.

  • Target OS - (Immutable OS only, target update policy) The target OS image version to which the edge nodes will be updated.

Note

For immutable OS, updating the OS cannot be performed together with updating the kernel command; these require separate OS Update Policies and separately scheduled updates.

OS Update Policy Types Details#

For mutable OS updates the UPDATE_POLICY_TARGET OS Update Policy allows for:

  • updating only current installed packages to their latest available versions.

  • specifying new Debian packages to be installed on the edge nodes as part of the update process.

  • adding new APT sources from which the new packages will be installed.

  • updating kernel command-line parameters.

    Note

    For more information on how to install new packages and configure APT sources, see Install a New Debian* Package on Mutable OS.

For immutable OS updates the UPDATE_POLICY_TARGET OS Update Policy allows for:

  • specifying the target OS image version to which the edge nodes will be updated

  • updating kernel command-line parameters.

    Note

    For immutable OS, updating the OS cannot be performed together with updating the kernel command; these require separate OS Update Policies and separately scheduled updates.

For immutable OS updates, the UPDATE_POLICY_LATEST OS Update Policy allows for:

  • updating to the latest available OS image version.

Note

The UPDATE_POLICY_LATEST OS Update Policy is supported only for the immutable OS.

Associate the OS Update Policy with Hosts#

Within the Web UI, navigate to the Hosts page, open the desired Host details page, and select Updates tab. Here, set applied policy by selecting the created OS Update Policy from the OS Update Policy drop-down list. The newly added packages will be installed on all the edge nodes that are configured with the given OS Update Policy if a maintenance window is scheduled for that edge node.

OS Update Policy Association with Host

Scheduling an OS Update#

Upon successful creation and assignment of an OS Update Policy, a new update can be scheduled following the steps described in the Schedule Maintenance for Configured and Active Hosts section. Note that if no OS Update Policy is assigned to the host before the update is expected to start - the edge node update will not start, and no status change will be reported.

OS Update Policy Assignment Considerations#

An OS Update Policy that is assigned to a host, or has been used in any past update for an existing host, cannot be deleted. The Web UI does not support editing OS Update Policies. To change a policy, create a new OS Update Policy with the desired configuration and assign it to the host.