Bug 2276593

Summary: StorageClaim controller fails to query the type of claim from CR and logs empty value
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Leela Venkaiah Gangavarapu <lgangava>
Component: ocs-client-operatorAssignee: Leela Venkaiah Gangavarapu <lgangava>
Status: CLOSED ERRATA QA Contact: Jilju Joy <jijoy>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.16CC: jijoy, mrajanna, muagarwa, odf-bz-bot, omitrani
Target Milestone: ---Keywords: Regression
Target Release: ODF 4.16.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: isf-provider
Fixed In Version: 4.16.0-85 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-17 13:20:42 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 Leela Venkaiah Gangavarapu 2024-04-23 09:03:34 UTC
storageclaim controller continuously logs error "unsupported storage type: " during reconciles and fails to query the type of the storageclaim.

This created storageclaim to not reconcile properly failing to create storage/volumesnapshot classes.

Found in 4.16.0-84. QA verification only needs regression.

Comment 9 Jilju Joy 2024-05-03 05:46:47 UTC
Verified in version:
$ oc get csv -n openshift-storage-client
NAME                                        DISPLAY                            VERSION            REPLACES   PHASE
ocs-client-operator.v4.16.0-89.stable       OpenShift Data Foundation Client   4.16.0-89.stable              Succeeded
odf-csi-addons-operator.v4.16.0-89.stable   CSI Addons                         4.16.0-89.stable              Succeeded

$ oc get clusterversion
NAME      VERSION       AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.16.0-ec.5   True        False         17h     Cluster version is 4.16.0-ec.5

Verified on hosted cluster created using agent. Provider is ODF 4.16.0-89 on bare metal.

No logs "unsupported storage type"
$ oc logs ocs-client-operator-controller-manager-59d94696b4-6t54z -c manager| grep "unsupported storage type"
$ 

Storageclaims Ready and storageclasses are created.
$ oc get storageclaim 
NAME                      STORAGETYPE   STORAGEPROFILE   STORAGECLIENTNAME   PHASE
storage-client-ceph-rbd   block                          storage-client      Ready
storage-client-cephfs     sharedfile                     storage-client      Ready

$ oc get sc
NAME                      PROVISIONER                             RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
storage-client-ceph-rbd   openshift-storage.rbd.csi.ceph.com      Delete          Immediate           true                   17h
storage-client-cephfs     openshift-storage.cephfs.csi.ceph.com   Delete          Immediate           true                   17h

Comment 10 errata-xmlrpc 2024-07-17 13:20:42 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