Red Hat Bugzilla – Bug 1285375
RHEV Hypervisor custom naming scheme does not check for invalid characters
Last modified: 2016-10-03 15:00:52 EDT
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):
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
No check for invalid characters is performed; user is allowed to continue with invalid characters in hostname
Check for invalid characters; don't allow to continue with invalid characters in hostname
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: