Skip to content

Commit a725b8e

Browse files
authored
Merge pull request openshift#64418 from JoeAldinger/OSDOCS-6269-cl
/lgtm, merging
2 parents 73393db + d13ac8c commit a725b8e

4 files changed

+57
-68
lines changed

modules/nw-ovn-kubernetes-examine-nb-database-contents-ref.adoc

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@
88

99
The following table describes the command line arguments that can be used with `ovn-nbctl` to examine the contents of the northbound database.
1010

11+
12+
[NOTE]
13+
====
14+
Open a remote shell in the pod you want to view the contents of and then run the `ovn-nbctl` commands.
15+
====
16+
1117
.Command line arguments to examine northbound database contents
1218
[cols="30%,70%",options="header"]
1319
|===
1420
|Argument |Description
1521

1622
|`ovn-nbctl show`
17-
|An overview of the northbound database contents.
23+
|An overview of the northbound database contents as seen from a specific node.
1824

1925
|`ovn-nbctl show <switch_or_router>`
2026
|Show the details associated with the specified switch or router.

modules/nw-ovn-kubernetes-examine-sb-database-contents-ref.adoc

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@
88

99
The following table describes the command line arguments that can be used with `ovn-sbctl` to examine the contents of the southbound database.
1010

11+
[NOTE]
12+
====
13+
Open a remote shell in the pod you wish to view the contents of and then run the `ovn-sbctl` commands.
14+
====
15+
1116
.Command line arguments to examine southbound database contents
1217
[cols="30%,70%",options="header"]
1318
|===
1419
|Argument |Description
1520

1621
|`ovn-sbctl show`
17-
|Overview of the southbound database contents.
22+
|An overview of the southbound database contents as seen from a specific node.
1823

1924
|`ovn-sbctl list Port_Binding <port>`
2025
|List the contents of southbound database for a the specified port .

modules/nw-ovn-kubernetes-running-network-tools.adoc

