1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

MIG-1518 Wrong Must Gather for MTC

This commit is contained in:
Carmi Wisemon
2024-04-11 10:35:29 +03:00
parent 9c7f05a420
commit 89b1908bd7
2 changed files with 31 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
include::_attributes/common-attributes.adoc[]
include::_attributes/attributes-openshift-dedicated.adoc[]
:context: oadp-troubleshooting
:oadp-troubleshooting:
:namespace: openshift-adp
:local-product: OADP
:must-gather: registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.1
@@ -95,6 +96,10 @@ include::modules/oadp-restic-issues.adoc[leveloffset=+1]
include::modules/oadp-restic-restore-failing-psa-policy.adoc[leveloffset=+2]
include::modules/migration-using-must-gather.adoc[leveloffset=+1]
[role="_additional-resources"]
.Additional resources
* xref:../../support/gathering-cluster-data.adoc#gathering-cluster-data[Gathering cluster data]
include::modules/migration-combining-must-gather.adoc[leveloffset=+2]
include::modules/oadp-monitoring.adoc[leveloffset=+1]
[role="_additional-resources"]
@@ -111,4 +116,4 @@ include::modules/oadp-creating-alerting-rule.adoc[leveloffset=+2]
include::modules/oadp-list-of-metrics.adoc[leveloffset=+2]
include::modules/oadp-viewing-metrics-ui.adoc[leveloffset=+2]
:!oadp-troubleshooting:
:oadp-troubleshooting!:

View File

@@ -28,8 +28,11 @@ endif::[]
* You must be logged in to the {product-title} cluster as a user with the `cluster-admin` role.
* You must have the OpenShift CLI (`oc`) installed.
ifdef::oadp-troubleshooting[]
* You must use {op-system-base-full} 8.x with OADP 1.2.
* You must use {op-system-base-full} {op-system-version} with OADP 1.3.
endif::[]
.Procedure
@@ -38,27 +41,40 @@ endif::[]
ifdef::troubleshooting-3-4,troubleshooting-mtc[]
* To collect data for the past hour:
+
[source,terminal]
----
$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8
----
+
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].
* To collect data for the past 24 hours:
+
[source,terminal]
----
$ oc adm must-gather --image=registry.redhat.io/rhmtc/openshift-migration-must-gather-rhel8:v1.8 -- /usr/bin/gather_metrics_dump
----
+
This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`.
endif::[]
ifdef::oadp-troubleshooting[]
* Full `must-gather` data collection, including Prometheus metrics:
endif::[]
.. For OADP 1.2, use the following command:
+
[source,terminal]
----
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2
----
+
.. For OADP 1.3, use the following command:
+
[source,terminal]
----
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3
----
+
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].
ifdef::oadp-troubleshooting[]
* Essential `must-gather` data collection, without Prometheus metrics, for a specific time duration:
+
[source,terminal,subs="attributes+"]
@@ -76,24 +92,20 @@ $ oc adm must-gather --image={must-gather} \
-- /usr/bin/gather_with_timeout <timeout> <1>
----
<1> Specify a timeout value in seconds.
endif::[]
ifdef::troubleshooting-3-4,troubleshooting-mtc[]
* To collect data for the past 24 hours:
endif::[]
ifdef::oadp-troubleshooting[]
* Prometheus metrics data dump:
endif::[]
.. For OADP 1.2, use the following command:
+
[source,terminal]
----
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2 -- /usr/bin/gather_metrics_dump
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:v1.2 -- /usr/bin/gather_metrics_dump
----
.. For OADP 1.3, use the following command:
+
[source,terminal]
----
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3 -- /usr/bin/gather_metrics_dump
$ oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3 -- /usr/bin/gather_metrics_dump
----
This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`.
endif::[]