Skip to content

Commit 0c54077

Browse files
Merge pull request #74506 from CarmiWisemon/mig1518-wrong-must-gather-for-MTC
MIG-1518 Wrong Must Gather for MTC
2 parents 539c095 + 89b1908 commit 0c54077

File tree

2 files changed

+31
-14
lines changed

2 files changed

+31
-14
lines changed

backup_and_restore/application_backup_and_restore/troubleshooting.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
include::_attributes/common-attributes.adoc[]
55
include::_attributes/attributes-openshift-dedicated.adoc[]
66
:context: oadp-troubleshooting
7+
:oadp-troubleshooting:
78
:namespace: openshift-adp
89
:local-product: OADP
910
:must-gather: registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.1
@@ -95,6 +96,10 @@ include::modules/oadp-restic-issues.adoc[leveloffset=+1]
9596
include::modules/oadp-restic-restore-failing-psa-policy.adoc[leveloffset=+2]
9697

9798
include::modules/migration-using-must-gather.adoc[leveloffset=+1]
99+
[role="_additional-resources"]
100+
.Additional resources
101+
* xref:../../support/gathering-cluster-data.adoc#gathering-cluster-data[Gathering cluster data]
102+
98103
include::modules/migration-combining-must-gather.adoc[leveloffset=+2]
99104
include::modules/oadp-monitoring.adoc[leveloffset=+1]
100105
[role="_additional-resources"]
@@ -111,4 +116,4 @@ include::modules/oadp-creating-alerting-rule.adoc[leveloffset=+2]
111116
include::modules/oadp-list-of-metrics.adoc[leveloffset=+2]
112117
include::modules/oadp-viewing-metrics-ui.adoc[leveloffset=+2]
113118

114-
:!oadp-troubleshooting:
119+
:oadp-troubleshooting!:

modules/migration-using-must-gather.adoc

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ endif::[]
2828

2929
* You must be logged in to the {product-title} cluster as a user with the `cluster-admin` role.
3030
* You must have the OpenShift CLI (`oc`) installed.
31+
32+
ifdef::oadp-troubleshooting[]
3133
* You must use {op-system-base-full} 8.x with OADP 1.2.
3234
* You must use {op-system-base-full} {op-system-version} with OADP 1.3.
35+
endif::[]
3336

3437
.Procedure
3538

@@ -38,27 +41,40 @@ endif::[]
3841

3942
ifdef::troubleshooting-3-4,troubleshooting-mtc[]
4043
* To collect data for the past hour:
44+
+
45+
[source,terminal]
46+
----
47+
$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8
48+
----
49+
+
50+
The data is saved as `must-gather/must-gather.tar.gz`. You can upload this file to a support case on the link:https://access.redhat.com/[Red Hat Customer Portal].
51+
* To collect data for the past 24 hours:
52+
+
53+
[source,terminal]
54+
----
55+
$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8 -- /usr/bin/gather_metrics_dump
56+
----
57+
+
58+
This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`.
4159
endif::[]
4260
ifdef::oadp-troubleshooting[]
4361
* Full `must-gather` data collection, including Prometheus metrics:
44-
endif::[]
4562
.. For OADP 1.2, use the following command:
4663
+
4764
[source,terminal]
4865
----
49-
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2
66+
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2
5067
----
5168
+
5269
.. For OADP 1.3, use the following command:
5370
+
5471
[source,terminal]
5572
----
56-
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3
73+
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3
5774
----
5875
+
5976
The data is saved as `must-gather/must-gather.tar.gz`. You can upload this file to a support case on the link:https://access.redhat.com/[Red Hat Customer Portal].
6077

61-
ifdef::oadp-troubleshooting[]
6278
* Essential `must-gather` data collection, without Prometheus metrics, for a specific time duration:
6379
+
6480
[source,terminal,subs="attributes+"]
@@ -76,24 +92,20 @@ $ oc adm must-gather --image={must-gather} \
7692
-- /usr/bin/gather_with_timeout <timeout> <1>
7793
----
7894
<1> Specify a timeout value in seconds.
79-
endif::[]
80-
ifdef::troubleshooting-3-4,troubleshooting-mtc[]
81-
* To collect data for the past 24 hours:
82-
endif::[]
83-
ifdef::oadp-troubleshooting[]
95+
8496
* Prometheus metrics data dump:
85-
endif::[]
97+
8698
.. For OADP 1.2, use the following command:
8799
+
88100
[source,terminal]
89101
----
90-
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2 -- /usr/bin/gather_metrics_dump
102+
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2 -- /usr/bin/gather_metrics_dump
91103
----
92104
.. For OADP 1.3, use the following command:
93105
+
94106
[source,terminal]
95107
----
96-
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3 -- /usr/bin/gather_metrics_dump
108+
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3 -- /usr/bin/gather_metrics_dump
97109
----
98110
This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`.
99-
111+
endif::[]

0 commit comments

Comments
 (0)