|
| 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. |
0 commit comments