Bug 1491495 - Storage size could not be set with decimal on web console
Summary: Storage size could not be set with decimal on web console
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.7.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-14 02:23 UTC by Yanping Zhang
Modified: 2017-11-28 08:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-01 11:26:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.