Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1241557

Summary: The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.
Product: OpenShift Container Platform Reporter: Miheer Salunke <misalunk>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED DUPLICATE QA Contact: Yanping Zhang <yanpzhan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: jokerman, libra-bugs, libra-onpremise-devel, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-14 02:06:10 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:

Description Miheer Salunke 2015-07-09 13:31:49 UTC
Description of problem:

The length APPLICATION_NAME is not validated in the UI. The creation produces some garbage, e.g image streams & deployment configurations.

Service name limit is at most 24 chars so we shall check the service name in the template 
Eg-https://github.com/openshift/training/blob/master/beta4/eap6-basic-sti.json#L117
"name": "${APPLICATION_NAME}-https-service",
Here we shall allow ${APPLICATION_NAME} to be of 10 chars only as already 
-https-service is of 14 chars.

From the command line you will get an error.

Failed to create eap6-basic-sti in project xyz-demo1-with-eap6 
Cannot create Service x2345678901-https-service. Service "x2345678901-https-service" is invalid: metadata.name: invalid value 'x2345678901-https-service': must be a DNS 952 label (at most 24 characters, matching regex [a-z]([-a-z0-9]*[a-z0-9])?): e.g. "my-name"

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

How reproducible:
Always

Steps to Reproduce:
1.Give application name whose length is more than 10 chars
2. Use template https://github.com/openshift/training/blob/master/beta4/eap6-basic-sti.json
3. Create an app

Actual results:
Not giving recommendation for app name length or not validating app length

Expected results:
It shall give the recommendations for app name length or validate it

Additional info:

Comment 2 Yanping Zhang 2015-07-14 02:06:10 UTC
It should be the same issue with this bug https://bugzilla.redhat.com/show_bug.cgi?id=1233503. So will close it as duplicated.

*** This bug has been marked as a duplicate of bug 1233503 ***