Skip to content

Commit 7a9d5a4

Browse files
authored
Merge pull request #33588 from apinnick/mig683-debug-mtc-resources
MIG-683: Debug resources and updated log sections
2 parents f291a60 + c81cc24 commit 7a9d5a4

File tree

5 files changed

+78
-27
lines changed

5 files changed

+78
-27
lines changed

migrating_from_ocp_3_to_4/troubleshooting-3-4.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This section describes resources for troubleshooting the {mtc-full} ({mtc-short}
1212

1313
This section describes logs and debugging tools that you can use for troubleshooting.
1414

15-
include::modules/migration-downloading-logs.adoc[leveloffset=+2]
15+
include::modules/migration-viewing-migration-plan-resources.adoc[leveloffset=+2]
16+
include::modules/migration-viewing-migration-plan-log.adoc[leveloffset=+2]
1617
include::modules/migration-using-mig-log-reader.adoc[leveloffset=+2]
1718
include::modules/migration-using-must-gather.adoc[leveloffset=+2]
1819
include::modules/migration-debugging-velero-resources.adoc[leveloffset=+2]

migration-toolkit-for-containers/troubleshooting-mtc.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This section describes resources for troubleshooting the {mtc-full} ({mtc-short}
1212

1313
This section describes logs and debugging tools that you can use for troubleshooting.
1414

15-
include::modules/migration-downloading-logs.adoc[leveloffset=+2]
15+
include::modules/migration-viewing-migration-plan-resources.adoc[leveloffset=+2]
16+
include::modules/migration-viewing-migration-plan-log.adoc[leveloffset=+2]
1617
include::modules/migration-using-mig-log-reader.adoc[leveloffset=+2]
1718
include::modules/migration-using-must-gather.adoc[leveloffset=+2]
1819
include::modules/migration-debugging-velero-resources.adoc[leveloffset=+2]

modules/migration-downloading-logs.adoc

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * migrating_from_ocp_3_to_4/troubleshooting-3-4.adoc
4+
// * migration-toolkit-for-containers/troubleshooting-mtc
5+
6+
[id="migration-viewing-migration-plan-log_{context}"]
7+
= Viewing a migration plan log
8+
9+
You can view an aggregated log for a migration plan. You use the {mtc-short} web console to copy a command to your clipboard and then run the command from the command line interface (CLI).
10+
11+
The command displays the filtered logs of the following pods:
12+
13+
* `Migration Controller`
14+
* `Velero`
15+
* `Restic`
16+
* `Rsync`
17+
* `Stunnel`
18+
* `Registry`
19+
20+
.Procedure
21+
22+
. In the {mtc-short} web console, click *Migration Plans*.
23+
. Click the *Migrations* number next to a migration plan to view the *Migrations* page.
24+
+
25+
The *Migrations* page displays the migration types associated with the migration plan, for example, *Stage* or *Cutover* for warm migration.
26+
27+
. Click *View logs*.
28+
. Click the Copy icon to copy the `oc logs` command to your clipboard.
29+
. Log in to the relevant cluster and enter the command on the CLI.
30+
+
31+
The aggregated log for the migration plan is displayed.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * migrating_from_ocp_3_to_4/troubleshooting-3-4.adoc
4+
// * migration-toolkit-for-containers/troubleshooting-mtc.adoc
5+
6+
[id="migration-viewing-migration-plan-resources_{context}"]
7+
= Viewing migration plan resources
8+
9+
You can view migration plan resources to monitor a running migration or to troubleshoot a failed migration by using the {mtc-short} web console and the command line interface (CLI).
10+
11+
.Procedure
12+
13+
. In the {mtc-short} web console, click *Migration Plans*.
14+
. Click the *Migrations* number next to a migration plan to view the *Migrations* page.
15+
+
16+
The *Migrations* page displays the migration types associated with the migration plan, for example, *Stage*, *Migration*, or *Rollback*.
17+
18+
. Click the *Type* link to view the *Migration details* page.
19+
20+
. Expand *Migration resources* to view the migration resources and their status.
21+
+
22+
[NOTE]
23+
====
24+
To troubleshoot a failed migration, start with a high-level resource that has failed and then work down the resource tree towards the lower-level resources.
25+
====
26+
27+
. Click the Options menu {kebab} next to a resource and select one of the following options:
28+
29+
* *Copy `oc describe` command* copies the command to your clipboard.
30+
31+
** Log in to the relevant cluster and then run the command.
32+
+
33+
The conditions and events of the resource are displayed in YAML format.
34+
35+
* *Copy `oc logs` command* copies the command to your clipboard.
36+
37+
** Log in to the relevant cluster and then run the command.
38+
+
39+
If the resource supports log filtering, a filtered log is displayed.
40+
41+
* *View JSON* displays the resource data in JSON format in a web browser.
42+
+
43+
The data is the same as the output for the `oc get <resource>` command.

0 commit comments

Comments
 (0)