Skip to content

Commit ffa1e3f

Browse files
committed
OSDOCS-7442: Agent data gathering
1 parent 682d067 commit ffa1e3f

10 files changed

+83
-8
lines changed

installing/installing_with_agent_based_installer/installing-with-agent-based-installer.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,7 @@ include::modules/sample-ztp-custom-resources.adoc[leveloffset=+1]
7474
.Additional resources
7575

7676
* See xref:../../scalability_and_performance/ztp_far_edge/ztp-deploying-far-edge-clusters-at-scale.adoc#ztp-deploying-far-edge-clusters-at-scale[Challenges of the network far edge] to learn more about {ztp-first}.
77+
78+
79+
// Gathering log data from a failed Agent-based installation
80+
include::modules/installing-ocp-agent-gather-log.adoc[leveloffset=+1]

modules/installing-ocp-agent-ZTP.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-ztp_{context}"]

modules/installing-ocp-agent-boot.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent-based-installer.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-boot_{context}"]

modules/installing-ocp-agent-download.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-retrieve_{context}"]

modules/installing-ocp-agent-encrypt.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent-based-installer.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-encrypt_{context}"]
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="installing-ocp-agent-gather-log_{context}"]
7+
= Gathering log data from a failed Agent-based installation
8+
9+
Use the following procedure to gather log data about a failed Agent-based installation to provide for a support case.
10+
11+
.Procedure
12+
13+
. Run the following command and collect the output:
14+
+
15+
[source,terminal]
16+
----
17+
$ ./openshift-install --dir <install_directory> agent wait-for bootstrap-complete --log-level=debug
18+
----
19+
+
20+
.Example error message
21+
[source,terminal]
22+
----
23+
...
24+
ERROR Bootstrap failed to complete: : bootstrap process timed out: context deadline exceeded
25+
----
26+
27+
. If the output from the previous command indicates a failure, or if the bootstrap is not progressing, run the following command on node 0 and collect the output:
28+
+
29+
[source,terminal]
30+
----
31+
$ ssh core@<node-ip> sudo /usr/local/bin/agent-gather -O > <local_tmp_path>/agent-gather.tar.xz
32+
----
33+
+
34+
[NOTE]
35+
====
36+
You only need to gather data from node 0, but gathering this data from every node can be helpful.
37+
====
38+
39+
. If the bootstrap completes and the cluster nodes reboot, run the following command and collect the output:
40+
+
41+
[source,terminal]
42+
----
43+
$ ./openshift-install --dir <install_directory> agent wait-for install-complete --log-level=debug
44+
----
45+
46+
. If the output from the previous command indicates a failure, perform the following steps:
47+
48+
.. Export the `kubeconfig` file to your environment by running the following command:
49+
+
50+
[source,terminal]
51+
----
52+
$ export KUBECONFIG=<install_directory>/auth/kubeconfig
53+
----
54+
55+
.. To gather information for debugging, run the following command:
56+
+
57+
[source,terminal]
58+
----
59+
$ oc adm must-gather
60+
----
61+
62+
.. Create a compressed file from the `must-gather` directory that was just created in your working directory by running the following command:
63+
+
64+
[source,terminal]
65+
----
66+
$ tar cvaf must-gather.tar.gz <must_gather_directory>
67+
----
68+
69+
. Excluding the `/auth` subdirectory, attach the installation directory used during the deployment to your support case on the link:https://access.redhat.com[Red Hat Customer Portal].
70+
71+
. Attach all other data gathered from this procedure to your support case.

modules/installing-ocp-agent-inputs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent-based-installer.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-inputs_{context}"]

modules/installing-ocp-agent-tui.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-tui_{context}"]

modules/installing-ocp-agent-verify.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: PROCEDURE
66
[id="installing-ocp-agent-verify_{context}"]

modules/sample-ztp-custom-resources.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * installing-with-agent/installing-with-agent.adoc
3+
// * installing/installing-with-agent-based-installer/installing-with-agent-based-installer.adoc
44

55
:_content-type: CONCEPT
66
[id="sample-ztp-custom-resources_{context}"]

0 commit comments

Comments
 (0)