Actions
Bug #2868
closedCan't add new compute resource in EC2
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Description
Can't create new compute resource with EC2 provider. When click on "Load Regions" I'm getting:
Started PUT "/compute_resources/test_connection" for 10.0.2.2 at 2013-07-31 18:25:02 -0400 Processing by ComputeResourcesController#test_connection as */* Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXX", "compute_resource"=>{"name"=>"amazon", "provider"=>"EC2", "description"=>"", "user"=>"XXX", "password"=>"[FILTERED]"}, "cr_id"=>"null"} CR_ID IS null Operation FAILED: uninitialized constant Foreman::Model::EC2::Fog Rendered common/500.html.erb (3.9ms) Completed 500 Internal Server Error in 24ms (Views: 6.2ms | ActiveRecord: 1.2ms)
and when click on "Submit":
Started POST "/compute_resources" for 10.0.2.2 at 2013-07-31 18:28:13 -0400 Processing by ComputeResourcesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XXX", "compute_resource"=>{"name"=>"amazon", "provider"=>"EC2", "description"=>"", "user"=>"XXX", "password"=>"[FILTERED]"}, "commit"=>"Submit"} Failed to save: URL can't be blank Rendered compute_resources/form/_ec2.html.erb (4.1ms) Rendered compute_resources/_form.html.erb (9.7ms) Rendered compute_resources/new.html.erb within layouts/application (10.0ms) Rendered home/_user_dropdown.html.erb (1.2ms) Read fragment views/tabs_and_title_records-1 (0.2ms) Rendered home/_topbar.html.erb (1.3ms) Completed 200 OK in 29ms (Views: 17.0ms | ActiveRecord: 2.2ms)
I'm running CentOS 6.4 with ruby-1.8.7 and ruby193-ruby-1.9.3. The problem is reproducible both on foreman-1.2.1 and foreman-1.2.9999 nightly build.
Actions