When you need to troubleshoot an issue with hosted control plane clusters, you can gather information by running the must-gather
command. The command generates output for the management cluster and the hosted cluster.
The output for the management cluster contains the following content:
-
Cluster-scoped resources: These resources are node definitions of the management cluster.
-
The hypershift-dump
compressed file: This file is useful if you need to share the content with other people.
-
Namespaced resources: These resources include all of the objects from the relevant namespaces, such as config maps, services, events, and logs.
-
Network logs: These logs include the OVN northbound and southbound databases and the status for each one.
-
Hosted clusters: This level of output involves all of the resources inside of the hosted cluster.
The output for the hosted cluster contains the following content:
-
Cluster-scoped resources: These resources include all of the cluster-wide objects, such as nodes and CRDs.
-
Namespaced resources: These resources include all of the objects from the relevant namespaces, such as config maps, services, events, and logs.
Although the output does not contain any secret objects from the cluster, it can contain references to the names of secrets.
Prerequisites
-
You must have cluster-admin
access to the management cluster.
-
You need the name
value for the HostedCluster
resource and the namespace where the CR is deployed.
-
You must have the hcp
command line interface installed. For more information, see Installing the hosted control planes command line interface.
-
You must have the OpenShift CLI (oc
) installed.
-
You must ensure that the kubeconfig
file is loaded and is pointing to the management cluster.