Bug 1391661

Summary: Better error message for templates missing memory specification
Product: OpenShift Container Platform Reporter: Juraci Paixão Kröhling <jcosta>
Component: openshift-controller-managerAssignee: Michal Fojtik <mfojtik>
Status: CLOSED EOL QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: low    
Version: 3.3.1CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
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: 2019-08-23 12:49: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:

Description Juraci Paixão Kröhling 2016-11-03 17:09:20 UTC
When a custom template has an invalid memory specification, the following message is shown:

"""
error Cannot create deployment config "hawkular-apm". DeploymentConfig in version "v1" cannot be handled as a DeploymentConfig: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
"""

This error message could be improved a bit, by saying something like "The given memory specification is invalid: (empty) "

Comment 1 Michal Fojtik 2017-03-24 09:50:37 UTC
Agree, the regexp is a little bit inhuman.