Skip to content

Commit 3179794

Browse files
author
Steven Smith
committed
ADV errro resolution for MNW
1 parent 2a6513b commit 3179794

File tree

9 files changed

+83
-71
lines changed

9 files changed

+83
-71
lines changed

modules/nw-multus-add-pod.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ endif::sriov[]
6060
6161
. Add an annotation to the `Pod` object. Only one of the following annotation formats can be used:
6262
+
63-
.. To attach a secondary network without any customization, add an annotation with the following format. Replace `<network>` with the name of the secondary network to associate with the pod:
63+
.. To attach a secondary network without any customization, add an annotation with the following format:
6464
+
6565
[source,yaml]
6666
----
@@ -71,7 +71,7 @@ metadata:
7171
+
7272
where:
7373
+
74-
`k8s.v1.cni.cncf.io/networks`:: To specify more than one secondary network, separate each network with a comma. Do not include whitespace between the comma. If you specify the same secondary network multiple times, that pod will have multiple network interfaces attached to that network.
74+
`k8s.v1.cni.cncf.io/networks`:: Specifies the name of the secondary network to associate with the pod. To specify more than one secondary network, separate each network with a comma. Do not include whitespace between the comma. If you specify the same secondary network multiple times, that pod will have multiple network interfaces attached to that network.
7575
+
7676
.. To attach a secondary network with customizations, add an annotation with the following format:
7777
+
@@ -91,18 +91,20 @@ metadata:
9191
+
9292
where:
9393
+
94-
`name`:: Specify the name of the secondary network defined by a `NetworkAttachmentDefinition` object.
95-
`namespace`:: Specify the namespace where the `NetworkAttachmentDefinition` object is defined.
96-
`default-route`:: Optional parameter. Specify an override for the default route, such as `192.168.17.1`.
94+
`name`:: Specifies the name of the secondary network defined by a `NetworkAttachmentDefinition` object.
95+
`namespace`:: Specifies the namespace where the `NetworkAttachmentDefinition` object is defined.
96+
`default-route`:: Optional parameter. Specifies an override for the default route, such as `192.168.17.1`.
9797
98-
. To create the pod, enter the following command. Replace `<name>` with the name of the pod.
98+
. Create the pod by entering the following command.
9999
+
100100
[source,terminal]
101101
----
102102
$ oc create -f <name>.yaml
103103
----
104+
+
105+
Replace `<name>` with the name of the pod.
104106
105-
. Optional: To Confirm that the annotation exists in the `Pod` CR, enter the following command, replacing `<name>` with the name of the pod.
107+
. Optional: Confirm that the annotation exists in the `pod` CR by entering the following command. Replace `<name>` with the name of the pod.
106108
+
107109
[source,terminal]
108110
----
@@ -147,7 +149,7 @@ status:
147149
+
148150
where:
149151
+
150-
`k8s.v1.cni.cncf.io/network-status`:: The `k8s.v1.cni.cncf.io/network-status` parameter is a JSON array of
152+
`k8s.v1.cni.cncf.io/network-status`:: Specifies a JSON array of
151153
objects. Each object describes the status of a secondary network attached
152154
to the pod. The annotation value is stored as a plain text value.
153155

modules/nw-multus-advanced-annotations.adoc

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
[id="nw-multus-advanced-annotations_{context}"]
77
= Specifying pod-specific addressing and routing options
88

9-
When attaching a pod to a secondary network, you may want to specify further properties
10-
about that network in a particular pod. This allows you to change some aspects of routing, as well
11-
as specify static IP addresses and MAC addresses. To accomplish this, you can use the JSON formatted annotations.
9+
[role="_abstract"]
10+
You can configure pod-specific addressing and routing options by using JSON-formatted annotations.
11+
Configuring these options enables you to set static IP addresses, MAC addresses, and default routes for the pod.
1212

1313
.Prerequisites
1414

@@ -21,8 +21,6 @@ endif::sriov[]
2121
2222
.Procedure
2323

