Project

General

Profile

Actions

Bug #6919

closed

On host creation with no environment UI displays no error, but silently fails

Added by Brad Buckingham almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1113588
Description of problem:
After submitting new host creation form, with empty environment, no error is shown, but host fails to get created.

After looking into logs I find:

Parameters: {"utf8"=>"✓", "authenticity_token"=>"qyy7jFS8ZLGfIxcYb39p/4z7sBMzogO4wkyLbxrDQaI=", "host"=>{"name"=>"test0", "organization_id"=>"1", "location_id"=>"2", "hostgroup_id"=>"", "compute_resource_id"=>"", "environment_id"=>"", "content_source_id"=>"", "puppet_ca_proxy_id"=>"", "puppet_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "domain_id"=>"1", "realm_id"=>"", "mac"=>"AA:AA:AA:00:00:00", "ip"=>"333.333.333.333", "interfaces_attributes"=>{"new_interfaces"=>{"_destroy"=>"false", "type"=>"Nic::Managed", "mac"=>"", "name"=>"", "domain_id"=>"", "ip"=>"", "provider"=>"IPMI"}}, "architecture_id"=>"2", "operatingsystem_id"=>"1", "provision_method"=>"build", "build"=>"1", "medium_id"=>"1", "ptable_id"=>"7", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"1-Users", "enabled"=>"1", "model_id"=>"", "comment"=>"", "overwrite"=>"false"}, "kt_environment_id"=>""}
Failed to save: Environment can't be blank

This error should have been propagated to ui.

Actions

Also available in: Atom PDF