oc adm inspect and oc adm must-gather do not report 'all' in relatedObjects
Issue
-
When running
oc adm must-gather
command, you will see the following error message:error: gather never finished for pod must-gather-xxx: timed out waiting for the condition
# oc adm must-gather [must-gather ] OUT unable to resolve the imagestream tag openshift/must-gather:latest [must-gather ] OUT [must-gather ] OUT Using must-gather plugin-in image: quay.io/openshift/origin-must-gather:latest ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [must-gather-bfk49] POD Gathering data for ns/openshift-image-registry... [must-gather-bfk49] OUT gather logs unavailable: unexpected EOF [must-gather-bfk49] OUT waiting for gather to complete [must-gather-bfk49] OUT gather never finished: timed out waiting for the condition [must-gather ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-xxxx deleted [must-gather ] OUT namespace/openshift-must-gather-xxxx deleted error: gather never finished for pod must-gather-xxxx: timed out waiting for the condition
-
When running
oc adm inspect clusteroperator/monitoring
command, you will see the following error message:skipping gathering all/openshift-monitoring due to error: the server doesn't have a resource type "all"
.# oc adm inspect clusteroperator/monitoring Gathering data for ns/openshift-monitoring... Wrote inspect data to inspect.local.000000000000. error: errors ocurred while gathering data: skipping gathering all/openshift-monitoring due to error: the server doesn't have a resource type "all"
Environment
- OpenShift Container Platform 4.4.13 and lower
- OpenShift Container Platform 4.5.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.