|
| 1 | +// Module included in the following assembly: |
| 2 | +// |
| 3 | +// * cicd/gitops/collecting-debugging-data-for-support.adoc |
| 4 | + |
| 5 | +:_content-type: PROCEDURE |
| 6 | +[id="collecting-debugging-data-for-gitops_{context}"] |
| 7 | += Collecting debugging data for {gitops-title} |
| 8 | + |
| 9 | +Use the `oc adm must-gather` CLI command to collect the following details about the cluster that is associated with {gitops-title}: |
| 10 | + |
| 11 | +* The subscription and namespace of the {gitops-title} Operator. |
| 12 | +* The namespaces where ArgoCD objects are available and the objects in those namespaces, such as `ArgoCD`, `Applications`, `ApplicationSets`, `AppProjects`, and `configmaps`. |
| 13 | +* A list of the namespaces that are managed by the {gitops-title} Operator, and resources from those namespaces. |
| 14 | +* All {gitops-shortname}-related custom resource objects and definitions. |
| 15 | +* Operator and Argo CD logs. |
| 16 | +* Warning and error-level events. |
| 17 | +
|
| 18 | +.Prerequisites |
| 19 | +* You have logged in to the {product-title} cluster as an administrator. |
| 20 | +* You have installed the {product-title} CLI (`oc`). |
| 21 | +* You have installed the {gitops-title} Operator. |
| 22 | +
|
| 23 | +.Procedure |
| 24 | + |
| 25 | +. Navigate to the directory where you want to store the debugging information. |
| 26 | +. Run the `oc adm must-gather` command with the {gitops-title} `must-gather` image: |
| 27 | ++ |
| 28 | +[source,terminal] |
| 29 | +---- |
| 30 | +$ oc adm must-gather --image=registry.redhat.io/openshift-gitops-1/gitops-must-gather-rhel8:v1.9.0 |
| 31 | +---- |
| 32 | ++ |
| 33 | +The `must-gather` tool creates a new directory that starts with `./must-gather.local` in the current directory. For example, `./must-gather.local.4157245944708210399`. |
| 34 | + |
| 35 | +. Create a compressed file from the directory that was just created. For example, on a computer that uses a Linux operating system, run the following command: |
| 36 | ++ |
| 37 | +[source,terminal] |
| 38 | +---- |
| 39 | +$ tar -cvaf must-gather.tar.gz must-gather.local.4157245944708210399 |
| 40 | +---- |
| 41 | + |
| 42 | +. Attach the compressed file to your support case on the link:https://access.redhat.com/[Red Hat Customer Portal]. |
0 commit comments