Bug 1374046

Summary: Cannot use capital letters in Custom Naming Scheme.
Product: Red Hat Quickstart Cloud Installer Reporter: James Olin Oden <joden>
Component: Installation - RHEVAssignee: cchase
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: low Docs Contact: Dan Macpherson <dmacpher>
Priority: unspecified    
Version: 1.0CC: bthurber, jesusr, kdube, smallamp, tpapaioa, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: 1.1   
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: 2017-02-28 01:39:28 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 James Olin Oden 2016-09-07 19:39:07 UTC
Description of problem:
When you add a capital letter to the name template Next is grayed out but no error is printed.

Version-Release number of selected component (if applicable):
QCI-1.0-RHEL-7-20160902.5

How reproducible:
always

Steps to Reproduce:
1.   Do a RHV deployment 
2.   Use the custom name scheme for the hosts, but try to add a capital 
     letter to the name template.

Actual results:
Next is grayed out.

Expected results:
Either it print an error in red, or it allow the capital letter.

Comment 1 James Olin Oden 2016-09-07 19:41:14 UTC
I was wrong it is printing an error but the error is not in red text so it was not apparent to me.

Comment 2 James Olin Oden 2016-09-07 19:42:49 UTC
OK, no it doesn't print an error at all with the custom naming scheme, but it does print a non red error when you try to do a freeform name on an individual host.

Comment 3 James Olin Oden 2016-09-07 19:44:18 UTC
Also, when you do enter a truly invalid char like a comma in the template it will give you an error that says:

This field must contain only 'A-Z', 'a-z', '0-9', '_' or '-' characters.

Note it says A-Z is OK, when probably it shouldn't

Comment 4 James Olin Oden 2016-09-07 19:45:12 UTC
It also says _, and - are OK but the Next button gets grayed out when you use them in the name template.

Comment 5 James Olin Oden 2016-09-07 19:47:06 UTC
Additionally, if one tries to enter a name longer than 43 characters the Next is grayed out with no error.

Comment 7 cchase 2016-09-16 15:43:02 UTC
https://github.com/fusor/fusor/pull/1226

Modified custom naming scheme entry:
- Disallow capital letters and underscores.
- Limit to 40 characters.
- Allow - and . after the first character.
- Changed message to "Custom prefixes must begin with "a-z" or "0-9" and contain only "a-z", "0-9", "." or "-" characters."

Comment 8 Tasos Papaioannou 2016-10-04 19:37:34 UTC
Verified on QCI-1.1-RHEL-7-20161004.t.0.

Comment 11 errata-xmlrpc 2017-02-28 01:39:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:0335