Bug 2283981 - Must-gather: Error in the oc describe command of csidriver, collection of describe output fails
Summary: Must-gather: Error in the oc describe command of csidriver, collection of des...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: must-gather
Version: 4.16
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.16.0
Assignee: yati padia
QA Contact: Neha Berry
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-30 12:28 UTC by Neha Berry
Modified: 2024-07-17 13:24 UTC (History)
3 users (show)

Fixed In Version: 4.16.0-120
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-07-17 13:24:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-must-gather pull 172 0 None open Bug 2283981:[release-4.16] correct oc describe csidriver collection 2024-06-04 12:08:03 UTC
Red Hat Product Errata RHSA-2024:4591 0 None None None 2024-07-17 13:24:13 UTC

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


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