Project

General

Profile

Actions

Bug #2104

closed

Post installation phase fails with "undefined method `render' for #<Host:0x7fbc9fe6d288>" when deploying to EC2

Added by Richard Clark over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Host creation
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Running Foreman 1.1RC3 on CentOS 6.3, mostly installed using foreman-installer
Passenger: 3.0.12
Ruby 1.8.7-352
Puppet 3.0.2

When deploying hosts to EC2, the post installation step fails with undefined method `render' for #<Host:0x7fbc9fe6d288>`

More logs:
Started POST "/hosts" for 217.33.138.50 at Fri Jan 04 12:18:51 +0000 2013
Processing by HostsController#create as
Parameters: {"capabilities"=>"image", "authenticity_token"=>"b0/FILTERED", "utf8"=>"✓", "host"=>{"managed"=>"true", "comment"=>"yeah", "updated_at"=>"1357301861", "compute_resource_id"=>"1", "interfaces_attributes"=>{"new_interfaces"=>{"provider"=>"IPMI", "type"=>"Nic::Managed", "name"=>"", "_destroy"=>"false", "mac"=>"", "domain_id"=>"1", "ip"=>""}}, "compute_attributes"=>{"flavor_id"=>"m1.small", "groups"=>["default"], "image_id"=>"ami-86e15bef", "availability_zone"=>""}, "provision_method"=>"image", "model_id"=>"", "progress_report_id"=>"[FILTERED]", "operatingsystem_id"=>"1", "root_pass"=>"[FILTERED]", "enabled"=>"1", "name"=>"puppet-deploy-005", "puppetclass_ids"=>["", "25"], "architecture_id"=>"1", "disk"=>"", "puppet_proxy_id"=>"1", "host_parameters_attributes"=>{"1357301893064"=>{"nested"=>"", "value"=>"[FILTERED]", "name"=>"ssh_debug_key", "_destroy"=>"false"}, "1357301910808"=>{"nested"=>"", "value"=>"[FILTERED]", "name"=>"initial_ntp_server", "_destroy"=>"false"}}, "overwrite"=>"false", "hostgroup_id"=>"1", "environment_id"=>"4", "mac"=>"", "domain_id"=>"1", "ip"=>"", "build"=>"1"}}
Adding Compute instance for puppet-deploy-005.ec2.internal
waiting for instance to acquire ip address
About to start post launch script on puppet-deploy-005.ec2.internal
generating template to upload to puppet-deploy-005.ec2.internal
Preparing Post installation script for puppet-deploy-005.ec2.internal task failed with the following error: undefined method `render' for #<Host:0x7fbc9fe6d288>
Rolling back due to a problem: Preparing Post installation script for puppet-deploy-005.ec2.internal 2000 failed puppet-deploy-005.ec2.internalsetSSHProvisionScript
ActiveRecord::Rollback
Completed 200 OK in 25068ms (Views: 0.8ms | ActiveRecord: 31.0ms)

Actions #1

Updated by Richard Clark over 11 years ago

This was found to be caused by the finish template making a call to an incorrectly named snippet (so one that didn't actually exist).

Actions #2

Updated by Sam Kottler over 11 years ago

  • Status changed from New to Closed
  • Target version deleted (1.1)

Glad it's working properly now, Richard!

Actions

Also available in: Atom PDF