You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operator-nexus/howto-baremetal-functions.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ This command will `power-off` the specified `bareMetalMachineName`.
48
48
```azurecli
49
49
az networkcloud baremetalmachine power-off \
50
50
--name "bareMetalMachineName" \
51
-
--resource-group "cluster_MRG"
51
+
--resource-group "cluster_MRG" \
52
+
--subscription "subscription_ID"
52
53
```
53
54
54
55
## Start the BMM
@@ -58,7 +59,8 @@ This command will `start` the specified `bareMetalMachineName`.
58
59
```azurecli
59
60
az networkcloud baremetalmachine start \
60
61
--name "bareMetalMachineName" \
61
-
--resource-group "cluster_MRG"
62
+
--resource-group "cluster_MRG" \
63
+
--subscription "subscription_ID"
62
64
```
63
65
64
66
## Restart the BMM
@@ -68,24 +70,27 @@ This command will `restart` the specified `bareMetalMachineName`.
68
70
```azurecli
69
71
az networkcloud baremetalmachine restart \
70
72
--name "bareMetalMachineName" \
71
-
--resource-group "cluster_MRG"
73
+
--resource-group "cluster_MRG" \
74
+
--subscription "subscription_ID"
72
75
```
73
76
74
77
## Make a BMM unschedulable (cordon)
78
+
#***(PLACEHOLDER: We need to explain how a customer can identify if workloads are currently running on a BMM and the az cli command used to get this information. Ask NAKS team to provide.)***\
75
79
76
80
You can make a BMM unschedulable by executing the [`cordon`](#make-a-bmm-unschedulable-cordon) command.
77
81
On the execution of the `cordon` command,
78
82
Operator Nexus workloads aren't scheduled on the BMM when cordon is set; any attempt to create a workload on a `cordoned`
79
83
BMM results in the workload being set to `pending` state. Existing workloads continue to run.
80
84
The cordon command supports an `evacuate` parameter with the default `False` value.
81
-
On executing the `cordon` command, with the value `True` for the `evacuate`
85
+
It is a best practice to set this to `True`. On executing the `cordon` command, with the value `True` for the `evacuate`
82
86
parameter, the workloads that are running on the BMM are `stopped` and the BMM is set to `pending` state.
83
87
84
88
```azurecli
85
89
az networkcloud baremetalmachine cordon \
86
90
--evacuate "True" \
87
91
--name "bareMetalMachineName" \
88
-
--resource-group "cluster_MRG"
92
+
--resource-group "cluster_MRG" \
93
+
--subscription "subscription_ID"
89
94
```
90
95
91
96
The `evacuate "True"` removes workloads from that node while `evacuate "False"` only prevents the scheduling of new workloads.
@@ -98,7 +103,8 @@ state on the BMM are `restarted` when the BMM is `uncordoned`.
98
103
```azurecli
99
104
az networkcloud baremetalmachine uncordon \
100
105
--name "bareMetalMachineName" \
101
-
--resource-group "cluster_MRG"
106
+
--resource-group "cluster_MRG" \
107
+
--subscription "subscription_ID"
102
108
```
103
109
104
110
## Reimage a BMM
@@ -115,7 +121,8 @@ command, with `evacuate "True"`, before executing the `reimage` command.
115
121
```azurecli
116
122
az networkcloud baremetalmachine reimage \
117
123
–-name "bareMetalMachineName" \
118
-
--resource-group "cluster_MRG"
124
+
--resource-group "cluster_MRG" \
125
+
--subscription "subscription_ID"
119
126
```
120
127
121
128
## Replace BMM
@@ -131,9 +138,10 @@ Use the `replace` command when a server encounters hardware issues requiring a c
0 commit comments