24-
To add a pod to a secondary network while specifying addressing and/or routing options, complete the following steps:
25-
2624
. Edit the `Pod` resource definition. If you are editing an existing `Pod` resource, run the
2725
following command to edit its definition in the default editor. Replace `<name>`
2826
with the name of the `Pod` resource to edit.
@@ -62,8 +60,8 @@ metadata:
6260
"name": "net1"
6361
},
6462
{
65-
"name": "net2", <1>
66-
"default-route": ["192.0.2.1"] <2>
63+
"name": "net2",
64+
"default-route": ["192.0.2.1"]
6765
}]'
6866
spec:
6967
containers:
@@ -75,9 +73,9 @@ spec:
7573
--
7674
where:
7775

78-
`name`:: The `name` key is the name of the secondary network to associate
76+
`name`:: Specifies the name of the secondary network to associate
7977
with the pod.
80-
`default-route`:: The `default-route` key specifies a value of a gateway for traffic to be routed over if no other routing entry is present in the routing table. If more than one `default-route` key is specified, this will cause the pod to fail to become active.
78+
`default-route`:: Specifies a value of a gateway for traffic to be routed over if no other routing entry is present in the routing table. If more than one `default-route` key is specified, this will cause the pod to fail to become active.
8179
--
8280
+
8381
The default route will cause any traffic that is not specified in other routes to be routed to the gateway.
@@ -115,9 +113,9 @@ The following YAML describes the configuration parameters for the CNO:
115113
.Cluster Network Operator YAML configuration
116114
[source,terminal,subs="attributes+"]
117115
----
118-
name: <name> <1>
119-
namespace: <namespace> <2>
120-
rawCNIConfig: '{ <3>
116+
name: <name>
117+
namespace: <namespace>
118+
rawCNIConfig: '{
121119
...
122120
}'
123121
type: Raw
@@ -126,9 +124,9 @@ type: Raw
126124
--
127125
where:
128126

