Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1772072

Summary: Glusterblock RWO PV is not getting correct default storageclass
Product: OpenShift Container Platform Reporter: Dylan Murray <dymurray>
Component: Migration ToolingAssignee: Scott Seago <sseago>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: jmatthew, sregidor
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1768487 Environment:
Last Closed: 2020-02-06 20:20:44 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:    
Bug Blocks: 1768487    

Description Dylan Murray 2019-11-13 15:03:26 UTC
This bug was initially created as a copy of Bug #1768487

I am copying this bug because: 



Description of problem:

A glusterfs (file) volume worked correctly for RWO accessMode and, defaulted to the cephrbd storageclass which is the correct choice for RWO. But when in creating a plan for a glusterblock RWO volume the default was gp2 (EBS) which is not correct, the default should also be cephrbd storageclass given the accessMode was RWO for the PVC.

Here is the PVC that shows up above on the OCP 3.11 source.

$ oc get pvc
NAME      STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS              AGE
mysql     Bound     pvc-915d75d8-fb24-11e9-8546-06cdb92c9cb6   5Gi        RWO            glusterfs-storage-block   2d

Comment 1 John Matthews 2019-12-12 12:25:29 UTC
Fix described in https://bugzilla.redhat.com/show_bug.cgi?id=1768487#c4

Comment 5 Sergio 2020-01-16 13:49:23 UTC
Verified in CAM 1.1 stage

Controller:
    image: registry.stage.redhat.io/rhcam-1-1/openshift-migration-controller-rhel8@sha256:b55c0c36333656a46e1d0500cf11cc8aa06e093d312e7c54f8e1075d4ab4c6c1

Default storage class is ok (cephrbd), even if the glusterfs-block provisioner is using its namespace in its name.

Verified with this storage class
$ oc get sc
NAME                      PROVISIONER                                  AGE
glusterfs-storage         kubernetes.io/glusterfs                      3h
glusterfs-storage-block   gluster.org/glusterblock-openshift-storage   3h

Comment 7 errata-xmlrpc 2020-02-06 20:20:44 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/RHEA-2020:0440