Skip to content

Commit 79d23ad

Browse files
authored
Merge pull request #53495 from mburke5678/okd-remove-network-tracing
GH52913: OKD - references to Redhat subscriptions for network tracing
2 parents 76cd7fe + a1c2806 commit 79d23ad

7 files changed

+98
-5
lines changed

modules/about-toolbox.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
[id="about-toolbox_{context}"]
77
= About `toolbox`
88

9+
ifndef::openshift-origin[]
910
`toolbox` is a tool that starts a container on a {op-system-first} system. The tool is primarily used to start a container that includes the required binaries and plug-ins that are needed to run commands such as `sosreport` and `redhat-support-tool`.
1011

1112
The primary purpose for a `toolbox` container is to gather diagnostic information and to provide it to Red Hat Support. However, if additional diagnostic tools are required, you can add RPM packages or run an image that is an alternative to the standard support tools image.
13+
endif::openshift-origin[]
14+
15+
ifdef::openshift-origin[]
16+
`toolbox` is a tool that starts a container on a {op-system-first} system. The tool is primarily used to start a container that includes the required binaries and plug-ins that are needed to run your favorite debugging or admin tools.
17+
endif::openshift-origin[]

modules/gathering-data-audit-logs.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ endif::viewing[]
3636
$ oc adm must-gather -- /usr/bin/gather_audit_logs
3737
----
3838

39+
ifndef::openshift-origin[]
3940
. Create a compressed file from the `must-gather` directory that was just created in your working directory. For example, on a computer that uses a Linux operating system, run the following command:
4041
+
4142
[source,terminal]
@@ -45,7 +46,7 @@ $ tar cvaf must-gather.tar.gz must-gather.local.472290403699006248 <1>
4546
<1> Replace `must-gather-local.472290403699006248` with the actual directory name.
4647

4748
. Attach the compressed file to your support case on the link:https://access.redhat.com[Red Hat Customer Portal].
48-
49+
endif::openshift-origin[]
4950

5051
ifeval::["{context}" == "gathering-cluster-data"]
5152
:!support:

modules/gathering-data-specific-features.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ endif::openshift-dedicated[]
321321
====
322322
endif::openshift-origin[]
323323
324-
ifdef::openshift-origin[]
325-
326324
. Run the `oc adm must-gather` command with one or more `--image` or `--image-stream` arguments. For example, the following command gathers both the default cluster data and information specific to KubeVirt:
327325
+
328326
[source,terminal]
@@ -334,8 +332,7 @@ $ oc adm must-gather \
334332
<1> The default {product-title} `must-gather` image
335333
<2> The must-gather image for KubeVirt
336334
337-
endif::openshift-origin[]
338-
335+
ifndef::openshift-origin[]
339336
. Create a compressed file from the `must-gather` directory that was just created in your working directory. For example, on a computer that uses a Linux
340337
operating system, run the following command:
341338
+
@@ -347,6 +344,7 @@ $ tar cvaf must-gather.tar.gz must-gather.local.5421342344627712289/ <1>
347344
actual directory name.
348345
349346
. Attach the compressed file to your support case on the link:https://access.redhat.com[Red Hat Customer Portal].
347+
endif::openshift-origin[]
350348
351349
ifeval::["{context}" == "gathering-cluster-data"]
352350
:!from-main-support-section:

modules/support-collecting-host-network-trace.adoc

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88

99
Sometimes, troubleshooting a network-related issue is simplified by tracing network communication and capturing packets on multiple nodes at the same time.
1010

11+
ifndef::openshift-origin[]
1112
You can use a combination of the `oc adm must-gather` command and the `registry.redhat.io/openshift4/network-tools-rhel8` container image to gather packet captures from nodes.
1213
Analyzing packet captures can help you troubleshoot network communication issues.
14+
endif::openshift-origin[]
15+
16+
ifdef::openshift-origin[]
17+
You can use a combination of the `oc adm must-gather` command and the `quay.io/openshift/origin-network-tools:latest` container image to gather packet captures from nodes.
18+
Analyzing packet captures can help you troubleshoot network communication issues.
19+
endif::openshift-origin[]
1320

1421
The `oc adm must-gather` command is used to run the `tcpdump` command in pods on specific nodes.
1522
The `tcpdump` command records the packet captures in the pods.
@@ -29,6 +36,7 @@ However, you can run any command in the container image that is specified in the
2936
3037
.Procedure
3138