129-
`name`:: Specify a name for the secondary network attachment that you are creating. The name must be unique within the specified `namespace`.
130-
`namespace`:: Specify the namespace to create the network attachment in. If you do not specify a value, then the `default` namespace is used.
131-
`rawCNIConfig`:: Specify the CNI plugin configuration in JSON format, which is based on the following template.
127+
`name`:: Specifies a name for the secondary network attachment that you are creating. The name must be unique within the specified `namespace`.
128+
`namespace`:: Specifies the namespace to create the network attachment in. If you do not specify a value, then the `default` namespace is used.
129+
`rawCNIConfig`:: Specifies the CNI plugin configuration in JSON format, which is based on the following template.
132130
--
133131
+
134132
The following object describes the configuration parameters for utilizing static MAC address and IP address using the macvlan CNI plugin:
@@ -138,17 +136,17 @@ The following object describes the configuration parameters for utilizing static
138136
----
139137
{
140138
"cniVersion": "0.3.1",
141-
"name": "<name>", <1>
142-
"plugins": [{ <2>
139+
"name": "<name>",
140+
"plugins": [{
143141
"type": "macvlan",
144-
"capabilities": { "ips": true }, <3>
145-
"master": "eth0", <4>
142+
"capabilities": { "ips": true },
143+
"master": "eth0",
146144
"mode": "bridge",
147145
"ipam": {
148146
"type": "static"
149147
}
150148
}, {
151-
"capabilities": { "mac": true }, <5>
149+
"capabilities": { "mac": true },
152150
"type": "tuning"
153151
}]
154152
}
@@ -165,8 +163,9 @@ where:
165163
--
166164
+
167165
The above network attachment can be referenced in a JSON formatted annotation, along with keys to specify which static IP and MAC address will be assigned to a given pod.
168-
+
169-
Edit the pod with:
166+
167+
168+
. Edit the pod by entering the following command:
170169
+
171170
[source,terminal]
172171
----
@@ -184,24 +183,22 @@ metadata:
184183
annotations:
185184
k8s.v1.cni.cncf.io/networks: '[
186185
{
187-
"name": "<name>", <1>
188-
"ips": [ "192.0.2.205/24" ], <2>
189-
"mac": "CA:FE:C0:FF:EE:00" <3>
186+
"name": "<name>",
187+
"ips": [ "192.0.2.205/24" ],
188+
"mac": "CA:FE:C0:FF:EE:00"
190189
}
191190
]'
192191
----
193-
<1> Use the `<name>` as provided when creating the `rawCNIConfig` above.
194-
<2> Provide an IP address including the subnet mask.
195-
<3> Provide the MAC address.
192+
+
193+
--
194+
where:
195+
196+
`name`:: Specifies the name for the secondary network attachment to create. The name must be unique within the specified `namespace`.
197+
`ips`:: Specifies an IP address including the subnet mask.
198+
`mac`:: Specifies the MAC address.
199+
--
196200
+
197201
[NOTE]
198202
====
199-
Static IP addresses and MAC addresses do not have to be used at the same time, you may use them individually, or together.
203+
Static IP addresses and MAC addresses do not have to be used at the same time. You can use them individually, or together.
200204
====
201-
+
202-
. To verify the IP address and MAC properties of a pod with secondary networks, use the `oc` command to execute the ip command within a pod.
203-
+
204-
[source,terminal]
205-
----
206-
$ oc exec -it <pod_name> -- ip a
207-
----

modules/nw-multus-delete-network.adoc

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[id="nw-multus-delete-network_{context}"]
77
= Removing a secondary network attachment definition
88

9-
As a cluster administrator, you can remove a secondary network from your {product-title} cluster. The secondary network is not removed from any pods it is attached to.
9+
[role="_abstract"]
10+
As a cluster administrator, you can remove a secondary network from your {product-title} cluster. The secondary network is not removed from any pods that it is attached to.
1011

1112
.Prerequisites
1213

@@ -15,8 +16,6 @@ As a cluster administrator, you can remove a secondary network from your {produc
1516
1617
.Procedure
1718

18-
To remove a secondary network from your cluster, complete the following steps:
19-
2019
. Edit the Cluster Network Operator (CNO) in your default text editor by running the following command:
2120
+
2221
[source,terminal]
@@ -33,17 +32,23 @@ kind: Network
3332
metadata:
3433
name: cluster
3534
spec:
36-
additionalNetworks: [] <1>
35+
additionalNetworks: []
3736
----
38-
<1> If you are removing the configuration mapping for the only secondary network attachment definition in the `additionalNetworks` collection, you must specify an empty collection.
37+
+
38+
--
39+
where:
3940

40-
. To remove a network attachment definition from the network of your cluster, enter the following command:
41+
`additionalNetworks`:: Specifies the secondary network attachment definition that you want to remove from the `additionalNetworks` collection. If you are removing the configuration mapping for the only secondary network attachment definition in the `additionalNetworks` collection, you must specify an empty collection.
42+
--
43+
44+
. Remove a network attachment definition from the network of your cluster by entering the following command:
4145
+
4246
[source,terminal]
4347
----
44-
$ oc delete net-attach-def <name_of_NAD> <1>
48+
$ oc delete net-attach-def <name_of_network_attachment_definition>
4549
----
46-
<1> Replace `<name_of_NAD>` with the name of your network attachment definition.
50+
+
51+
Replace `<name_of_network_attachment_definition>` with the name of the network attachment definition that you want to remove.
4752

4853
. Save your changes and quit the text editor to commit your changes.
4954

modules/nw-multus-edit-network.adoc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
[id="nw-multus-edit-network_{context}"]
77
= Modifying a secondary network attachment definition
88

9-
As a cluster administrator, you can make changes to an existing secondary
10-
network. Any existing pods attached to the secondary network will not be updated.
9+
[role="_abstract"]
10+
You can modify a secondary network attachment definition.
11+
You modify the attachment definition to update network settings or change network parameters.
1112

1213
.Prerequisites
1314

@@ -17,26 +18,22 @@ network. Any existing pods attached to the secondary network will not be updated
1718
1819
.Procedure
1920

20-
To edit a secondary network for your cluster, complete the following steps:
21-
22-
. Run the following command to edit the Cluster Network Operator (CNO) CR in
23-
your default text editor:
21+
. Edit the Cluster Network Operator (CNO) CR in your default text editor by running the following command:
2422
+
2523
[source,terminal]
2624
----
2725
$ oc edit networks.operator.openshift.io cluster
2826
----
2927

30-
. In the `additionalNetworks` collection, update the secondary network with
31-
your changes.
28+
. In the `additionalNetworks` collection, update the secondary network with your changes.
3229

3330
. Save your changes and quit the text editor to commit your changes.
3431

35-
. Optional: Confirm that the CNO updated the `NetworkAttachmentDefinition` object by running the following command. Replace `<network-name>` with the name of the secondary network to display. There might be a delay before the CNO updates the `NetworkAttachmentDefinition` object to reflect your changes.
32+
. Optional: Confirm that the CNO updated the `NetworkAttachmentDefinition` object by running the following command. Replace `<network_name>` with the name of the secondary network to display. There might be a delay before the CNO updates the `NetworkAttachmentDefinition` object to reflect your changes.
3633
+
3734
[source,terminal]
3835
----
39-
$ oc get network-attachment-definitions <network-name> -o yaml
36+
$ oc get network-attachment-definitions <network_name> -o yaml
4037
----
4138
+
4239
For example, the following console output displays a `NetworkAttachmentDefinition` object that is named `net1`:

modules/nw-multus-remove-pod.adoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
// * networking/multiple_networks/removing-pod.adoc
44
// * microshift_networking/microshift_multiple_networks/microshift-cni-multus-using.adoc
55

6-
76
:_mod-docs-content-type: PROCEDURE
87
[id="nw-multus-remove-pod_{context}"]
98
= Removing a pod from a secondary network
109

11-
You can remove a pod from a secondary network only by deleting the pod.
10+
[role="_abstract"]
11+
You can remove a pod from a secondary network.
12+
You remove pods from secondary networks to disconnect them from specific network configurations.
1213

1314
.Prerequisites
1415

@@ -18,14 +19,16 @@ You can remove a pod from a secondary network only by deleting the pod.
1819
1920
.Procedure
2021

21-
* To delete the pod, enter the following command:
22+
* Delete the pod by entering the following command:
2223
+
2324
[source,terminal]
2425
----
2526
$ oc delete pod <name> -n <namespace>
2627
----
2728
+
2829
--
29-
* `<name>` is the name of the pod.
30-
* `<namespace>` is the namespace that contains the pod.
30+
where:
31+
32+
`<name>`:: Specifies the name of the pod.
33+
`<namespace>`:: Specifies the namespace that contains the pod.
3134
--

networking/multiple_networks/secondary_networks/attaching-pod.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As a cluster user you can attach a pod to a secondary network.
9+
[role="_abstract"]
10+
You can attach a pod to a secondary network.
11+
Attaching a pod to a secondary network enables the pod to use additional network interfaces beyond the primary cluster network.
1012

1113
include::modules/nw-multus-add-pod.adoc[leveloffset=+1]
1214

networking/multiple_networks/secondary_networks/editing-additional-network.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As a cluster administrator you can modify the configuration for an existing secondary network.
9+
[role="_abstract"]
10+
You can modify the configuration for an existing secondary network.
11+
You modify secondary networks to update network settings or change network parameters.
1012

1113
include::modules/nw-multus-edit-network.adoc[leveloffset=+1]

networking/multiple_networks/secondary_networks/removing-additional-network.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As a cluster administrator you can remove an additional network attachment.
9+
[role="_abstract"]
10+
You can remove an additional network attachment.
11+
You remove additional networks to clean up unused network configurations or free up network resources.
1012

1113
include::modules/nw-multus-delete-network.adoc[leveloffset=+1]

networking/multiple_networks/secondary_networks/removing-pod.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As a cluster user you can remove a pod from a secondary network.
9+
[role="_abstract"]
10+
You can remove a pod from a secondary network.
11+
You remove pods from secondary networks to disconnect them from specific network configurations.
1012

1113
include::modules/nw-multus-remove-pod.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)