Bug 2095708 - oc adm inspect throws out erorr "the server doesn't have a resource type "egressfirewalls" for all operators
Summary: oc adm inspect throws out erorr "the server doesn't have a resource type "egr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.12.0
Assignee: Jan Chaloupka
QA Contact: zhou ying
URL:
Whiteboard:
: 2097162 (view as bug list)
Depends On:
Blocks: 2110567 2118264
TreeView+ depends on / blocked
 
Reported: 2022-06-10 10:21 UTC by Junqi Zhao
Modified: 2023-01-17 19:50 UTC (History)
6 users (show)

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*])
Clone Of:
: 2117225 (view as bug list)
Environment:
Last Closed: 2023-01-17 19:49:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1215 0 None Merged bug 2095708: oc adm inspect: check a resource exists before its inspection 2022-08-03 10:33:36 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:50:17 UTC

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


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