Openstack setup vm error

Hello.

Attempt to create vm in openstack environment with the following parameters:

Parameters: {"utf8"=>"✓",
"authenticity_token"=>"0tTvhmfK5l7/k2cxyL1gXOm94GRqytUGeMkg8kSxEAk=",
"host"=>{"name"=>"test1", "hostgroup_id"=>"", "compute_resource_id"=>"2",
"compute_profile_id"=>"6", "environment_id"=>"1",
"puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1", "puppetclass_ids"=>[""],
"managed"=>"true", "progress_report_id"=>"[FILTERED]",
"type"=>"Host::Managed", "compute_attributes"=>{"flavor_ref"=>"2",
"tenant_id"=>"697533a862884494930433e8dbd0a681",
"security_group"=>"default", "network"=>"",
"image_ref"=>"661eae0e-88a5-4cc5-84a2-59597c2724df"}, "mac"=>"",
"domain_id"=>"1", "architecture_id"=>"2", "operatingsystem_id"=>"3",
"provision_method"=>"image", "build"=>"1", "disk"=>"",
"root_pass"=>"[FILTERED]", "is_owned_by"=>"", "enabled"=>"1",
"comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image"}

Got me an error:
Unable to save
Render user data template for test1.usa.hp.com task failed with the
following error: undefined method `template' for nil:NilClass

And in the debug log:

Render user data template for test1.localdomain task failed with the
following error: undefined method template' for nil:NilClass/usr/share/foreman/app/models/concerns/orchestration/compute.rb:73:insetUserData'

Does anybody can explain me what is this "template" means?

Cheers,
Sergii

Did you create a template of type "user_data" in the Provisioning
Templates screen? Did you assign it to your OS? Does it show up when
clicking the Resolve button during New Host creation?

Greg

It helps.
Thank you!

··· On Tuesday, March 25, 2014 9:19:07 AM UTC-7, Greg Sutcliffe wrote: > > Did you create a template of type "user_data" in the Provisioning > Templates screen? Did you assign it to your OS? Does it show up when > clicking the Resolve button during New Host creation? > > Greg >