Image management#
Pipelines based#
The DeployImagePipeline resource is the workflow that is used to change image of the operating system on nodes, via an upgrade or downgrade. Starting from EDA 26.8.1, the Pipelines feature has been released and allows system administrators to create a PipelineDefinition.
For more information about pipelines, see Pipelines.
The DeployImagePipeline workflow bundles and sequences individual Transactions on which Pipelines will trigger (when matching an enabled PipelineDefinition).
You can use the DeployImagePipeline workflow to perform the following tasks:
- Reimage a single node, a list of nodes by name, a set of nodes using a label selector, or tranches of nodes, including support for canaries
- Any configurable set of pre and post checks are defined in the
PipelineDefinition
From EDA 26.8.1 onwards Pipelines-based image management is preferred, in a future release the workflow-based DeployImage workflow will be deprecated.
Caution
The OperatingSystem application ships with an example deployimage-pipeline with is disabled by default.
In order to use the example deployimage-pipeline, the system administrator should set the spec.enabled field to True.
When defining a custom PipelineDefinition that handles OS upgrades, the metadata.labels label eda.nokia.com/resourcetype: deployimage-pipeline-definition should be applied in the PipelineDefinition.
In the DeployImagePipeline resource, provide input for the following fields:
nodeProfile: set to the destinationNodeProfileresource.canaries:labelSelectorto match canary hosts (these nodes will be upgraded first).tranches:listoflabelSelectors, more informationnodeSelector:labelSelectorto match a group of nodes, more informationnodes:listof individual nodes.
The following settings are optional:
dryRun: Dry-run the Transaction, without actually deploying the image. This will not trigger anyPipelines
Workflow based#
The DeployImage resource is the workflow that is used to change image of the operating system on nodes, via an upgrade or downgrade. For more information about workflows, see Workflows.
You can use the DeployImage workflow to perform the following tasks:
- Reimage a single node, a list of nodes by name, a set of nodes using a label selector, or tranches of nodes, including support for canaries
- Perform a configurable set of pre and post checks to verify:
- that all interfaces are up with an option to use a label selector
- that all default BGP peers are up
- reachability on ISLs
- reachability between system addresses
In the DeployImage resource, provide the input for the following fields:
nodeProfile: set to the destinationNodeProfileresource.
The following settings are optional:
prompt: specifies when the workflow prompts an operator to continue. Set toAfterPreChecksorAfterPostChecks. These options can force a prompt even when checks pass.checks: a container that includes options for pre and post checks. You can set the following options:skip: indicates that checks should be skipped not run.force: indicates that checks should be run without prompts, even if checks fail.checks: lists the checks to run. If not provided, all checks are run. Valid checks areInterface,DefaultBGP,PingISL, andPingSystem.
Requirements for re-imaging nodes#
Before running an image workflow, ensure that deviations in the system, if any, have all been accepted or rejected.
Ensure that node groups and node users have the necessary privileges to perform the operations. For example, the GNOI/GNSI privilege is required to execute operational commands such as reboot.
Re-imaging failure#
If re-imaging fails, the workflow terminates with the appropriate reason. Operators are responsible for cleaning up any configuration created by the workflow, including the following recovery steps:
- Cleaning up drain policies created by the workflow.
- Removing any configlets created by the workflow.
- Reverting the node profile and setting the NPP mode if necessary.
Operators can attempt re-imaging by creating a new workflow.
Reimaging individual nodes #
You can reimage individual nodes using the DeployImagePipeline or DeployImage workflow or using the edactl tool.
Workflow resource for re-imaging specific nodes#
To reimage individual nodes using the DeployImagePipeline or DeployImage workflow, provide the following input:
nodes: set to the name of theTopoNodesto be reimagednodeProfile: set the Node Profile which contains the software image to use
Reimaging nodes using labels #
You can reimage nodes using the DeployImagePipeline or DeployImage workflow and applying labels to select TopoNodes or using the edactl tool.
Workflow resource for re-imaging nodes using a label selector#
To reimage a set of nodes using a label selector, provide the following input:
nodeSelectors: provide a list of label selectors to selectTopoNodes.nodeProfile: set the node profile which contains the software image to use
Using the edactl tool with a GVK workflow definition#
edactl workflow run operatingsystem-image-gvk workflow-fabric-upgrade-bylabel --bg -n eda type nodeselector nodeSelector[i] 0:maintenancenodes=fabric1 nodeProfile srlinux-24.10.3-201 version 24.10.3 checks.skip true drains.skip true
Reimaging node tranches #
To reimage sets of groups of nodes with an ordered list of label selectors, provide the following input:
tranches: set to a list ofnodeSelector, nesting the node selector typecanaries: optionally used with tranches; specify as a pre-tranche to be reimaged before all othersnodeProfile: set to the nodenodeProfileresource that contains the software image to use
Imaging proceeds as follows:
- Canaries are imaged first, executing any pre and post checks along with any waits. Assuming these operations succeed, the workflow continues.
- The tranche with index 0 is imaged next, following the same run-to-completion workflow.
- The tranche with the next index is imaged next; this step repeats until all tranches have been upgraded.
Workflow resource for re-imaging tranches of nodes#
Node imaging checks #
The DeployImage workflow supports the following checks during node imaging:
- Verifying that interlink switch interfaces are operational. This check gets any
Interfaceresource with the labeleda.nokia.com/role=interSwitchwhere the current node is a member. The list of up interfaces is stored for comparison later. - Verifying that BGP peers are up in the default network instance. As with interfaces, the list of up default BGP peers is stored for comparison later.
-
Verifying connectivity on every ISL. This check triggers the ping workflow to run, passing in
islas thepingType. -
Verifying connectivity between all system addresses of nodes. This triggers the ping workflow to run, passing in
systemas thepingType.
These checks are executed before an upgrade batch takes place, and after the upgrade batch completes. If any check fails, the administrator is prompted to continue, but only after completing the execution of each test. If an operator rejects continuing in post checks, the image reverts to its previous version.