Bug #8230
closedNew host form errors after validation error
Description
While attempting to create a new host on Sat-6.0.4, I entered a Name "thomasmckay-sam" that had already been taken; proper validation red error box appeared. I then changed the name to "rpi-sam" in the form to a unique one and submitted again. The following appeared
Failed to create a compute rhevm1.satellite.lab.eng.rdu2.redhat.com (RHEV) instance rpi-sam.released-el7.satellite.lab.eng.rdu2.redhat.com: Name must be formed of alphanumeric characters, numbers or "-_.".
This leads, of course, to a situation where the entire new form must be reloaded and all values re-entered. After that the "rpi-sam" name works fine.
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Need more information
Please provide logs, and/or foreman-debug from the time of the host creation requests.
Updated by Anonymous over 9 years ago
foreman-debug-h9lqo.tar.xz is the debug file name
Updated by Dominic Cleal over 9 years ago
"interfaces_attributes"=>{"new_interfaces"=>{"name"=>"", "network"=>"d846e2ca-b581-4725-aa5a-694481ac5181", "_delete"=>""}, "0"=>{"name"=>"Raspberry Pi - released el7", "network"=>"68ca82ba-6256-4cdf-8772-6c9db1c20377", "_delete"=>""}},
suggests you've entered an invalid name in the interfaces field under the VM tab, so RHEV is rejecting it. Try using the valid characters that it suggests, no spaces.
Updated by Tomer Brisker about 8 years ago
- Status changed from Need more information to Rejected
Could not reproduce in current version.
Discussion above indicates problem might not be related to the original validation error but rather to a bad name given to an interface which was rejected by rhev.
Rejecting.