Bug 1418043

Summary: [dev-preview-stg] MongoDB - removing memory limit causes failed DC creation
Product: OpenShift Online Reporter: Vikas Laad <vlaad>
Component: TemplatesAssignee: Vu Dinh <vdinh>
Status: CLOSED WONTFIX QA Contact: XiuJuan Wang <xiuwang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.xCC: abhgupta, aos-bugs, jokerman, mifiedle, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: online_3.4.1
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-15 07:09:36 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:
Attachments:
Description Flags
screenshot none

Description Vikas Laad 2017-01-31 16:54:41 UTC
Created attachment 1246368 [details]
screenshot

Description of problem:
Using mongodb-persistent-template template to create Mongo DB Pod, and removing Memory Limit parameter causes Pod to fail with following error

Failed to create MongoDB (Persistent) in project vlaad.
Cannot create deployment config "mongodb". DeploymentConfig in version "v1" cannot be handled as a DeploymentConfig: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'.


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

How reproducible:
When removed default value from memory limit

Steps to Reproduce:
1. create new project and app using mongodb-persistent-template in console
2. Remove memory limit parameter

Actual results:
Console lets user create the app, but fails later.

Expected results:
Console should show error message and Memory limit should be a required parameter.

Additional info:
See the screenshot.

Comment 1 Vu Dinh 2017-02-01 15:16:08 UTC
PR: https://github.com/openshift/origin/pull/12742/ is merged to fix the issue. The change will be imported into template in Online repo.

Comment 2 Xiaoli Tian 2017-06-15 07:09:36 UTC
OpenShift Online Preview has been decommissioned, go to https://manage.openshift.com/ for using OpenShift Online starter cluster