* Previously, `must-gather` was trying to collect resources that were not present on the server. Consequently, `must-gather` would print error messages. Now, before collecting resources, `must-gather` checks whether the resource exists. As a result, `must-gather` no longer prints an error when it fails to collect non-existing resources on the server. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2095708[*BZ#2095708*])
Description of problem:
oc adm inspect throws out erorr "the server doesn't have a resource type "egressfirewalls"" for all operators, and it seems the error does not affect anything.
# oc adm inspect co/console
Gathering data for ns/openshift-console-operator...
Gathering data for ns/openshift-console...
Wrote inspect data to inspect.local.7786784072558388138.
error: errors occurred while gathering data:
[skipping gathering namespaces/openshift-console-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-console due to error: the server doesn't have a resource type "egressfirewalls"]
# oc adm inspect co/ingress
Gathering data for ns/openshift-ingress-operator...
Gathering data for ns/openshift-ingress...
Gathering data for ns/openshift-ingress-canary...
Wrote inspect data to inspect.local.2955278880208823654.
error: errors occurred while gathering data:
[skipping gathering namespaces/openshift-ingress-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-ingress due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-ingress-canary due to error: the server doesn't have a resource type "egressfirewalls"]
# oc explain egressfirewalls
the server doesn't have a resource type "egressfirewalls"
Version-Release number of selected component (if applicable):
# oc version
Client Version: 4.11.0-0.nightly-2022-06-06-201913
Kustomize Version: v4.5.4
Server Version: 4.11.0-0.nightly-2022-06-06-201913
Kubernetes Version: v1.24.0+bb9c2f1
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.7 (Maipo)
How reproducible:
always
Steps to Reproduce:
1. oc adm inspect co/**
2.
3.
Actual results:
throw out erorr "the server doesn't have a resource type "egressfirewalls"" for all operators
Expected results:
no error
Additional info:
oc version --client
Client Version: 4.12.0-0.nightly-2022-08-12-053438
Kustomize Version: v4.5.4
oc adm inspect co/console
Gathering data for ns/openshift-console-operator...
W0815 13:21:57.656797 18494 util.go:119] the server doesn't have a resource type egressfirewalls, skipping the inspection
Gathering data for ns/openshift-console...
W0815 13:22:47.445830 18494 util.go:119] the server doesn't have a resource type egressfirewalls, skipping the inspection
Wrote inspect data to inspect.local.1717921133718357790.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:7399
Description of problem: oc adm inspect throws out erorr "the server doesn't have a resource type "egressfirewalls"" for all operators, and it seems the error does not affect anything. # oc adm inspect co/console Gathering data for ns/openshift-console-operator... Gathering data for ns/openshift-console... Wrote inspect data to inspect.local.7786784072558388138. error: errors occurred while gathering data: [skipping gathering namespaces/openshift-console-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-console due to error: the server doesn't have a resource type "egressfirewalls"] # oc adm inspect co/ingress Gathering data for ns/openshift-ingress-operator... Gathering data for ns/openshift-ingress... Gathering data for ns/openshift-ingress-canary... Wrote inspect data to inspect.local.2955278880208823654. error: errors occurred while gathering data: [skipping gathering namespaces/openshift-ingress-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-ingress due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-ingress-canary due to error: the server doesn't have a resource type "egressfirewalls"] # oc explain egressfirewalls the server doesn't have a resource type "egressfirewalls" Version-Release number of selected component (if applicable): # oc version Client Version: 4.11.0-0.nightly-2022-06-06-201913 Kustomize Version: v4.5.4 Server Version: 4.11.0-0.nightly-2022-06-06-201913 Kubernetes Version: v1.24.0+bb9c2f1 # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.7 (Maipo) How reproducible: always Steps to Reproduce: 1. oc adm inspect co/** 2. 3. Actual results: throw out erorr "the server doesn't have a resource type "egressfirewalls"" for all operators Expected results: no error Additional info: