Bug 1991814 - "oc adm inspect co storage" returns an error message when there is no openshift-manila-csi-driver ns.
Summary: "oc adm inspect co storage" returns an error message when there is no openshi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.9.0
Assignee: Jan Safranek
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-10 05:51 UTC by Wei Duan
Modified: 2021-10-18 17:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:45:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-storage-operator pull 202 0 None None None 2021-08-19 09:22:22 UTC
Github openshift csi-driver-manila-operator pull 115 0 None None None 2021-08-19 09:22:22 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:45:41 UTC

Description Wei Duan 2021-08-10 05:51:05 UTC
Description of problem:

Execute "oc adm inspect co storage" on a Azure cluster which has no openshift-manila-csi-driver ns, the cmd returns an error message:
$ oc adm inspect co storage
Gathering data for ns/openshift-cluster-storage-operator...
Gathering data for ns/openshift-cluster-csi-drivers...
Wrote inspect data to inspect.local.4356476781761520600.
error: errors ocurred while gathering data:
    skipping gathering namespaces/openshift-manila-csi-driver due to error: namespaces "openshift-manila-csi-driver" not found

Version-Release number of selected component (if applicable):
Client Version: 4.9.0-0.nightly-2021-08-07-175228
Server Version: 4.9.0-0.nightly-2021-08-07-175228
Kubernetes Version: v1.21.1+8268f88


How reproducible:
Always

Steps to Reproduce:
1. Install a cluster on Azure
2. Using the oc adm inspect to collect storage info  
$ oc adm inspect co storage

Actual results:
error: errors ocurred while gathering data

Expected results:
It is not an "error" even if there is no openshift-manila-csi-driver ns.

Comment 1 Wei Duan 2021-08-10 05:53:05 UTC
I'm not sure if this is a oc bug or not, I filed in storage component first.

Comment 2 Jan Safranek 2021-08-10 11:31:53 UTC
It's a storage bug, we put a wrong relatedObjects to ClusterOperator "storage" instance. Apparently it needs to be more selective.

Comment 7 Wei Duan 2021-09-01 05:51:01 UTC
Verified pass in a vSphere cluster on 4.9.0-0.nightly-2021-08-31-123131

$ oc adm inspect co storage
Gathering data for ns/openshift-cluster-storage-operator...
Gathering data for ns/openshift-cluster-csi-drivers...
Wrote inspect data to inspect.local.1498484822019731959.

Comment 10 errata-xmlrpc 2021-10-18 17:45:29 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.9.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-2021:3759


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