Bug 2278681

Summary: Must-gather needs changes in the API names for the deprecated Storageclassclaim, Storageclassrequest etc
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: high Docs Contact:
Priority: unspecified    
Version: 4.16CC: odf-bz-bot, ypadia
Target Milestone: ---   
Target Release: ODF 4.16.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: isf-provider
Fixed In Version: 4.16.0-96 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-17 13:21:52 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-02 17:53:58 UTC
Created attachment 2030900 [details]
must-gather.log

Created attachment 2030900 [details]
must-gather.log

Description of problem (please be detailed as possible and provide log
snippests):
======================================================================
With 4.16.0-89 build, we do not have storageclassclaim API any longer. We now have storageclaim API

See bug https://bugzilla.redhat.com/show_bug.cgi?id=2273305

>> Command used: oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.16  -- /usr/bin/gather -o -pc

Please make the change in the must-gather too to collect the correct details from oc get storageclaim instead of oc get storageclassclaim

>> [must-gather-nrhll] POD 2024-05-02T17:36:01.343781206Z collecting oc command storageclassclaims
[must-gather-nrhll] POD 2024-05-02T17:36:01.498241424Z error: the server doesn't have a resource type "storageclassclaims"


[must-gather-nrhll] POD 2024-05-02T17:36:01.677857364Z collecting oc describe command storageclassclaims

[must-gather-nrhll] POD 2024-05-02T17:36:01.837629563Z error: the server doesn't have a resource type "storageclassclaims"


Same is seen for storageclassrequest. I am trying to collect the list of all APIs which changed in recent builds here [1]

[1] https://ibm-systems-storage.slack.com/archives/C06EPQRBM36/p1714671731551189


Version of all relevant components (if applicable):
=====================================================
ODF 4.16.0-89
ODF provider - v4.16.0-89
Client - v4.16.0-89

OCP 4.16.0-ec.5


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
===========================================================
The relevant logs and details are not collected in MG

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)?
===========================================================
3


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:
===========================================================
No. Change in the names of the APIs


Steps to Reproduce:
===========================================================
1. Create a provider/client cluster with latest ODF build , say 4.16.0-89
2. Collect must-gather using
a) oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.16  -- /usr/bin/gather -o -pc
OR
b) oc adm must-gather --image=quay.io/rhceph-dev/ocs-must-gather:latest-4.16  -- /usr/bin/gather 
3. Check the logs


Actual results:
==================
Storageclassclaim, storageclassrequest API details are not collected as the command fails


Expected results:
===================
The must-gather needs to make changes to the API names


Additional info:

Logs http://rhsqe-repo.lab.eng.blr.redhat.com/OCS/ocs-qe-bugs/bm2.zip

Comment 9 errata-xmlrpc 2024-07-17 13:21:52 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