Bug 1700182

Summary: PVC expansion for WebUI reports cannot expand with message "Can't be greater than ."
Product: OpenShift Container Platform Reporter: Jatan Malde <jmalde>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, aos-storage-staff, jokerman, jsafrane, mmccomas
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-18 13:18:43 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 Jatan Malde 2019-04-16 05:29:43 UTC
Description of problem:

IHAC using PVC expansion feature for `glusterfs-storage` which is working fine and they are able to expand volumes from CLI and WebUI. 

The problem occurs when they have limitranges and resourcequota (see attachments) in the project. The expansion works fine here with only CLI and reportes error from webUI when attempted with the message "Can't be greater than ."

See attachment for the error message (webconsole screenshot),

The storage aligned for the cluster is enough and there are no resource constraints. 

Similar to, 
https://github.com/openshift/origin-web-console/issues/3096

Version-Release number of selected component (if applicable):

[root@master-0 master]# oc version
oc v3.11.88
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://openshift.internal.sharedocp311cns.lab.rdu2.cee.redhat.com:443
openshift v3.11.98
kubernetes v1.11.0+d4cacc0


How reproducible:


Steps to Reproduce:
1. Configure a 3.11 cluster with dynamic storage class enabled with volumeexpansion feature.
2. Create a pvc with some small capacity.
3. Configure limitranges and resourcequota for the project 
4. Attempt expanding volume from the webUI for the created pvc.

Actual results:

Reports error when expanding pvc from the webUI

Expected results:

Expected to work proper with webUI as well when resource quota are in picture

Additional info:

Comment 5 Jan Safranek 2019-04-18 13:16:59 UTC
"storage" BZ component does not maintain GUI for volume expansion. The message comes from origin-web-console/, probably this web page: https://github.com/openshift/origin-web-console/blob/64c2a7cbf4f1bf56fe78b62abc11d8eb24ba8dec/app/views/modals/edit-pvc-resource.html#L88

Comment 6 Samuel Padgett 2019-04-18 13:18:43 UTC

*** This bug has been marked as a duplicate of bug 1688318 ***