Bug 2110567 - OC 4.10.21 CLI errors with the server doesn't have a resource type "egressfirewalls"
Summary: OC 4.10.21 CLI errors with the server doesn't have a resource type "egressfir...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.z
Assignee: Jan Chaloupka
QA Contact: zhou ying
URL:
Whiteboard:
: 2118264 (view as bug list)
Depends On: 2095708
Blocks: 2116526
TreeView+ depends on / blocked
 
Reported: 2022-07-25 16:11 UTC by Andy Bartlett
Modified: 2022-08-29 06:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2116526 (view as bug list)
Environment:
Last Closed: 2022-08-29 06:46:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1222 0 None Merged [release-4.11] bug 2110567: oc adm inspect: check a resource exists before its inspection 2022-08-18 10:07:06 UTC
Red Hat Product Errata RHBA-2022:6143 0 None None None 2022-08-29 06:47:13 UTC

Description Andy Bartlett 2022-07-25 16:11:37 UTC
Description of problem:

My customer reports the following issue:

On OCP 4.10.21:

[andytest@andyb ~]$ oc adm inspect ns/sso
Gathering data for ns/sso...
Wrote inspect data to inspect.local.3515018820034322573.
error: errors occurred while gathering data:
    the server doesn't have a resource type "egressfirewalls"
[andytest@andyb ~]$

[andytest@andyb ~]$ oc version
Client Version: 4.10.21
Server Version: 4.10.21
Kubernetes Version: v1.23.5+3afdacb
[andytest@andyb ~]$

This also seems to have an effect on must-gathers:

.
.
Gathering data for ns/openshift-operator-lifecycle-manager...
Gathering data for ns/openshift-service-ca-operator...
Gathering data for ns/openshift-service-ca...
Gathering data for ns/openshift-cluster-csi-drivers...
Gathering data for ns/sso...
Wrote inspect data to inspect.local.3121717698931865044.
error: errors occurred while gathering data:
    [skipping gathering namespaces/openshift-config due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-config-managed due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-authentication due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-authentication-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-oauth-apiserver due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-machine-api due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-cloud-controller-manager-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-cloud-controller-manager due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-cloud-credential-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-config-operator due to error: the server doesn't have a resource type "egressfirewalls", 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", skipping gathering namespaces/openshift-cluster-storage-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-dns-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-dns due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-etcd-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-etcd due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-image-registry due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-ingress-operator 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", skipping gathering namespaces/openshift-insights due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering secrets/support due to error: secrets "support" not found, skipping gathering namespaces/openshift-kube-apiserver-operator due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-kube-apiserver due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering namespaces/openshift-kube-controller-manager due to error: the server doesn't have a resource type "egressfirewalls", skipping gathering 
.
.
.
 and keeps going

Version-Release number of selected component (if applicable):

OCP 4.10.21

It also appears that high versions of the client dont work either.

How reproducible:

100%

Steps to Reproduce:
See above

Actual results:


Expected results:


Additional info:

Comment 2 Jan Chaloupka 2022-08-15 09:42:39 UTC
*** Bug 2118264 has been marked as a duplicate of this bug. ***

Comment 3 zhou ying 2022-08-18 06:28:11 UTC
Build the oc client with the pr, can't reproduce the issue now . 
./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.8267274510356982591.

Comment 7 errata-xmlrpc 2022-08-29 06:46:55 UTC
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 (OpenShift Container Platform 4.11.2 bug fix 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/RHBA-2022:6143


Note You need to log in before you can comment on or make changes to this bug.