Skip to content

Commit d98b287

Browse files
authored
Merge pull request #75702 from ShaunaDiaz/OSDOCS-9763-2
OSDOCS-9763-2: Debug GitOps MicroShift
2 parents 0d13422 + 20b354f commit d98b287

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed

microshift_running_apps/microshift-gitops.adoc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ By using the GitOps with Argo CD agent with {microshift-short}, you can utilize
2121

2222
include::modules/microshift-gitops-adding-apps.adoc[leveloffset=+1]
2323

24-
[id="additional-resourcess{context}"]
24+
[role="_additional-resources"]
2525
.Additional resources
26-
2726
* xref:../microshift_install/microshift-install-rpm.adoc#microshift-installing-rpms-for-gitops_microshift-install-rpm[Installing the GitOps Argo CD manifests from an RPM package]
2827

2928
[id="microshift-gitops-cannot-do_{context}"]
@@ -33,11 +32,21 @@ GitOps with Argo CD for {microshift-short} has the following differences from th
3332
* The `gitops-operator` component is not used with {microshift-short}.
3433
* To maintain the small resource use of {microshift-short}, the Argo CD web console is not available. You can use the Argo CD CLI or use a pull-based approach.
3534
* Because {microshift-short} is single-node, there is no multi-cluster support. Each instance of {microshift-short} is paired with a local GitOps agent.
36-
* Use sos reports for debugging because `oc adm must-gather` is not available in {microshift-short}.
35+
* The `oc adm must-gather` command is not available in {microshift-short}.
36+
37+
[id="microshift-gitops-troubleshooting_{context}"]
38+
== Troubleshooting GitOps
39+
If you have problems with your GitOps controller, you can use either the {oc-first} tool or run an sos report.
40+
41+
include::modules/microshift-gitops-debug.adoc[leveloffset=+2]
42+
43+
include::modules/microshift-gathering-sos-report.adoc[leveloffset=+2]
3744

3845
[id="additional-resources_microshift-gitops_{context}"]
3946
[role="_additional-resources"]
4047
== Additional resources
48+
* xref:../microshift_support/microshift-sos-report.adoc#microshift-sos-report[Using sos reports]
49+
4150
* link:https://access.redhat.com/documentation/en-us/red_hat_openshift_gitops/1.12[Red Hat OpenShift GitOps]
4251

43-
* xref:../microshift_support/microshift-sos-report.adoc#microshift-sos-report[Using sos reports]
52+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/getting_the_most_from_your_support_experience/generating-an-sos-report-for-technical-support_getting-the-most-from-your-support-experience[Generating an sos report for technical support] (Red Hat Enterprise Linux)

modules/microshift-gitops-debug.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Module included in the following assemblies:
2+
//
3+
// microshift_running_apps/microshift-gitops.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="microshift-gitops-debug_{context}"]
7+
= Debugging GitOps with oc adm inspect
8+
9+
You can debug GitOps by using the {oc-first}.
10+
11+
.Prerequisites
12+
13+
* The `oc` command line tool is installed.
14+
15+
.Procedure
16+
17+
. Run the `oc adm inspect` command when in the GitOps namespace:
18+
+
19+
[source,terminal]
20+
----
21+
$ oc adm inspect ns/openshift-gitops
22+
----
23+
+
24+
.Example output
25+
[source,terminal]
26+
----
27+
Gathering data for ns/openshift-gitops...
28+
W0501 20:34:35.978508 57625 util.go:118] the server doesn't have a resource type egressfirewalls, skipping the inspection
29+
W0501 20:34:35.980881 57625 util.go:118] the server doesn't have a resource type egressqoses, skipping the inspection
30+
W0501 20:34:36.040664 57625 util.go:118] the server doesn't have a resource type servicemonitors, skipping the inspection
31+
Wrote inspect data to inspect.local.2673575938140296280.
32+
----
33+
34+
.Next steps
35+
* If `oc adm inspect` did not provide the information you need, you can run an sos report.

0 commit comments

Comments
 (0)