Bug 2095708

Summary: oc adm inspect throws out erorr "the server doesn't have a resource type "egressfirewalls" for all operators
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: ocAssignee: Jan Chaloupka <jchaloup>
oc sub component: oc QA Contact: zhou ying <yinzhou>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: andbartl, jchaloup, maszulik, mfojtik, prubenda, stevsmit
Version: 4.11Keywords: Reopened
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* 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*])
Story Points: ---
Clone Of:
: 2117225 (view as bug list) Environment:
Last Closed: 2023-01-17 19:49:58 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:    
Bug Blocks: 2110567, 2118264    

Description Junqi Zhao 2022-06-10 10:21:43 UTC
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:

Comment 1 Maciej Szulik 2022-06-10 11:56:09 UTC
This was introduced from https://bugzilla.redhat.com/show_bug.cgi?id=2023295 and is expected.

Comment 3 Maciej Szulik 2022-06-13 10:15:11 UTC
Those errors are perfectly fine, since they don't break the collection, but you're right we could change then to warnings. I'll see what's possible.

Comment 4 Maciej Szulik 2022-06-20 11:47:22 UTC
*** Bug 2097162 has been marked as a duplicate of this bug. ***

Comment 12 zhou ying 2022-08-15 05:24:03 UTC
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.

Comment 15 errata-xmlrpc 2023-01-17 19:49:58 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 (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