Bug 1391661 - Better error message for templates missing memory specification
Summary: Better error message for templates missing memory specification
Keywords:
Status: CLOSED EOL
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-controller-manager
Version: 3.3.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-03 17:09 UTC by Juraci Paixão Kröhling
Modified: 2019-08-23 12:49 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-23 12:49:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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