39+
ifndef::openshift-origin[]
3240
. Run a packet capture from the host network on some nodes by running the following command:
3341
+
3442
[source,terminal]
@@ -51,9 +59,36 @@ $ oc adm must-gather \
5159
<.> The `--host-network=true` argument is required so that the packet captures are performed on the network interfaces of the node.
5260
<.> The `--timeout` argument and value specify to run the debug pod for 30 seconds. If you do not specify the `--timeout` argument and a duration, the debug pod runs for 10 minutes.
5361
<.> The `-i any` argument for the `tcpdump` command specifies to capture packets on all network interfaces. As an alternative, you can specify a network interface name.
62+
endif::openshift-origin[]
63+
64+
ifdef::openshift-origin[]
65+
. Run a packet capture from the host network on some nodes by running the following command:
66+
+
67+
[source,terminal]
68+
----
69+
$ oc adm must-gather \
70+
--dest-dir /tmp/captures \ <.>
71+
--source-dir '/tmp/tcpdump/' \ <.>
72+
--image quay.io/openshift/origin-network-tools:latest \ <.>
73+
--node-selector 'node-role.kubernetes.io/worker' \ <.>
74+
--host-network=true \ <.>
75+
--timeout 30s \ <.>
76+
-- \
77+
tcpdump -i any \ <.>
78+
-w /tmp/tcpdump/%Y-%m-%dT%H:%M:%S.pcap -W 1 -G 300
79+
----
80+
<.> The `--dest-dir` argument specifies that `oc adm must-gather` stores the packet captures in directories that are relative to `/tmp/captures` on the client machine. You can specify any writable directory.
81+
<.> When `tcpdump` is run in the debug pod that `oc adm must-gather` starts, the `--source-dir` argument specifies that the packet captures are temporarily stored in the `/tmp/tcpdump` directory on the pod.
82+
<.> The `--image` argument specifies a container image that includes the `tcpdump` command.
83+
<.> The `--node-selector` argument and example value specifies to perform the packet captures on the worker nodes. As an alternative, you can specify the `--node-name` argument instead to run the packet capture on a single node. If you omit both the `--node-selector` and the `--node-name` argument, the packet captures are performed on all nodes.
84+
<.> The `--host-network=true` argument is required so that the packet captures are performed on the network interfaces of the node.
85+
<.> The `--timeout` argument and value specify to run the debug pod for 30 seconds. If you do not specify the `--timeout` argument and a duration, the debug pod runs for 10 minutes.
86+
<.> The `-i any` argument for the `tcpdump` command specifies to capture packets on all network interfaces. As an alternative, you can specify a network interface name.
87+
endif::openshift-origin[]
5488

5589
. Perform the action, such as accessing a web application, that triggers the network communication issue while the network trace captures packets.
5690

91+
ifndef::openshift-origin[]
5792
. Review the packet capture files that `oc adm must-gather` transferred from the pods to your client machine:
5893
+
5994
[source,text]
@@ -72,3 +107,25 @@ tmp/captures
72107
+
73108
<1> The packet captures are stored in directories that identify the hostname, container, and file name.
74109
If you did not specify the `--node-selector` argument, then the directory level for the hostname is not present.
110+
endif::openshift-origin[]
111+
112+
ifdef::openshift-origin[]
113+
. Review the packet capture files that `oc adm must-gather` transferred from the pods to your client machine:
114+
+
115+
[source,text]
116+
----
117+
tmp/captures
118+
├── event-filter.html
119+
├── ip-10-0-192-217-ec2-internal <1>
120+
│ └── quay.io/openshift/origin-network-tools:latest...
121+
│ └── 2022-01-13T19:31:31.pcap
122+
├── ip-10-0-201-178-ec2-internal <1>
123+
│ └── quay.io/openshift/origin-network-tools:latest...
124+
│ └── 2022-01-13T19:31:30.pcap
125+
├── ip-...
126+
└── timestamp
127+
----
128+
+
129+
<1> The packet captures are stored in directories that identify the hostname, container, and file name.
130+
If you did not specify the `--node-selector` argument, then the directory level for the hostname is not present.
131+
endif::openshift-origin[]

modules/support-installing-packages-to-a-toolbox-container.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
[id="installing-packages-to-a-toolbox-container_{context}"]
77
= Installing packages to a `toolbox` container
88

