Bug 2110567

Summary: OC 4.10.21 CLI errors with the server doesn't have a resource type "egressfirewalls"
Product: OpenShift Container Platform Reporter: Andy Bartlett <andbartl>
Component: ocAssignee: Jan Chaloupka <jchaloup>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: jchaloup, mfojtik, openshift-bugzilla-robot, sreber
Version: 4.10   
Target Milestone: ---   
Target Release: 4.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2116526 (view as bug list) Environment:
Last Closed: 2022-08-29 06:46:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2095708    
Bug Blocks: 2116526    

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