Skip to content

Commit

Permalink
Merge pull request #60558 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-56812-to-enterprise-4.13

[enterprise-4.13] RHDEVDOCS-4957: Added a section to collect must gather data for GitOps
  • Loading branch information
abrennan89 authored May 25, 2023
2 parents cff7249 + 688527b commit eb51d9f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _topic_maps/_topic_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,8 @@ Topics:
File: run-gitops-control-plane-workload-on-infra-nodes
- Name: Sizing requirements for GitOps Operator
File: about-sizing-requirements-gitops
- Name: Collecting debugging data for a support case
File: collecting-debugging-data-for-support
- Name: Troubleshooting issues in GitOps
File: troubleshooting-issues-in-GitOps
- Name: Jenkins
Expand Down
17 changes: 17 additions & 0 deletions cicd/gitops/collecting-debugging-data-for-support.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
:_content-type: ASSEMBLY
[id="collecting-debugging-data-for-support"]
= Collecting debugging data for a support case
include::_attributes/common-attributes.adoc[]
:context: collecting-debugging-data-for-support

toc::[]

When you open a support case, you must provide debugging information about your cluster to the Red Hat Support team. You can use the `must-gather` tool to collect diagnostic information for project-level resources, cluster-level resources, and {gitops-title} components. 

[NOTE]
====
For prompt support, provide diagnostic information for both {product-title} and {gitops-title}.
====

include::modules/about-must-gather.adoc[leveloffset=+1]
include::modules/collecting-gitops-debugging-data.adoc[leveloffset=+1]
42 changes: 42 additions & 0 deletions modules/collecting-gitops-debugging-data.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Module included in the following assembly:
//
// * cicd/gitops/collecting-debugging-data-for-support.adoc

:_content-type: PROCEDURE
[id="collecting-debugging-data-for-gitops_{context}"]
= Collecting debugging data for {gitops-title}

Use the `oc adm must-gather` CLI command to collect the following details about the cluster that is associated with {gitops-title}:

* The subscription and namespace of the {gitops-title} Operator.
* The namespaces where ArgoCD objects are available and the objects in those namespaces, such as `ArgoCD`, `Applications`, `ApplicationSets`, `AppProjects`, and `configmaps`.
* A list of the namespaces that are managed by the {gitops-title} Operator, and resources from those namespaces.
* All {gitops-shortname}-related custom resource objects and definitions.
* Operator and Argo CD logs.
* Warning and error-level events.
.Prerequisites
* You have logged in to the {product-title} cluster as an administrator.
* You have installed the {product-title} CLI (`oc`).
* You have installed the {gitops-title} Operator.
.Procedure

. Navigate to the directory where you want to store the debugging information.
. Run the `oc adm must-gather` command with the {gitops-title} `must-gather` image:
+
[source,terminal]
----
$ oc adm must-gather --image=registry.redhat.io/openshift-gitops-1/gitops-must-gather-rhel8:v1.9.0
----
+
The `must-gather` tool creates a new directory that starts with `./must-gather.local` in the current directory. For example, `./must-gather.local.4157245944708210399`.

. 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:
+
[source,terminal]
----
$ tar -cvaf must-gather.tar.gz must-gather.local.4157245944708210399
----

. Attach the compressed file to your support case on the link:https://access.redhat.com/[Red Hat Customer Portal].

0 comments on commit eb51d9f

Please sign in to comment.