Description of problem: When deploying RHEVM, in step 2C Hypervisors, the host naming scheme 'Custom scheme' does not check for invalid characters in 'Prepend host names with' field. This can cause an invalid hostname to be added and the deployment to fail. Version-Release number of selected component (if applicable): RHCI-6.0-RHEL-7-20151118.t.0-RHCI-x86_64-dvd1.iso How reproducible: Always Steps to Reproduce: 1. Start a deployment of RHEVM 2. Go to step 2C Hypervisors, choose naming scheme 'Custom scheme' 3. Fill out some invalid characters in the 'Prepend host names with' field 4. Click Next, no check is performed Actual results: No check for invalid characters is performed; user is allowed to continue with invalid characters in hostname Expected results: Check for invalid characters; don't allow to continue with invalid characters in hostname Additional info:
See also: https://bugzilla.redhat.com/show_bug.cgi?id=1285393
The UI already has checks against invalid characters in mac naming scheme. When invalid characters are entered, the "Next" button is disabled. In addition, invalid characters are checked as part of backend validation in the deployment summary screen. The changes can be tracked in: https://github.com/fusor/fusor/pull/600
Verified. RHCI-6.0-RHEL-7-20160122.t.1-RHCI-x86_64-dvd1.iso