|
9 | 9 | You can apply changes to the node network configuration across your entire cluster by applying a node network configuration policy. |
10 | 10 | If you apply an incorrect configuration, you can use the following example to troubleshoot and correct the failed node network policy. |
11 | 11 |
|
12 | | -In this example, a Linux bridge policy is applied to an example cluster that has three master nodes and three worker nodes. |
| 12 | +In this example, a Linux bridge policy is applied to an example cluster that has three control plane nodes (master) and three compute (worker) nodes. |
13 | 13 | The policy fails to be applied because it references an incorrect interface. |
14 | 14 | To find the error, investigate the available NMState resources. You can then update the policy with the correct configuration. |
15 | 15 |
|
@@ -83,19 +83,19 @@ The output shows that the policy failed on all nodes: |
83 | 83 | [source,terminal] |
84 | 84 | ---- |
85 | 85 | NAME STATUS |
86 | | -master-1.ens01-bridge-testfail FailedToConfigure |
87 | | -master-2.ens01-bridge-testfail FailedToConfigure |
88 | | -master-3.ens01-bridge-testfail FailedToConfigure |
89 | | -worker-1.ens01-bridge-testfail FailedToConfigure |
90 | | -worker-2.ens01-bridge-testfail FailedToConfigure |
91 | | -worker-3.ens01-bridge-testfail FailedToConfigure |
| 86 | +control-plane-1.ens01-bridge-testfail FailedToConfigure |
| 87 | +control-plane-2.ens01-bridge-testfail FailedToConfigure |
| 88 | +control-plane-3.ens01-bridge-testfail FailedToConfigure |
| 89 | +compute-1.ens01-bridge-testfail FailedToConfigure |
| 90 | +compute-2.ens01-bridge-testfail FailedToConfigure |
| 91 | +compute-3.ens01-bridge-testfail FailedToConfigure |
92 | 92 | ---- |
93 | 93 |
|
94 | 94 | . View one of the failed enactments and look at the traceback. The following command uses the output tool `jsonpath` to filter the output: |
95 | 95 | + |
96 | 96 | [source,terminal] |
97 | 97 | ---- |
98 | | -$ oc get nnce worker-1.ens01-bridge-testfail -o jsonpath='{.status.conditions[?(@.type=="Failing")].message}' |
| 98 | +$ oc get nnce compute-1.ens01-bridge-testfail -o jsonpath='{.status.conditions[?(@.type=="Failing")].message}' |
99 | 99 | ---- |
100 | 100 | + |
101 | 101 | This command returns a large traceback that has been edited for brevity: |
@@ -188,10 +188,10 @@ difference |
188 | 188 | + |
189 | 189 | The `NmstateVerificationError` lists the `desired` policy configuration, the `current` configuration of the policy on the node, and the `difference` highlighting the parameters that do not match. In this example, the `port` is included in the `difference`, which suggests that the problem is the port configuration in the policy. |
190 | 190 |
|
191 | | -. To ensure that the policy is configured properly, view the network configuration for one or all of the nodes by requesting the `NodeNetworkState` object. The following command returns the network configuration for the `master-1` node: |
| 191 | +. To ensure that the policy is configured properly, view the network configuration for one or all of the nodes by requesting the `NodeNetworkState` object. The following command returns the network configuration for the `control-plane-1` node: |
192 | 192 | + |
193 | 193 | ---- |
194 | | -$ oc get nns master-1 -o yaml |
| 194 | +$ oc get nns control-plane-1 -o yaml |
195 | 195 | ---- |
196 | 196 | + |
197 | 197 | The output shows that the interface name on the nodes is `ens1` but the failed policy incorrectly uses `ens01`: |
|
0 commit comments