+44-64
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ Get information about the logical switches and routers by running `network-tools
1616
1717
.Procedure
1818

19+
. Open a remote shell into a pod by running the following command:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc rsh -n openshift-ovn-kubernetes ovnkube-node-2hsbt
24+
----
25+
1926
. List the routers by running the following command:
2027
+
2128
[source,terminal]
@@ -27,13 +34,8 @@ $ ./debug-scripts/network-tools ovn-db-run-command ovn-nbctl lr-list
2734
+
2835
[source,terminal]
2936
----
30-
Leader pod is ovnkube-master-vslqm
31-
5351ddd1-f181-4e77-afc6-b48b0a9df953 (GR_helix13.lab.eng.tlv2.redhat.com)
32-
ccf9349e-1948-4df8-954e-39fb0c2d4d06 (GR_helix14.lab.eng.tlv2.redhat.com)
33-
e426b918-75a8-4220-9e76-20b7758f92b7 (GR_hlxcl7-master-0.hlxcl7.lab.eng.tlv2.redhat.com)
34-
dded77c8-0cc3-4b99-8420-56cd2ae6a840 (GR_hlxcl7-master-1.hlxcl7.lab.eng.tlv2.redhat.com)
35-
4f6747e6-e7ba-4e0c-8dcd-94c8efa51798 (GR_hlxcl7-master-2.hlxcl7.lab.eng.tlv2.redhat.com)
36-
52232654-336e-4952-98b9-0b8601e370b4 (ovn_cluster_router)
37+
944a7b53-7948-4ad2-a494-82b55eeccf87 (GR_ci-ln-54932yb-72292-kd676-worker-c-rzj99)
38+
84bd4a4c-4b0b-4a47-b0cf-a2c32709fc53 (ovn_cluster_router)
3739
----
3840

3941
. List the localnet ports by running the following command:
@@ -48,41 +50,18 @@ ovn-sbctl find Port_Binding type=localnet
4850
+
4951
[source,terminal]
5052
----
51-
Leader pod is ovnkube-master-vslqm
52-
_uuid : 3de79191-cca8-4c28-be5a-a228f0f9ebfc
53+
_uuid : d05298f5-805b-4838-9224-1211afc2f199
5354
additional_chassis : []
5455
additional_encap : []
5556
chassis : []
56-
datapath : 3f1a4928-7ff5-471f-9092-fe5f5c67d15c
57+
datapath : f3c2c959-743b-4037-854d-26627902597c
5758
encap : []
5859
external_ids : {}
5960
gateway_chassis : []
6061
ha_chassis_group : []
61-
logical_port : br-ex_helix13.lab.eng.tlv2.redhat.com
62-
mac : [unknown]
63-
nat_addresses : []
64-
options : {network_name=physnet}
65-
parent_port : []
66-
port_security : []
67-
requested_additional_chassis: []
68-
requested_chassis : []
69-
tag : []
70-
tunnel_key : 2
71-
type : localnet
72-
up : false
73-
virtual_parent : []
74-
75-
_uuid : dbe21daf-9594-4849-b8f0-5efbfa09a455
76-
additional_chassis : []
77-
additional_encap : []
78-
chassis : []
79-
datapath : db2a6067-fe7c-4d11-95a7-ff2321329e11
80-
encap : []
81-
external_ids : {}
82-
gateway_chassis : []
83-
ha_chassis_group : []
84-
logical_port : br-ex_hlxcl7-master-2.hlxcl7.lab.eng.tlv2.redhat.com
62+
logical_port : br-ex_ci-ln-54932yb-72292-kd676-worker-c-rzj99
8563
mac : [unknown]
64+
mirror_rules : []
8665
nat_addresses : []
8766
options : {network_name=physnet}
8867
parent_port : []
@@ -110,20 +89,20 @@ ovn-sbctl find Port_Binding type=l3gateway
11089
+
11190
[source,terminal]
11291
----
113-
Leader pod is ovnkube-master-vslqm
114-
_uuid : 9314dc80-39e1-4af7-9cc0-ae8a9708ed59
92+
_uuid : 5207a1f3-1cf3-42f1-83e9-387bbb06b03c
11593
additional_chassis : []
11694
additional_encap : []
117-
chassis : 336a923d-99e8-4e71-89a6-12564fde5760
118-
datapath : db2a6067-fe7c-4d11-95a7-ff2321329e11
95+
chassis : ca6eb600-3a10-4372-a83e-e0d957c4cd92
96+
datapath : f3c2c959-743b-4037-854d-26627902597c
11997
encap : []
12098
external_ids : {}
12199
gateway_chassis : []
122100
ha_chassis_group : []
123-
logical_port : etor-GR_hlxcl7-master-2.hlxcl7.lab.eng.tlv2.redhat.com
124-
mac : ["52:54:00:3e:95:d3"]
125-
nat_addresses : ["52:54:00:3e:95:d3 10.46.56.77"]
126-
options : {l3gateway-chassis="7eb1f1c3-87c2-4f68-8e89-60f5ca810971", peer=rtoe-GR_hlxcl7-master-2.hlxcl7.lab.eng.tlv2.redhat.com}
101+
logical_port : etor-GR_ci-ln-54932yb-72292-kd676-worker-c-rzj99
102+
mac : ["42:01:0a:00:80:04"]
103+
mirror_rules : []
104+
nat_addresses : ["42:01:0a:00:80:04 10.0.128.4"]
105+
options : {l3gateway-chassis="84737c36-b383-4c83-92c5-2bd5b3c7e772", peer=rtoe-GR_ci-ln-54932yb-72292-kd676-worker-c-rzj99}
127106
parent_port : []
128107
port_security : []
129108
requested_additional_chassis: []
@@ -134,25 +113,26 @@ type : l3gateway
134113
up : true
135114
virtual_parent : []
136115
137-
_uuid : ad7eb303-b411-4e9f-8d36-d07f1f268e27
116+
_uuid : 6088d647-84f2-43f2-b53f-c9d379042679
138117
additional_chassis : []
139118
additional_encap : []
140-
chassis : f41453b8-29c5-4f39-b86b-e82cf344bce4
141-
datapath : 082e7a60-d9c7-464b-b6ec-117d3426645a
119+
chassis : ca6eb600-3a10-4372-a83e-e0d957c4cd92
120+
datapath : dc9cea00-d94a-41b8-bdb0-89d42d13aa2e
142121
encap : []
143122
external_ids : {}
144123
gateway_chassis : []
145124
ha_chassis_group : []
146-
logical_port : etor-GR_helix14.lab.eng.tlv2.redhat.com
147-
mac : ["34:48:ed:f3:e2:2c"]
148-
nat_addresses : ["34:48:ed:f3:e2:2c 10.46.56.14"]
149-
options : {l3gateway-chassis="2e8abe3a-cb94-4593-9037-f5f9596325e2", peer=rtoe-GR_helix14.lab.eng.tlv2.redhat.com}
125+
logical_port : jtor-GR_ci-ln-54932yb-72292-kd676-worker-c-rzj99
126+
mac : [router]
127+
mirror_rules : []
128+
nat_addresses : []
129+
options : {l3gateway-chassis="84737c36-b383-4c83-92c5-2bd5b3c7e772", peer=rtoj-GR_ci-ln-54932yb-72292-kd676-worker-c-rzj99}
150130
parent_port : []
151131
port_security : []
152132
requested_additional_chassis: []
153133
requested_chassis : []
154134
tag : []
155-
tunnel_key : 1
135+
tunnel_key : 2
156136
type : l3gateway
157137
up : true
158138
virtual_parent : []
@@ -172,52 +152,52 @@ ovn-sbctl find Port_Binding type=patch
172152
+
173153
[source,terminal]
174154
----
175-
Leader pod is ovnkube-master-vslqm
176-
_uuid : c48b1380-ff26-4965-a644-6bd5b5946c61
155+
_uuid : 785fb8b6-ee5a-4792-a415-5b1cb855dac2
177156
additional_chassis : []
178157
additional_encap : []
179158
chassis : []
180-
datapath : 72734d65-fae1-4bd9-a1ee-1bf4e085a060
159+
datapath : f1ddd1cc-dc0d-43b4-90ca-12651305acec
181160
encap : []
182161
external_ids : {}
183162
gateway_chassis : []
184163
ha_chassis_group : []
185-
logical_port : jtor-ovn_cluster_router
164+
logical_port : stor-ci-ln-54932yb-72292-kd676-worker-c-rzj99
186165
mac : [router]
187-
nat_addresses : []
188-
options : {peer=rtoj-ovn_cluster_router}
166+
mirror_rules : []
167+
nat_addresses : ["0a:58:0a:80:02:01 10.128.2.1 is_chassis_resident(\"cr-rtos-ci-ln-54932yb-72292-kd676-worker-c-rzj99\")"]
168+
options : {peer=rtos-ci-ln-54932yb-72292-kd676-worker-c-rzj99}
189169
parent_port : []
190170
port_security : []
191171
requested_additional_chassis: []
192172
requested_chassis : []
193173
tag : []
194-
tunnel_key : 4
174+
tunnel_key : 1
195175
type : patch
196176
up : false
197177
virtual_parent : []
198178
199-
_uuid : 5df51302-f3cd-415b-a059-ac24389938f7
179+
_uuid : c01ff587-21a5-40b4-8244-4cd0425e5d9a
200180
additional_chassis : []
201181
additional_encap : []
202182
chassis : []
203-
datapath : 0551c90f-e891-4909-8e9e-acc7909e06d0
183+
datapath : f6795586-bf92-4f84-9222-efe4ac6a7734
204184
encap : []
205185
external_ids : {}
206186
gateway_chassis : []
207187
ha_chassis_group : []
208-
logical_port : rtos-hlxcl7-master-1.hlxcl7.lab.eng.tlv2.redhat.com
209-
mac : ["0a:58:0a:82:00:01 10.130.0.1/23"]
188+
logical_port : rtoj-ovn_cluster_router
189+
mac : ["0a:58:64:40:00:01 100.64.0.1/16"]
190+
mirror_rules : []
210191
nat_addresses : []
211-
options : {chassis-redirect-port=cr-rtos-hlxcl7-master-1.hlxcl7.lab.eng.tlv2.redhat.com, peer=stor-hlxcl7-master-1.hlxcl7.lab.eng.tlv2.redhat.com}
192+
options : {peer=jtor-ovn_cluster_router}
212193
parent_port : []
213194
port_security : []
214195
requested_additional_chassis: []
215196
requested_chassis : []
216197
tag : []
217-
tunnel_key : 4
198+
tunnel_key : 1
218199
type : patch
219200
up : false
220201
virtual_parent : []
221-
222202
[...]
223203
----

networking/ovn_kubernetes_network_provider/ovn-kubernetes-architecture-assembly.adoc

-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ include::modules/nw-ovn-kubernetes-running-network-tools.adoc[leveloffset=+2]
2828
[id="additional-resources_ovn-kubernetes-architecture"]
2929
== Additional resources
3030

31-
* link:https://access.redhat.com/solutions/5660751[How to list OVN database contents with ovn-kubernetes in Red Hat OpenShift Container Platform 4.x?]
3231
* xref:../../networking/ovn_kubernetes_network_provider/ovn-kubernetes-tracing-using-ovntrace.adoc#ovn-kubernetes-tracing-using-ovntrace[Tracing Openflow with ovnkube-trace]
3332
* link:https://www.ovn.org/support/dist-docs/ovn-architecture.7.html[OVN architecture]
34-
* link:https://en.wikipedia.org/wiki/Raft_(algorithm)[Raft (algorithm)]
3533
* link:https://man7.org/linux/man-pages/man8/ovn-nbctl.8.html[ovn-nbctl linux manual page]
3634
* link:https://man7.org/linux/man-pages/man8/ovn-sbctl.8.html[ovn-sbctl linux manual page]
3735

0 commit comments

Comments
 (0)