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

Bug 1906274

Summary: StorageClass installed by Cinder csi driver operator should enable the allowVolumeExpansion to support volume resize.
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: StorageAssignee: Martin André <m.andre>
Storage sub component: OpenStack CSI Drivers QA Contact: Wei Duan <wduan>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: aos-bugs, m.andre, pprinett, rheinzma
Version: 4.7Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:41:51 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 Wei Duan 2020-12-10 06:03:42 UTC
Description of problem:
Currently, the storageclass "standard-csi" installed by Cinder csi driver operator doesn't enable the allowVolumeExpansion.
It's better to enable it as default like Cinder in-tree plugin to support volume resize.

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-09-112139

How reproducible:
Always

Steps to Reproduce:
1. Install OSP cluster and cinder csi driver is installed. 
2. Check the storageclass installed by cinder csi driver operator if volume resize is enabled by default.

Actual results:
$ oc get sc standard-csi
NAME           PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
standard-csi   cinder.csi.openstack.org   Delete          WaitForFirstConsumer   false                  5h18m

Expected results:
It's better to enable it as default like Cinder in-tree plugin to support volume resize.

Comment 2 Martin André 2021-01-11 14:36:28 UTC
It looks like we're setting the `allowVolumeExpansion: true` property in the StorageClass already:

https://github.com/openshift/cluster-storage-operator/blob/19981dc/assets/storageclasses/openstack.yaml#L9

Why is it not picked up?

Comment 3 Martin André 2021-01-11 17:00:07 UTC
(In reply to Martin André from comment #2)
> It looks like we're setting the `allowVolumeExpansion: true` property in the
> StorageClass already:
> 
> https://github.com/openshift/cluster-storage-operator/blob/19981dc/assets/
> storageclasses/openstack.yaml#L9
> 
> Why is it not picked up?

My bad, I was looking at the storage class for the in-tree cinder provisioner. The cinder-csi one doesn't have it.
https://github.com/openshift/openstack-cinder-csi-driver-operator/blob/eb9f7a3/assets/storageclass.yaml

Comment 6 Wei Duan 2021-01-20 07:29:02 UTC
Verified pass on 4.7.0-0.nightly-2021-01-19-095812

$ oc get sc standard-csi
NAME           PROVISIONER                RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
standard-csi   cinder.csi.openstack.org   Delete          WaitForFirstConsumer   true                   3h57m

Comment 7 Mike Fedosin 2021-01-20 17:04:38 UTC
*** Bug 1917022 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2021-02-24 15:41: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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633