Bug 1814075

Summary: StorageClassName:Null shows up in StorageCluster.yaml for OCP 4.3 + OCS 4.2.1
Product: OpenShift Container Platform Reporter: afrahman
Component: Console Storage PluginAssignee: afrahman
Status: CLOSED ERRATA QA Contact: Neha Berry <nberry>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.zCC: afrahman, aos-bugs, ebenahar, nberry, nthomas, ocs-bugs
Target Milestone: ---Keywords: Regression
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: https://openshift-release.svc.ci.openshift.org/releasestream/4.3.0-0.ci/release/4.3.0-0.ci-2020-03-20-044318 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1812907 Environment:
Last Closed: 2020-04-08 07:39:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1812907    
Bug Blocks:    

Comment 1 Neha Berry 2020-03-23 07:33:00 UTC
@afreen,

I don't see the fix in a nightly build yet. Do you have any link ?

I am unable to access the CI build you provided to confirm the bug fix. I think it was removed.

Comment 2 afrahman 2020-03-23 08:01:16 UTC
@Neha

The builds get removed after sometime. If the fix comes in one verison then subsequent builds have that fix.
This is ensured. hence any latest build for 4.3 from now on will have the fix.

Nightly builds are failing for some reason.

Comment 4 Neha Berry 2020-03-24 08:06:41 UTC
Verified the fix on OCP nightly build - 4.3.0-0.nightly-2020-03-23-130439 on a VMware cluster + RHCOS


OCP =  4.3.0-0.nightly-2020-03-23-130439

OCS = ocs-operator.v4.3.0-377.ci (4.3.0-rc2)




>>Steps performed:

1. Ran deploy-with-olm.yaml to create 4.3 Operator
   $ oc get catsrc ocs-catalogsource -n openshift-marketplace -o yaml|grep -i image
     image: quay.io/rhceph-dev/ocs-olm-operator:4.3.0-rc2

2. Installed subscription

3. Navigated to Installed Operator->StorageCluster and clicked on Create Storage Cluster

4. thin was selected as default SC, Size was 2TiB by default.( didnt change anything). I did not hit Bug 1812448 and default selection was honored.

5. Clicked on Create and Storagecluster was created. 
   ocs-operator.v4.3.0-377.ci      OpenShift Container Storage   4.3.0-377.ci              Succeeded



YAML from UI
==================

spec:
  storageDeviceSets:
    - config: {}
      count: 1
      dataPVCTemplate:
        metadata:
          creationTimestamp: null
        spec:
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 2Ti
          storageClassName: thin  <---- not NULL
          volumeMode: Block

Hence, moving this BZ to verified state in OCP 4.3 latest nightly build


---snip of storagecluster from CLI-------


 spec:
    storageDeviceSets:
    - config: {}
      count: 1
      dataPVCTemplate:
        metadata:
          creationTimestamp: null
        spec:
          accessModes:
          - ReadWriteOnce
          resources:
            requests:
              storage: 2Ti
          storageClassName: thin
          volumeMode: Block
        status: {}

Comment 7 errata-xmlrpc 2020-04-08 07:39:51 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, 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/RHBA-2020:1262