You can collect logs and information about {project-short} custom resources (CRs) by using the must-gather
tool. You must attach a must-gather
data file to all customer cases.
You can gather data for a specific namespace, migration plan, or virtual machine (VM) by using the filtering options.
Note
|
If you specify a non-existent resource in the filtered |
-
You must be logged in to the {virt} cluster as a user with the
cluster-admin
role. -
You must have the {ocp} CLI (
oc
) installed.
-
Navigate to the directory where you want to store the
must-gather
data. -
Run the
oc adm must-gather
command:$ oc adm must-gather --image={must-gather}
The data is saved as
/must-gather/must-gather.tar.gz
. You can upload this file to a support case on the Red Hat Customer Portal. -
Optional: Run the
oc adm must-gather
command with the following options to gather filtered data:-
Namespace:
$ oc adm must-gather --image={must-gather} \ -- NS=<namespace> /usr/bin/targeted
-
Migration plan:
$ oc adm must-gather --image={must-gather} \ -- PLAN=<migration_plan> /usr/bin/targeted
-
Virtual machine:
$ oc adm must-gather --image={must-gather} \ -- VM=<vm_id> NS=<namespace> /usr/bin/targeted (1)
-
Specify the VM ID as it appears in the
Plan
CR.
-
-