Bug 2283981

Summary: Must-gather: Error in the oc describe command of csidriver, collection of describe output fails
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Neha Berry <nberry>
Component: must-gatherAssignee: yati padia <ypadia>
Status: CLOSED ERRATA QA Contact: Neha Berry <nberry>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.16CC: muagarwa, odf-bz-bot, ypadia
Target Milestone: ---   
Target Release: ODF 4.16.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.16.0-120 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-17 13:24:10 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:

Description Neha Berry 2024-05-30 12:28:51 UTC
Description of problem (please be detailed as possible and provide log
snippests):
======================================================================

Command used:

>> On provider + native client cluster
oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.16  -- /usr/bin/gather -o -pc -cs -c 



1. Describe output of csidriver is missing in the files under places #1 and #2 mentioned below

pwd
must-gather.local.6128891021775078451/quay-io-rhceph-dev-ocs-must-gather-sha256-2e1ffa6ae3071500829dbc1ff82910f4eb6a2123c7d1147523659ed6cb22f7b6/csidriver

cd csidriver 
nberry@Nehas-MacBook-Pro csidriver % ls -ltrh
total 24
-rw-r--r--  1 nberry  staff   439B May 30 16:13 get_csidriver
-rw-r--r--  1 nberry  staff    77B May 30 16:13 desc_csidriver
-rw-r--r--  1 nberry  staff   957B May 30 16:13 csidriver.yaml


--------------------------

>> 2. Also, under cluster_scoped folder ($Mg/cluster-scoped-resources/oc_output), describe file is missing for csidriver

In https://github.com/yati1998/odf-must-gather/blob/55762c46b2e5fd22fd53d071f25f52b74beb3b89/collection-scripts/gather_clusterscoped_resources

I do not see csidriver in the describe section

collect describe output of OC commands
commands_desc=()
commands_desc+=("pv")
commands_desc+=("ob")
commands_desc+=("sc")
commands_desc+=("nodes")
commands_desc+=("clusterversion")
commands_desc+=("infrastructures.config")
commands_desc+=("clusterrole")
commands_desc+=("clusterrolebinding")
commands_desc+=("scc")
commands_desc+=("volumereplicationclass")
commands_desc+=("volumesnapshotclass")
commands_desc+=("volumesnapshotcontent")
commands_desc+=("volumegroupsnapshotclass")
commands_desc+=("volumegroupsnapshotcontent")

Please add csidriver to the list too


Version of all relevant components (if applicable):
====================================================
4.16

Need to check if the issue is also present in 4.15, 4.14


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
=====================================
No

Is there any workaround available to the best of your knowledge?
=====================================
No


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
=====================================
2

Can this issue reproducible?
=====================================
yes


Can this issue reproduce from the UI?
=====================================
NA


If this is a regression, please provide more details to justify this:
===================================== 
Not sure


Steps to Reproduce:
=====================================
1. Run the must-gather command as mentioned in Description
2. Check the content of  folder "csidriver" 
  ls -ltrh
total 24
-rw-r--r--  1 nberry  staff   439B May 30 16:13 get_csidriver
-rw-r--r--  1 nberry  staff    77B May 30 16:13 desc_csidriver
-rw-r--r--  1 nberry  staff   957B May 30 16:13 csidriver.yaml


3. cat desc_csidriver

 cat desc_csidriver 
Error: unknown shorthand flag: 'o' in -o
See 'oc describe --help' for usage.

Actual results:
================
Error: unknown shorthand flag: 'o' in -o


Expected results:
==================
Command needs to be corrected

Additional info:
=================
Ran the command manually with correct -o option

oc describe csidriver
Name:         openshift-storage.cephfs.csi.ceph.com
Namespace:    
Labels:       <none>
Annotations:  <none>
API Version:  storage.k8s.io/v1
Kind:         CSIDriver
Metadata:
  Creation Timestamp:  2024-05-30T04:44:33Z
  Resource Version:    38196192
  UID:                 7e91e2b9-f7b0-4a0d-bc07-edab37222d8c
Spec:
  Attach Required:     true
  Fs Group Policy:     File
  Pod Info On Mount:   false
  Requires Republish:  false
  Se Linux Mount:      false
  Storage Capacity:    false
  Volume Lifecycle Modes:
    Persistent
Events:  <none>


Name:         openshift-storage.rbd.csi.ceph.com
Namespace:    
Labels:       <none>
Annotations:  <none>
API Version:  storage.k8s.io/v1
Kind:         CSIDriver
Metadata:
  Creation Timestamp:  2024-05-30T04:44:33Z
  Resource Version:    38196194
  UID:                 5ed4ee05-c3ce-4cf7-9359-9fe853827425
Spec:
  Attach Required:     true
  Fs Group Policy:     File
  Pod Info On Mount:   false
  Requires Republish:  false
  Se Linux Mount:      false
  Storage Capacity:    false
  Volume Lifecycle Modes:
    Persistent
Events:  <none>

Comment 4 Sunil Kumar Acharya 2024-06-06 07:34:46 UTC
Please update the RDT flag/text appropriately.

Comment 7 errata-xmlrpc 2024-07-17 13:24:10 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 (Important: Red Hat OpenShift Data Foundation 4.16.0 security, enhancement & 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/RHSA-2024:4591