Bug 1491495

Summary: Storage size could not be set with decimal on web console
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, wehe, yapei
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-01 11:26:14 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 Yanping Zhang 2017-09-14 02:23:08 UTC
Description of problem:
When create storage from web console, in the size box, input decimal, eg, 1.2, the colour of box will turn red, and create button is disabled. However CLI could create with decimal values.

Version-Release number of selected component (if applicable):
v3.7.0-0.125.0

How reproducible:
always

Steps to Reproduce:
1.Login in web console, on create storage page, in put name, input 1.2 in size box, try to create storage.
2.In client ,create pvc with decimal in size.
$ oc create -f pvc-one.json 
persistentvolumeclaim "myclaim-one" created

$cat pvc-one.json
{
    "apiVersion": "v1",
    "kind": "PersistentVolumeClaim",
    "metadata": {
        "name": "myclaim-one"
    },
    "spec": {
        "accessModes": [ "ReadWriteOnce" ],
        "resources": {
            "requests": {
                "storage": "1.2Gi"
            }
        }
    }
}

3.

Actual results:
1. Create button is disabled, and no error info showing.
2. Storage is created successfully.

Expected results:
1.Should keep consistent with client when create storage. If plan to forbid decimal, error info should display.

Additional info:

Comment 2 openshift-github-bot 2017-09-15 19:45:23 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/0eabd02cbee86741c60486e22f9489c9c166c2d8
Bug 1491495 - Allow decimals in some number inputs

Change compute resources and storage amount inputs to accept decimals.

Comment 4 Yadan Pei 2017-11-01 08:25:12 UTC
Checked on v3.7.0-0.188.0

Now compute-resource and pvc number input supports decimal values on web console

Move to VERIFIED