9+
ifndef::openshift-origin[]
910
By default, running the `toolbox` command starts a container with the `registry.redhat.io/rhel8/support-tools:latest` image. This image contains the most frequently used support tools. If you need to collect node-specific data that requires a support tool that is not part of the image, you can install additional packages.
11+
endif::openshift-origin[]
12+
13+
ifdef::openshift-origin[]
14+
By default, running the `toolbox` command starts a container with the `quay.io/fedora/fedora:36` image. This image contains the most frequently used support tools. If you need to collect node-specific data that requires a support tool that is not part of the image, you can install additional packages.
15+
endif::openshift-origin[]
1016

1117
.Prerequisites
1218

modules/support-starting-an-alternative-image-with-toolbox.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
[id="starting-an-alternative-image-with-toolbox_{context}"]
77
= Starting an alternative image with `toolbox`
88

9+
ifndef::openshift-origin[]
910
By default, running the `toolbox` command starts a container with the `registry.redhat.io/rhel8/support-tools:latest` image. You can start an alternative image by creating a `.toolboxrc` file and specifying the image to run.
11+
endif::openshift-origin[]
12+
13+
ifdef::openshift-origin[]
14+
By default, running the `toolbox` command starts a container with the `quay.io/fedora/fedora:36` image. You can start an alternative image by creating a `.toolboxrc` file and specifying the image to run.
15+
endif::openshift-origin[]
1016

1117
.Prerequisites
1218

support/gathering-cluster-data.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,35 @@ endif::[]
99

1010
toc::[]
1111

12+
ifndef::openshift-origin[]
1213
When opening a support case, it is helpful to provide debugging
1314
information about your cluster to Red Hat Support.
1415

1516
It is recommended to provide:
1617

1718
* xref:../support/gathering-cluster-data.adoc#support_gathering_data_gathering-cluster-data[Data gathered using the `oc adm must-gather` command]
1819
* The xref:../support/gathering-cluster-data.adoc#support-get-cluster-id_gathering-cluster-data[unique cluster ID]
20+
endif::openshift-origin[]
21+
22+
ifdef::openshift-origin[]
23+
You can use the following tools to get debugging information about your {product-title} cluster.
24+
endif::openshift-origin[]
1925

2026
// About the must-gather tool
2127
include::modules/about-must-gather.adoc[leveloffset=+1]
2228

29+
ifndef::openshift-origin[]
2330
// Gathering data about your cluster for Red Hat Support
2431
include::modules/support-gather-data.adoc[leveloffset=+2]
32+
endif::openshift-origin[]
2533

2634
// Gathering data about specific features
2735
include::modules/gathering-data-specific-features.adoc[leveloffset=+2]
2836

2937
// Gathering audit logs
3038
include::modules/gathering-data-audit-logs.adoc[leveloffset=+2]
3139

40+
ifndef::openshift-origin[]
3241
// Obtain your cluster identifier
3342
include::modules/support-get-cluster-id.adoc[leveloffset=+1]
3443

@@ -37,13 +46,15 @@ include::modules/about-sosreport.adoc[leveloffset=+1]
3746

3847
// Generating a `sosreport` archive for an {product-title} cluster node
3948
include::modules/support-generating-a-sosreport-archive.adoc[leveloffset=+1]
49+
endif::openshift-origin[]
4050

4151
// Querying bootstrap node journal logs
4252
include::modules/querying-bootstrap-node-journal-logs.adoc[leveloffset=+1]
4353

4454
// Querying cluster node journal logs
4555
include::modules/querying-cluster-node-journal-logs.adoc[leveloffset=+1]
4656

57+
ifndef::openshift-origin[]
4758
// Network trace methods
4859
include::modules/support-network-trace-methods.adoc[leveloffset=+1]
4960

@@ -52,9 +63,17 @@ include::modules/support-collecting-host-network-trace.adoc[leveloffset=+1]
5263

5364
// Collecting a network trace from an {product-title} node or container
5465
include::modules/support-collecting-network-trace.adoc[leveloffset=+1]
66+
endif::openshift-origin[]
67+
68+
ifdef::openshift-origin[]
69+
// Collecting a host network trace
70+
include::modules/support-collecting-host-network-trace.adoc[leveloffset=+1]
71+
endif::openshift-origin[]
5572

73+
ifndef::openshift-origin[]
5674
// Providing diagnostic data to Red Hat Support
5775
include::modules/support-providing-diagnostic-data-to-red-hat.adoc[leveloffset=+1]
76+
endif::openshift-origin[]
5877

5978
// About `toolbox`
6079
include::modules/about-toolbox.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)