Skip to content

Commit cc5733f

Browse files
authored
Create howto-cluster-runtime-upgrade-with-pauseafterrack-strategy.md
1 parent 74bdc2c commit cc5733f

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
title: "Azure Operator Nexus: Runtime upgrade with PauseAfterRack strategy"
3+
description: Learn to execute a cluster runtime upgrade for Operator Nexus with a PauseAfterRack strategy
4+
author: bartpinto
5+
ms.author: bpinto
6+
ms.service: azure-operator-nexus
7+
ms.topic: how-to
8+
ms.date: 02/25/2025
9+
# ms.custom: template-include
10+
---
11+
# Upgrading cluster runtime with a `PauseAfterRack` strategy
12+
13+
Executing cluster runtime upgrade with `PauseAfterRack` strategy will pause to wait for user confirmation before upgrading the next rack of worker nodes. All existing thresholds will still be honored.
14+
15+
## Prerequisites
16+
17+
> [!NOTE]
18+
> Upgrades with the PauseAfterRack strategy is available starting API version 2024-07-01.
19+
20+
1. Install the latest version of the [appropriate CLI extensions](howto-install-cli-extensions.md).
21+
1. The latest `networkcloud` CLI extension is required. It can be installed following the steps listed [here](./howto-install-cli-extensions.md).
22+
1. Subscription access to run the Azure Operator Nexus network fabric (NF) and network cloud (NC) CLI extension commands.
23+
1. Collect the following information:
24+
- Subscription ID (`SUBSCRIPTION`)
25+
- Cluster name (`CLUSTER`)
26+
- Resource group (`CLUSTER_RG`)
27+
1. Target cluster must be healthy in a running state, with all control plane nodes healthy.
28+
29+
## Procedure
30+
31+
1. Enable `PauseAfterRack` upgrade strategy on a Nexus cluster
32+
33+
```azurecli
34+
az networkcloud cluster update --name "<CLUSTER>" \
35+
--resource-group "<CLUSTER_RG>" \
36+
--update-strategy strategy-type="PauseAfterRack" wait-time-minutes=0 \
37+
--subscription "<SUBSCRIPTION>"
38+
```
39+
40+
2. Confirm that the cluster resource JSON in the JSON View reflects the `PauseAfterRack` upgrade strategy.
41+
42+
```azurecli
43+
az networkcloud cluster show --cluster-name "<CLUSTER>" \
44+
--resource-group "<CLUSTER_RG>" \
45+
--subscription "<SUBSCRIPTION>" | grep -A5 updateStrategy
46+
47+
"updateStrategy": {
48+
"maxUnavailable": 32767,
49+
"strategyType": "PauseAfterRack",
50+
"thresholdType": "PercentSuccess",
51+
"thresholdValue": 70,
52+
"waitTimeMinutes": 15,
53+
```
54+
55+
3. Trigger runtime bundle upgrade as usual from Azure portal / CLI. For reference [Upgrading cluster runtime from Azure CLI](./howto-cluster-runtime-upgrade.md)
56+
57+
4. Once the control plane and management plane upgrades complete, the runtime upgrade will be paused, awaiting user action to resume the upgrade for Rack 2.
58+
59+
:::image type="content" source="media/runtime-upgrade-cluster-paused.png" alt-text="Screenshot showing Paused Runtime Upgrade.":::
60+
61+
> [!NOTE]
62+
> This message will be available in logs for programmatic access, for more details follow [List of logs available for streaming in Azure Operator Nexus](list-logs-available.md)
63+
64+
5. To resume the runtime upgrade, execute the following `az networkcloud` cli command.
65+
66+
```azurecli
67+
az networkcloud cluster continue-update-version --cluster-name "<CLUSTER>" \
68+
--resource-group="<CLUSTER_RG>" \
69+
--subscription="<SUBSCRIPTION>"
70+
```
71+
72+
6. Repeat step 5 for each rack until all racks have been upgraded to the latest runtime bundle.
73+
74+
## Related content
75+
76+
- [Upgrading cluster runtime from Azure CLI](./howto-cluster-runtime-upgrade.md)

0 commit comments

Comments
 (0)