Project

General

Profile

Actions

Bug #14170

closed

Can't add new compute resource for GCE - 1.11.0-0.1.RC2.el7

Added by Aanjaneya Mishra almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - GCE
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have just freshly installed Foreman using foreman-installer with few --enable arguments.

I Can't create new compute resource with GCE provider. When click on "Load zones" I receive test connection succeeded, zones get loaded and the email column gets blank(unpopulates). However when I click "Submit" Nothing happens. The page just refreshes and stays at same page. Again email column get blank.Checkin /var/log/foreman/production.log shows following relevant lines:

2016-03-13 11:41:58 [app] [I] Started PUT "/compute_resources/test_connection" for 86.14.xxx.xx at 2016-03-13 11:41:58 +0000
2016-03-13 11:41:58 [app] [I] Processing by ComputeResourcesController#test_connection as */*
2016-03-13 11:41:58 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"/CavAaychnAn/SUOSiDXZZLnis0B9gfgz+48QAyxIMc=", "compute_resource"=>{"name"=>"hslegalprovision", "provider"=>"GCE", "description"=>"HS legal provision project on google cloud.", "project"=>"hs-legal-provision", "email"=>"5858xxxxxxxx-compute@developer.gserviceaccount.com", "key_path"=>"/usr/share/foreman/HS-Legal-Provision-12f24752b7a2.p12"}, "cr_id"=>"null"}
2016-03-13 11:41:58 [app] [I] CR_ID IS null
2016-03-13 11:41:59 [app] [I] Rendered compute_resources/form/_gce.html.erb (199.5ms)
2016-03-13 11:41:59 [app] [I] Rendered compute_resources/_form.html.erb (203.9ms)
2016-03-13 11:41:59 [app] [I] Completed 200 OK in 821ms (Views: 204.6ms | ActiveRecord: 1.2ms)
2016-03-13 11:42:18 [app] [I] Started POST "/compute_resources" for 86.14.186.10 at 2016-03-13 11:42:18 +0000
2016-03-13 11:42:18 [app] [I] Processing by ComputeResourcesController#create as HTML
2016-03-13 11:42:18 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"/CavAaychnAn/SUOSiDXZZLnis0B9gfgz+48QAyxIMc=", "compute_resource"=>{"name"=>"hslegalprovision", "provider"=>"GCE", "description"=>"HS legal provision project on google cloud.", "project"=>"hs-legal-provision", "email"=>"5858xxxxxxxx-compute@developer.gserviceaccount.com", "key_path"=>"/usr/share/foreman/HS-Legal-Provision-12f24752b7a2.p12", "zone"=>"europe-west1-d"}, "commit"=>"Submit"}
2016-03-13 11:42:18 [app] [I] Failed to save: URL can't be blank
2016-03-13 11:42:19 [app] [I] Rendered compute_resources/form/_gce.html.erb (685.0ms)
2016-03-13 11:42:19 [app] [I] Rendered compute_resources/_form.html.erb (688.4ms)
2016-03-13 11:42:19 [app] [I] Rendered compute_resources/new.html.erb within layouts/application (688.7ms)
2016-03-13 11:42:19 [app] [I] Rendered layouts/_application_content.html.erb (0.2ms)
2016-03-13 11:42:19 [app] [I] Rendered home/_user_dropdown.html.erb (1.1ms)
2016-03-13 11:42:19 [app] [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2016-03-13 11:42:19 [app] [I] Rendered home/_topbar.html.erb (1.9ms)
2016-03-13 11:42:19 [app] [I] Rendered layouts/base.html.erb (2.6ms)
2016-03-13 11:42:19 [app] [I] Completed 200 OK in 706ms (Views: 692.5ms | ActiveRecord: 1.1ms)

I am using Centos 7.2.1511 on google cloud compute itself. The install of foreman is intended to act as master for other hosts to be provisioned on gce. Ruby version- 2.0.0.598-25.el7_1

Also I run the following in the startup-script metadata on this foreman install to set persistent hostname to my domain.
hostnamectl set-hostname subdomain.mydomain.co.uk


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #7568: Use attr_accessible for rails 4 upgradeClosedDaniel Lobato Garcia09/22/2014Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Translation missing: en.field_release set to 71
Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Related to Bug #7568: Use attr_accessible for rails 4 upgrade added
Actions #3

Updated by Dominic Cleal almost 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal
Actions #4

Updated by The Foreman Bot almost 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3320 added
Actions #5

Updated by Dominic Cleal almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Aanjaneya Mishra almost 9 years ago

Thanks will apply the patch and test.

Actions

Also available in: Atom PDF