Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1491495 - Storage size could not be set with decimal on web console
Storage size could not be set with decimal on web console
Status: CLOSED CURRENTRELEASE
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.7.0
Unspecified Unspecified
medium Severity low
: ---
: 3.7.0
Assigned To: Samuel Padgett
Yadan Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-13 22:23 EDT by Yanping Zhang
Modified: 2017-11-28 03:28 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-01 07:26:14 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Yanping Zhang 2017-09-13 22:23:08 EDT
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 15:45:23 EDT
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 04:25:12 EDT
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.