Can't provision ec2

Hi, Foreman is not provisioning EC2 instances for me. Could someone please
help me figure out from the log excerpt below exactly what the error is?
Thank you.

··· ----------------------------------------------------------------------------------------------------

Started POST “/hosts” for 127.0.0.1 at 2014-07-16 10:14:37 -0400

Processing by HostsController#create as /

Parameters: {“utf8”=>“✓”, “authenticity_token”=>“SOMETOKEN”,
“host”=>{“name”=>“provtest.example.com”, “organization_id”=>“2”,
“location_id”=>“4”, “hostgroup_id”=>"", “compute_resource_id”=>“1”,
“compute_profile_id”=>“1”, “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_id”=>“t1.micro”,
“availability_zone”=>“us-east-1a”, “subnet_id”=>"",
“security_group_ids”=>["", “sg-X”], “managed_ip”=>“public”,
“image_id”=>“ami-c07dbaa8”}, “domain_id”=>“1”, “realm_id”=>"", “mac”=>"",
“architecture_id”=>“1”, “operatingsystem_id”=>“2”,
“provision_method”=>“image”, “build”=>“1”, “disk”=>"",
“root_pass”=>"[FILTERED]", “is_owned_by”=>“3-Users”, “enabled”=>“1”,
“comment”=>"", “overwrite”=>“false”}, “capabilities”=>“image”,
“provider”=>“EC2”}

Adding Compute instance for provtest.example.com

Rolling back due to a problem: [Set up compute instance
provtest.example.com 2 failed [#<Host::Managed id: nil, name:
provtest.example.com”, ip: nil, last_compile: nil, last_freshcheck: nil,
last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil,
mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: 1,
architecture_id: 1, operatingsystem_id: 2, environment_id: 1, subnet_id:
nil, ptable_id: nil, medium_id: nil, build: true, comment: “”, disk: “”,
installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3,
owner_type: “User”, enabled: true, puppet_ca_proxy_id: 1, managed: true,
use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1,
puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2,
location_id: 4, type: “Host::Managed”, compute_profile_id: 1, otp: nil,
realm_id: nil, provision_method: “image”>, :setCompute]]

Failed to save:

Rendered hosts/_progress.html.erb (0.1ms)

Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)

Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)

Rendered puppetclasses/_classes.html.erb (433.0ms)

Rendered puppetclasses/_class_selection.html.erb (457.5ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for 127.0.0.1 at
2014-07-16 10:14:39 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (0.5ms)

Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for 127.0.0.1 at
2014-07-16 10:14:41 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (97.3ms)

Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms)

Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms)

Rendered hosts/_compute.html.erb (2265.7ms)

Rendered common/os_selection/_architecture.html.erb (4.1ms)

Rendered common/os_selection/_operatingsystem.html.erb (39.0ms)

Rendered hosts/_operating_system.html.erb (47.9ms)

Rendered hosts/_unattended.html.erb (2322.9ms)

Rendered puppetclasses/_class_parameters.html.erb (0.0ms)

Rendered puppetclasses/_classes_parameters.html.erb (4.8ms)

Rendered common_parameters/_inherited_parameters.html.erb (6.7ms)

Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms)

Rendered common_parameters/_puppetclasses_parameters.html.erb (2.8ms)

Rendered common_parameters/_parameter.html.erb (1.2ms)

Rendered common_parameters/_parameters.html.erb (2.8ms)

Rendered hosts/_form.html.erb (2862.7ms)

Rendered hosts/new.html.erb within layouts/application (2863.2ms)

Rendered home/_user_dropdown.html.erb (1.2ms)

Read fragment views/tabs_and_title_records-3 0.1ms

Rendered home/_topbar.html.erb (2.2ms)

Rendered layouts/base.html.erb (3.7ms)

Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: 10.3ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for 127.0.0.1 at
2014-07-16 10:14:42 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (0.4ms)

Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms)

I will be just guessing, but I dont see any image assigned to your
instance. How do you provision when there is no image assigned?

LZ

··· On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > Hi, Foreman is not provisioning EC2 instances for me. Could someone please > help me figure out from the log excerpt below exactly what the error is? > Thank you. > > ---------------------------------------------------------------------------------------------------- > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > > Processing by HostsController#create as */* > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > "location_id"=>"4", "hostgroup_id"=>"", "compute_resource_id"=>"1", > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", "mac"=>"", > "architecture_id"=>"1", "operatingsystem_id"=>"2", > "provision_method"=>"image", "build"=>"1", "disk"=>"", > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > "provider"=>"EC2"} > > Adding Compute instance for provtest.example.com > > Rolling back due to a problem: [Set up compute instance > provtest.example.com 2 failed [# "provtest.example.com", ip: nil, last_compile: nil, last_freshcheck: nil, > last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil, > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: 1, > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, subnet_id: > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2, > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: nil, > realm_id: nil, provision_method: "image">, :setCompute]] > > Failed to save: > > Rendered hosts/_progress.html.erb (0.1ms) > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > > Rendered puppetclasses/_classes.html.erb (433.0ms) > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 at > 2014-07-16 10:14:39 -0400 > > Processing by TasksController#show as */* > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > Rendered tasks/_list.html.erb (0.5ms) > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 at > 2014-07-16 10:14:41 -0400 > > Processing by TasksController#show as */* > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > Rendered tasks/_list.html.erb (97.3ms) > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > > Rendered hosts/_compute.html.erb (2265.7ms) > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > > Rendered hosts/_operating_system.html.erb (47.9ms) > > Rendered hosts/_unattended.html.erb (2322.9ms) > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > > Rendered common_parameters/_inherited_parameters.html.erb (6.7ms) > > Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms) > > Rendered common_parameters/_puppetclasses_parameters.html.erb (2.8ms) > > Rendered common_parameters/_parameter.html.erb (1.2ms) > > Rendered common_parameters/_parameters.html.erb (2.8ms) > > Rendered hosts/_form.html.erb (2862.7ms) > > Rendered hosts/new.html.erb within layouts/application (2863.2ms) > > Rendered home/_user_dropdown.html.erb (1.2ms) > > Read fragment views/tabs_and_title_records-3 0.1ms > > Rendered home/_topbar.html.erb (2.2ms) > > Rendered layouts/base.html.erb (3.7ms) > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: 10.3ms) > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 at > 2014-07-16 10:14:42 -0400 > > Processing by TasksController#show as */* > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > Rendered tasks/_list.html.erb (0.4ms) > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

The image is buried in there: ami-c07dbaa8. But thanks for taking the
trouble to reply! If you or anyone else has any other ideas, please don't
hesitate to share.

··· On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > > I will be just guessing, but I dont see any image assigned to your > instance. How do you provision when there is no image assigned? > > LZ > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > > Hi, Foreman is not provisioning EC2 instances for me. Could someone > please > > help me figure out from the log excerpt below exactly what the error is? > > Thank you. > > > > > ---------------------------------------------------------------------------------------------------- > > > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > > > > Processing by HostsController#create as */* > > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > > "location_id"=>"4", "hostgroup_id"=>"", "compute_resource_id"=>"1", > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", > "mac"=>"", > > "architecture_id"=>"1", "operatingsystem_id"=>"2", > > "provision_method"=>"image", "build"=>"1", "disk"=>"", > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > > "provider"=>"EC2"} > > > > Adding Compute instance for provtest.example.com > > > > Rolling back due to a problem: [Set up compute instance > > provtest.example.com 2 failed [# name: > > "provtest.example.com", ip: nil, last_compile: nil, last_freshcheck: > nil, > > last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil, > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: 1, > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, subnet_id: > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2, > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: nil, > > realm_id: nil, provision_method: "image">, :setCompute]] > > > > Failed to save: > > > > Rendered hosts/_progress.html.erb (0.1ms) > > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > > > > Rendered puppetclasses/_classes.html.erb (433.0ms) > > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > at > > 2014-07-16 10:14:39 -0400 > > > > Processing by TasksController#show as */* > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > Rendered tasks/_list.html.erb (0.5ms) > > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > at > > 2014-07-16 10:14:41 -0400 > > > > Processing by TasksController#show as */* > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > Rendered tasks/_list.html.erb (97.3ms) > > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > > > > Rendered hosts/_compute.html.erb (2265.7ms) > > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > > > > Rendered hosts/_operating_system.html.erb (47.9ms) > > > > Rendered hosts/_unattended.html.erb (2322.9ms) > > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > > > > Rendered common_parameters/_inherited_parameters.html.erb (6.7ms) > > > > Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms) > > > > Rendered common_parameters/_puppetclasses_parameters.html.erb (2.8ms) > > > > Rendered common_parameters/_parameter.html.erb (1.2ms) > > > > Rendered common_parameters/_parameters.html.erb (2.8ms) > > > > Rendered hosts/_form.html.erb (2862.7ms) > > > > Rendered hosts/new.html.erb within layouts/application (2863.2ms) > > > > Rendered home/_user_dropdown.html.erb (1.2ms) > > > > Read fragment views/tabs_and_title_records-3 0.1ms > > > > Rendered home/_topbar.html.erb (2.2ms) > > > > Rendered layouts/base.html.erb (3.7ms) > > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: 10.3ms) > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > at > > 2014-07-16 10:14:42 -0400 > > > > Processing by TasksController#show as */* > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > Rendered tasks/_list.html.erb (0.4ms) > > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > Later, > Lukas #lzap Zapletal >

Yeah I see the image id now right there.

Unsure what is wrong, debugging EC2 is always a challenge. You can try
to enable logging of all REST calls (not sure if EC2 driver use rest-api
gem):

http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#How-to-log-REST-client-calls

Maybe you will spot an error message there.

LZ

··· On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: > The image is buried in there: ami-c07dbaa8. But thanks for taking the > trouble to reply! If you or anyone else has any other ideas, please don't > hesitate to share. > > > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > > > > I will be just guessing, but I dont see any image assigned to your > > instance. How do you provision when there is no image assigned? > > > > LZ > > > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > > > Hi, Foreman is not provisioning EC2 instances for me. Could someone > > please > > > help me figure out from the log excerpt below exactly what the error is? > > > Thank you. > > > > > > > > ---------------------------------------------------------------------------------------------------- > > > > > > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > > > > > > Processing by HostsController#create as */* > > > > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > > > "location_id"=>"4", "hostgroup_id"=>"", "compute_resource_id"=>"1", > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", > > "mac"=>"", > > > "architecture_id"=>"1", "operatingsystem_id"=>"2", > > > "provision_method"=>"image", "build"=>"1", "disk"=>"", > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > > > "provider"=>"EC2"} > > > > > > Adding Compute instance for provtest.example.com > > > > > > Rolling back due to a problem: [Set up compute instance > > > provtest.example.com 2 failed [# > name: > > > "provtest.example.com", ip: nil, last_compile: nil, last_freshcheck: > > nil, > > > last_report: nil, updated_at: nil, source_file_id: nil, created_at: nil, > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: 1, > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, subnet_id: > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: "", > > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: true, > > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, > > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2, > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: nil, > > > realm_id: nil, provision_method: "image">, :setCompute]] > > > > > > Failed to save: > > > > > > Rendered hosts/_progress.html.erb (0.1ms) > > > > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > > > > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > > > > > > Rendered puppetclasses/_classes.html.erb (433.0ms) > > > > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > > at > > > 2014-07-16 10:14:39 -0400 > > > > > > Processing by TasksController#show as */* > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > Rendered tasks/_list.html.erb (0.5ms) > > > > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > > at > > > 2014-07-16 10:14:41 -0400 > > > > > > Processing by TasksController#show as */* > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > Rendered tasks/_list.html.erb (97.3ms) > > > > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > > > > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > > > > > > Rendered hosts/_compute.html.erb (2265.7ms) > > > > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > > > > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > > > > > > Rendered hosts/_operating_system.html.erb (47.9ms) > > > > > > Rendered hosts/_unattended.html.erb (2322.9ms) > > > > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > > > > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > > > > > > Rendered common_parameters/_inherited_parameters.html.erb (6.7ms) > > > > > > Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms) > > > > > > Rendered common_parameters/_puppetclasses_parameters.html.erb (2.8ms) > > > > > > Rendered common_parameters/_parameter.html.erb (1.2ms) > > > > > > Rendered common_parameters/_parameters.html.erb (2.8ms) > > > > > > Rendered hosts/_form.html.erb (2862.7ms) > > > > > > Rendered hosts/new.html.erb within layouts/application (2863.2ms) > > > > > > Rendered home/_user_dropdown.html.erb (1.2ms) > > > > > > Read fragment views/tabs_and_title_records-3 0.1ms > > > > > > Rendered home/_topbar.html.erb (2.2ms) > > > > > > Rendered layouts/base.html.erb (3.7ms) > > > > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: 10.3ms) > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for 127.0.0.1 > > at > > > 2014-07-16 10:14:42 -0400 > > > > > > Processing by TasksController#show as */* > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > Rendered tasks/_list.html.erb (0.4ms) > > > > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-user...@googlegroups.com . > > > To post to this group, send email to forema...@googlegroups.com > > . > > > Visit this group at http://groups.google.com/group/foreman-users. > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > > Later, > > Lukas #lzap Zapletal > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

I enabled restful query logging but didn't get any results. This bug is a
huge blocker for me, does anyone else have suggestions? I may lose my
ability to further integrate foreman if I can't get past this.

··· On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote: > > Yeah I see the image id now right there. > > Unsure what is wrong, debugging EC2 is always a challenge. You can try > to enable logging of all REST calls (not sure if EC2 driver use rest-api > gem): > > > http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#How-to-log-REST-client-calls > > Maybe you will spot an error message there. > > LZ > > On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: > > The image is buried in there: ami-c07dbaa8. But thanks for taking the > > trouble to reply! If you or anyone else has any other ideas, please > don't > > hesitate to share. > > > > > > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > > > > > > I will be just guessing, but I dont see any image assigned to your > > > instance. How do you provision when there is no image assigned? > > > > > > LZ > > > > > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > > > > Hi, Foreman is not provisioning EC2 instances for me. Could someone > > > please > > > > help me figure out from the log excerpt below exactly what the error > is? > > > > Thank you. > > > > > > > > > > > > ---------------------------------------------------------------------------------------------------- > > > > > > > > > > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > > > > > > > > Processing by HostsController#create as */* > > > > > > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > > > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > > > > "location_id"=>"4", "hostgroup_id"=>"", "compute_resource_id"=>"1", > > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", > > > "mac"=>"", > > > > "architecture_id"=>"1", "operatingsystem_id"=>"2", > > > > "provision_method"=>"image", "build"=>"1", "disk"=>"", > > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", > > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > > > > "provider"=>"EC2"} > > > > > > > > Adding Compute instance for provtest.example.com > > > > > > > > Rolling back due to a problem: [Set up compute instance > > > > provtest.example.com 2 failed [# nil, > > > name: > > > > "provtest.example.com", ip: nil, last_compile: nil, > last_freshcheck: > > > nil, > > > > last_report: nil, updated_at: nil, source_file_id: nil, created_at: > nil, > > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: > 1, > > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, > subnet_id: > > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: > "", > > > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: > true, > > > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, > > > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2, > > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: > nil, > > > > realm_id: nil, provision_method: "image">, :setCompute]] > > > > > > > > Failed to save: > > > > > > > > Rendered hosts/_progress.html.erb (0.1ms) > > > > > > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > > > > > > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > > > > > > > > Rendered puppetclasses/_classes.html.erb (433.0ms) > > > > > > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > 127.0.0.1 > > > at > > > > 2014-07-16 10:14:39 -0400 > > > > > > > > Processing by TasksController#show as */* > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > Rendered tasks/_list.html.erb (0.5ms) > > > > > > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > 127.0.0.1 > > > at > > > > 2014-07-16 10:14:41 -0400 > > > > > > > > Processing by TasksController#show as */* > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > Rendered tasks/_list.html.erb (97.3ms) > > > > > > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > > > > > > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > > > > > > > > Rendered hosts/_compute.html.erb (2265.7ms) > > > > > > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > > > > > > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > > > > > > > > Rendered hosts/_operating_system.html.erb (47.9ms) > > > > > > > > Rendered hosts/_unattended.html.erb (2322.9ms) > > > > > > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > > > > > > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > > > > > > > > Rendered common_parameters/_inherited_parameters.html.erb (6.7ms) > > > > > > > > Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms) > > > > > > > > Rendered common_parameters/_puppetclasses_parameters.html.erb > (2.8ms) > > > > > > > > Rendered common_parameters/_parameter.html.erb (1.2ms) > > > > > > > > Rendered common_parameters/_parameters.html.erb (2.8ms) > > > > > > > > Rendered hosts/_form.html.erb (2862.7ms) > > > > > > > > Rendered hosts/new.html.erb within layouts/application (2863.2ms) > > > > > > > > Rendered home/_user_dropdown.html.erb (1.2ms) > > > > > > > > Read fragment views/tabs_and_title_records-3 0.1ms > > > > > > > > Rendered home/_topbar.html.erb (2.2ms) > > > > > > > > Rendered layouts/base.html.erb (3.7ms) > > > > > > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: > 10.3ms) > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > 127.0.0.1 > > > at > > > > 2014-07-16 10:14:42 -0400 > > > > > > > > Processing by TasksController#show as */* > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > Rendered tasks/_list.html.erb (0.4ms) > > > > > > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > Groups "Foreman users" group. > > > > To unsubscribe from this group and stop receiving emails from it, > send > > > an email to foreman-user...@googlegroups.com . > > > > To post to this group, send email to forema...@googlegroups.com > > > . > > > > Visit this group at http://groups.google.com/group/foreman-users. > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > > > Later, > > > Lukas #lzap Zapletal > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > Later, > Lukas #lzap Zapletal >

Just shooting in the dark - can you verify that Foreman app has direct
ssh connection to the instance you are provisioning?

At which step does it fail? There are multiple steps (progress bars)
during the provisioning.

LZ

··· On Mon, Aug 11, 2014 at 03:41:17PM -0700, adavis wrote: > I enabled restful query logging but didn't get any results. This bug is a > huge blocker for me, does anyone else have suggestions? I may lose my > ability to further integrate foreman if I can't get past this. > > > On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote: > > > > Yeah I see the image id now right there. > > > > Unsure what is wrong, debugging EC2 is always a challenge. You can try > > to enable logging of all REST calls (not sure if EC2 driver use rest-api > > gem): > > > > > > http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#How-to-log-REST-client-calls > > > > Maybe you will spot an error message there. > > > > LZ > > > > On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: > > > The image is buried in there: ami-c07dbaa8. But thanks for taking the > > > trouble to reply! If you or anyone else has any other ideas, please > > don't > > > hesitate to share. > > > > > > > > > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > > > > > > > > I will be just guessing, but I dont see any image assigned to your > > > > instance. How do you provision when there is no image assigned? > > > > > > > > LZ > > > > > > > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > > > > > Hi, Foreman is not provisioning EC2 instances for me. Could someone > > > > please > > > > > help me figure out from the log excerpt below exactly what the error > > is? > > > > > Thank you. > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > > > > > > > > > > Processing by HostsController#create as */* > > > > > > > > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > > > > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > > > > > "location_id"=>"4", "hostgroup_id"=>"", "compute_resource_id"=>"1", > > > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > > > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > > > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > > > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", > > > > "mac"=>"", > > > > > "architecture_id"=>"1", "operatingsystem_id"=>"2", > > > > > "provision_method"=>"image", "build"=>"1", "disk"=>"", > > > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", > > > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > > > > > "provider"=>"EC2"} > > > > > > > > > > Adding Compute instance for provtest.example.com > > > > > > > > > > Rolling back due to a problem: [Set up compute instance > > > > > provtest.example.com 2 failed [# > nil, > > > > name: > > > > > "provtest.example.com", ip: nil, last_compile: nil, > > last_freshcheck: > > > > nil, > > > > > last_report: nil, updated_at: nil, source_file_id: nil, created_at: > > nil, > > > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id: > > 1, > > > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, > > subnet_id: > > > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", disk: > > "", > > > > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > > > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: > > true, > > > > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1, > > > > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2, > > > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: > > nil, > > > > > realm_id: nil, provision_method: "image">, :setCompute]] > > > > > > > > > > Failed to save: > > > > > > > > > > Rendered hosts/_progress.html.erb (0.1ms) > > > > > > > > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > > > > > > > > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > > > > > > > > > > Rendered puppetclasses/_classes.html.erb (433.0ms) > > > > > > > > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > > > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > > 127.0.0.1 > > > > at > > > > > 2014-07-16 10:14:39 -0400 > > > > > > > > > > Processing by TasksController#show as */* > > > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > > > Rendered tasks/_list.html.erb (0.5ms) > > > > > > > > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > > > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > > 127.0.0.1 > > > > at > > > > > 2014-07-16 10:14:41 -0400 > > > > > > > > > > Processing by TasksController#show as */* > > > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > > > Rendered tasks/_list.html.erb (97.3ms) > > > > > > > > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > > > > > > > > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > > > > > > > > > > Rendered hosts/_compute.html.erb (2265.7ms) > > > > > > > > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > > > > > > > > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > > > > > > > > > > Rendered hosts/_operating_system.html.erb (47.9ms) > > > > > > > > > > Rendered hosts/_unattended.html.erb (2322.9ms) > > > > > > > > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > > > > > > > > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > > > > > > > > > > Rendered common_parameters/_inherited_parameters.html.erb (6.7ms) > > > > > > > > > > Rendered common_parameters/_puppetclass_parameter.html.erb (1.8ms) > > > > > > > > > > Rendered common_parameters/_puppetclasses_parameters.html.erb > > (2.8ms) > > > > > > > > > > Rendered common_parameters/_parameter.html.erb (1.2ms) > > > > > > > > > > Rendered common_parameters/_parameters.html.erb (2.8ms) > > > > > > > > > > Rendered hosts/_form.html.erb (2862.7ms) > > > > > > > > > > Rendered hosts/new.html.erb within layouts/application (2863.2ms) > > > > > > > > > > Rendered home/_user_dropdown.html.erb (1.2ms) > > > > > > > > > > Read fragment views/tabs_and_title_records-3 0.1ms > > > > > > > > > > Rendered home/_topbar.html.erb (2.2ms) > > > > > > > > > > Rendered layouts/base.html.erb (3.7ms) > > > > > > > > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: > > 10.3ms) > > > > > > > > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > > 127.0.0.1 > > > > at > > > > > 2014-07-16 10:14:42 -0400 > > > > > > > > > > Processing by TasksController#show as */* > > > > > > > > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > > > > > > > > > > Rendered tasks/_list.html.erb (0.4ms) > > > > > > > > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > > > > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > Groups "Foreman users" group. > > > > > To unsubscribe from this group and stop receiving emails from it, > > send > > > > an email to foreman-user...@googlegroups.com . > > > > > To post to this group, send email to forema...@googlegroups.com > > > > . > > > > > Visit this group at http://groups.google.com/group/foreman-users. > > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > > > Later, > > > > Lukas #lzap Zapletal > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-user...@googlegroups.com . > > > To post to this group, send email to forema...@googlegroups.com > > . > > > Visit this group at http://groups.google.com/group/foreman-users. > > > For more options, visit https://groups.google.com/d/optout. > > > > -- > > Later, > > Lukas #lzap Zapletal > >


Later,
Lukas #lzap Zapletal

> I enabled restful query logging but didn't get any results. This bug is a
> huge blocker for me, does anyone else have suggestions? I may lose my
> ability to further integrate foreman if I can't get past this.
>

can you turn on debug (from the same link below) and provide us with full
logs?

thanks,
Ohad

··· On Tue, Aug 12, 2014 at 1:41 AM, adavis wrote:

On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote:

Yeah I see the image id now right there.

Unsure what is wrong, debugging EC2 is always a challenge. You can try
to enable logging of all REST calls (not sure if EC2 driver use rest-api
gem):

About - Foreman
Troubleshooting#How-to-log-REST-client-calls

Maybe you will spot an error message there.

LZ

On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote:

The image is buried in there: ami-c07dbaa8. But thanks for taking the
trouble to reply! If you or anyone else has any other ideas, please
don’t
hesitate to share.

On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote:

I will be just guessing, but I dont see any image assigned to your
instance. How do you provision when there is no image assigned?

LZ

On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote:

Hi, Foreman is not provisioning EC2 instances for me. Could someone
please
help me figure out from the log excerpt below exactly what the
error is?

Thank you.



Started POST “/hosts” for 127.0.0.1 at 2014-07-16 10:14:37 -0400

Processing by HostsController#create as /

Parameters: {“utf8”=>“✓”, “authenticity_token”=>“SOMETOKEN”,
“host”=>{“name”=>“provtest.example.com”, “organization_id”=>“2”,
“location_id”=>“4”, “hostgroup_id”=>"", “compute_resource_id”=>“1”,
“compute_profile_id”=>“1”, “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_id”=>“t1.micro”,

“availability_zone”=>“us-east-1a”, “subnet_id”=>"",
“security_group_ids”=>["", “sg-X”], “managed_ip”=>“public”,
“image_id”=>“ami-c07dbaa8”}, “domain_id”=>“1”, “realm_id”=>"",
“mac”=>"",
“architecture_id”=>“1”, “operatingsystem_id”=>“2”,
“provision_method”=>“image”, “build”=>“1”, “disk”=>"",
“root_pass”=>"[FILTERED]", “is_owned_by”=>“3-Users”,
“enabled”=>“1”,

“comment”=>"", “overwrite”=>“false”}, “capabilities”=>“image”,
“provider”=>“EC2”}

Adding Compute instance for provtest.example.com

Rolling back due to a problem: [Set up compute instance
provtest.example.com 2 failed [#<Host::Managed id:
nil,

name:

provtest.example.com”, ip: nil, last_compile: nil,
last_freshcheck:

nil,

last_report: nil, updated_at: nil, source_file_id: nil, created_at:
nil,

mac: nil, root_pass: nil, serial: nil, puppet_status: 0, domain_id:
1,

architecture_id: 1, operatingsystem_id: 2, environment_id: 1,
subnet_id:

nil, ptable_id: nil, medium_id: nil, build: true, comment: “”,
disk: “”,

installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3,
owner_type: “User”, enabled: true, puppet_ca_proxy_id: 1, managed:
true,

use_image: nil, image_file: nil, uuid: nil, compute_resource_id: 1,
puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: 2,
location_id: 4, type: “Host::Managed”, compute_profile_id: 1, otp:
nil,

realm_id: nil, provision_method: “image”>, :setCompute]]

Failed to save:

Rendered hosts/_progress.html.erb (0.1ms)

Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)

Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)

Rendered puppetclasses/_classes.html.erb (433.0ms)

Rendered puppetclasses/_class_selection.html.erb (457.5ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for
127.0.0.1

at

2014-07-16 10:14:39 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (0.5ms)

Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for
127.0.0.1

at

2014-07-16 10:14:41 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (97.3ms)

Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms)

Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms)

Rendered hosts/_compute.html.erb (2265.7ms)

Rendered common/os_selection/_architecture.html.erb (4.1ms)

Rendered common/os_selection/_operatingsystem.html.erb (39.0ms)

Rendered hosts/_operating_system.html.erb (47.9ms)

Rendered hosts/_unattended.html.erb (2322.9ms)

Rendered puppetclasses/_class_parameters.html.erb (0.0ms)

Rendered puppetclasses/_classes_parameters.html.erb (4.8ms)

Rendered common_parameters/_inherited_parameters.html.erb
(6.7ms)

Rendered common_parameters/_puppetclass_parameter.html.erb
(1.8ms)

Rendered common_parameters/_puppetclasses_parameters.html.erb
(2.8ms)

Rendered common_parameters/_parameter.html.erb (1.2ms)

Rendered common_parameters/_parameters.html.erb (2.8ms)

Rendered hosts/_form.html.erb (2862.7ms)

Rendered hosts/new.html.erb within layouts/application (2863.2ms)

Rendered home/_user_dropdown.html.erb (1.2ms)

Read fragment views/tabs_and_title_records-3 0.1ms

Rendered home/_topbar.html.erb (2.2ms)

Rendered layouts/base.html.erb (3.7ms)

Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord:
10.3ms)

Started GET “/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6” for
127.0.0.1

at

2014-07-16 10:14:42 -0400

Processing by TasksController#show as /

Parameters: {“id”=>“4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6”}

Rendered tasks/_list.html.erb (0.4ms)

Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms)


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it,
send

an email to foreman-user...@googlegroups.com <javascript:>.

To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Lukas/Ohad,

I was able to finally get debug output on the log functioning - and it
turns out that it was the same issue as here:
https://groups.google.com/forum/#!topic/foreman-users/ch_zC-T_bZo
FOG was reporting a missing keypair, because presumably someone dropped the
key on accident.

The network is unrestricted, and the access key it's using has god
privileges, so it wasn't a privilege/access thing.

Thanks for your help - I appreciate it. It works now. WOOHOO!

··· On Tuesday, August 12, 2014 12:37:04 AM UTC-7, ohad wrote: > > > > > On Tue, Aug 12, 2014 at 1:41 AM, adavis <ada...@ntent.com > > wrote: > >> I enabled restful query logging but didn't get any results. This bug is >> a huge blocker for me, does anyone else have suggestions? I may lose my >> ability to further integrate foreman if I can't get past this. >> > > can you turn on debug (from the same link below) and provide us with full > logs? > > thanks, > Ohad > >> >> >> On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote: >> >>> Yeah I see the image id now right there. >>> >>> Unsure what is wrong, debugging EC2 is always a challenge. You can try >>> to enable logging of all REST calls (not sure if EC2 driver use rest-api >>> gem): >>> >>> http://projects.theforeman.org/projects/foreman/wiki/ >>> Troubleshooting#How-to-log-REST-client-calls >>> >>> Maybe you will spot an error message there. >>> >>> LZ >>> >>> On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: >>> > The image is buried in there: ami-c07dbaa8. But thanks for taking the >>> > trouble to reply! If you or anyone else has any other ideas, please >>> don't >>> > hesitate to share. >>> > >>> > >>> > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: >>> > > >>> > > I will be just guessing, but I dont see any image assigned to your >>> > > instance. How do you provision when there is no image assigned? >>> > > >>> > > LZ >>> > > >>> > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: >>> > > > Hi, Foreman is not provisioning EC2 instances for me. Could >>> someone >>> > > please >>> > > > help me figure out from the log excerpt below exactly what the >>> error is? >>> > > > Thank you. >>> > > > >>> > > > >>> > > ------------------------------------------------------------ >>> ---------------------------------------- >>> > > >>> > > > >>> > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 >>> > > > >>> > > > Processing by HostsController#create as */* >>> > > > >>> > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", >>> > > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", >>> > > > "location_id"=>"4", "hostgroup_id"=>"", >>> "compute_resource_id"=>"1", >>> > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", >>> >>> > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", >>> > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", >>> > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", >>> > > "mac"=>"", >>> > > > "architecture_id"=>"1", "operatingsystem_id"=>"2", >>> > > > "provision_method"=>"image", "build"=>"1", "disk"=>"", >>> > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", >>> "enabled"=>"1", >>> > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", >>> > > > "provider"=>"EC2"} >>> > > > >>> > > > Adding Compute instance for provtest.example.com >>> > > > >>> > > > Rolling back due to a problem: [Set up compute instance >>> > > > provtest.example.com 2 failed [#>> nil, >>> > > name: >>> > > > "provtest.example.com", ip: nil, last_compile: nil, >>> last_freshcheck: >>> > > nil, >>> > > > last_report: nil, updated_at: nil, source_file_id: nil, >>> created_at: nil, >>> > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, >>> domain_id: 1, >>> > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, >>> subnet_id: >>> > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", >>> disk: "", >>> > > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, >>> > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: >>> true, >>> > > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: >>> 1, >>> > > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: >>> 2, >>> > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: >>> nil, >>> > > > realm_id: nil, provision_method: "image">, :setCompute]] >>> > > > >>> > > > Failed to save: >>> > > > >>> > > > Rendered hosts/_progress.html.erb (0.1ms) >>> > > > >>> > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) >>> > > > >>> > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) >>> > > > >>> > > > Rendered puppetclasses/_classes.html.erb (433.0ms) >>> > > > >>> > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) >>> > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for >>> 127.0.0.1 >>> > > at >>> > > > 2014-07-16 10:14:39 -0400 >>> > > > >>> > > > Processing by TasksController#show as */* >>> > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} >>> > > > >>> > > > Rendered tasks/_list.html.erb (0.5ms) >>> > > > >>> > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) >>> > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for >>> 127.0.0.1 >>> > > at >>> > > > 2014-07-16 10:14:41 -0400 >>> > > > >>> > > > Processing by TasksController#show as */* >>> > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} >>> > > > >>> > > > Rendered tasks/_list.html.erb (97.3ms) >>> > > > >>> > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) >>> > > > >>> > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) >>> > > > >>> > > > Rendered hosts/_compute.html.erb (2265.7ms) >>> > > > >>> > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) >>> > > > >>> > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) >>> > > > >>> > > > Rendered hosts/_operating_system.html.erb (47.9ms) >>> > > > >>> > > > Rendered hosts/_unattended.html.erb (2322.9ms) >>> > > > >>> > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) >>> > > > >>> > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) >>> > > > >>> > > > Rendered common_parameters/_inherited_parameters.html.erb >>> (6.7ms) >>> > > > >>> > > > Rendered common_parameters/_puppetclass_parameter.html.erb >>> (1.8ms) >>> > > > >>> > > > Rendered common_parameters/_puppetclasses_parameters.html.erb >>> (2.8ms) >>> > > > >>> > > > Rendered common_parameters/_parameter.html.erb (1.2ms) >>> > > > >>> > > > Rendered common_parameters/_parameters.html.erb (2.8ms) >>> > > > >>> > > > Rendered hosts/_form.html.erb (2862.7ms) >>> > > > >>> > > > Rendered hosts/new.html.erb within layouts/application >>> (2863.2ms) >>> > > > >>> > > > Rendered home/_user_dropdown.html.erb (1.2ms) >>> > > > >>> > > > Read fragment views/tabs_and_title_records-3 0.1ms >>> > > > >>> > > > Rendered home/_topbar.html.erb (2.2ms) >>> > > > >>> > > > Rendered layouts/base.html.erb (3.7ms) >>> > > > >>> > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: >>> 10.3ms) >>> > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for >>> 127.0.0.1 >>> > > at >>> > > > 2014-07-16 10:14:42 -0400 >>> > > > >>> > > > Processing by TasksController#show as */* >>> > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} >>> > > > >>> > > > Rendered tasks/_list.html.erb (0.4ms) >>> > > > >>> > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) >>> > > > >>> > > > -- >>> > > > You received this message because you are subscribed to the Google >>> > > Groups "Foreman users" group. >>> > > > To unsubscribe from this group and stop receiving emails from it, >>> send >>> > > an email to foreman-user...@googlegroups.com . >>> > > > To post to this group, send email to forema...@googlegroups.com >>> > > . >>> > > > Visit this group at http://groups.google.com/group/foreman-users. >>> > > > For more options, visit https://groups.google.com/d/optout. >>> > > >>> > > -- >>> > > Later, >>> > > Lukas #lzap Zapletal >>> > > >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "Foreman users" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to foreman-user...@googlegroups.com. >>> > To post to this group, send email to forema...@googlegroups.com. >>> > Visit this group at http://groups.google.com/group/foreman-users. >>> > For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> Later, >>> Lukas #lzap Zapletal >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >

This smells like a bug, we should properly show this error message. Is
this bug in Fog or do we eat the exception instance somewhere?

Anyone?

LZ

··· On Tue, Aug 12, 2014 at 10:55:06AM -0700, adavis wrote: > Lukas/Ohad, > > I was able to finally get debug output on the log functioning - and it > turns out that it was the same issue as here: > https://groups.google.com/forum/#!topic/foreman-users/ch_zC-T_bZo > FOG was reporting a missing keypair, because presumably someone dropped the > key on accident. > > The network is unrestricted, and the access key it's using has god > privileges, so it wasn't a privilege/access thing. > > Thanks for your help - I appreciate it. It works now. WOOHOO! > > On Tuesday, August 12, 2014 12:37:04 AM UTC-7, ohad wrote: > > > > > > > > > > On Tue, Aug 12, 2014 at 1:41 AM, adavis <ada...@ntent.com > > > wrote: > > > >> I enabled restful query logging but didn't get any results. This bug is > >> a huge blocker for me, does anyone else have suggestions? I may lose my > >> ability to further integrate foreman if I can't get past this. > >> > > > > can you turn on debug (from the same link below) and provide us with full > > logs? > > > > thanks, > > Ohad > > > >> > >> > >> On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote: > >> > >>> Yeah I see the image id now right there. > >>> > >>> Unsure what is wrong, debugging EC2 is always a challenge. You can try > >>> to enable logging of all REST calls (not sure if EC2 driver use rest-api > >>> gem): > >>> > >>> http://projects.theforeman.org/projects/foreman/wiki/ > >>> Troubleshooting#How-to-log-REST-client-calls > >>> > >>> Maybe you will spot an error message there. > >>> > >>> LZ > >>> > >>> On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: > >>> > The image is buried in there: ami-c07dbaa8. But thanks for taking the > >>> > trouble to reply! If you or anyone else has any other ideas, please > >>> don't > >>> > hesitate to share. > >>> > > >>> > > >>> > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > >>> > > > >>> > > I will be just guessing, but I dont see any image assigned to your > >>> > > instance. How do you provision when there is no image assigned? > >>> > > > >>> > > LZ > >>> > > > >>> > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > >>> > > > Hi, Foreman is not provisioning EC2 instances for me. Could > >>> someone > >>> > > please > >>> > > > help me figure out from the log excerpt below exactly what the > >>> error is? > >>> > > > Thank you. > >>> > > > > >>> > > > > >>> > > ------------------------------------------------------------ > >>> ---------------------------------------- > >>> > > > >>> > > > > >>> > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37 -0400 > >>> > > > > >>> > > > Processing by HostsController#create as */* > >>> > > > > >>> > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN", > >>> > > > "host"=>{"name"=>"provtest.example.com", "organization_id"=>"2", > >>> > > > "location_id"=>"4", "hostgroup_id"=>"", > >>> "compute_resource_id"=>"1", > >>> > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro", > >>> > >>> > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"", > >>> > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public", > >>> > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"", > >>> > > "mac"=>"", > >>> > > > "architecture_id"=>"1", "operatingsystem_id"=>"2", > >>> > > > "provision_method"=>"image", "build"=>"1", "disk"=>"", > >>> > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", > >>> "enabled"=>"1", > >>> > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image", > >>> > > > "provider"=>"EC2"} > >>> > > > > >>> > > > Adding Compute instance for provtest.example.com > >>> > > > > >>> > > > Rolling back due to a problem: [Set up compute instance > >>> > > > provtest.example.com 2 failed [# >>> nil, > >>> > > name: > >>> > > > "provtest.example.com", ip: nil, last_compile: nil, > >>> last_freshcheck: > >>> > > nil, > >>> > > > last_report: nil, updated_at: nil, source_file_id: nil, > >>> created_at: nil, > >>> > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0, > >>> domain_id: 1, > >>> > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1, > >>> subnet_id: > >>> > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "", > >>> disk: "", > >>> > > > installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: 3, > >>> > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1, managed: > >>> true, > >>> > > > use_image: nil, image_file: nil, uuid: nil, compute_resource_id: > >>> 1, > >>> > > > puppet_proxy_id: 1, certname: nil, image_id: 3, organization_id: > >>> 2, > >>> > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1, otp: > >>> nil, > >>> > > > realm_id: nil, provision_method: "image">, :setCompute]] > >>> > > > > >>> > > > Failed to save: > >>> > > > > >>> > > > Rendered hosts/_progress.html.erb (0.1ms) > >>> > > > > >>> > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) > >>> > > > > >>> > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms) > >>> > > > > >>> > > > Rendered puppetclasses/_classes.html.erb (433.0ms) > >>> > > > > >>> > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms) > >>> > > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > >>> 127.0.0.1 > >>> > > at > >>> > > > 2014-07-16 10:14:39 -0400 > >>> > > > > >>> > > > Processing by TasksController#show as */* > >>> > > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > >>> > > > > >>> > > > Rendered tasks/_list.html.erb (0.5ms) > >>> > > > > >>> > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms) > >>> > > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > >>> 127.0.0.1 > >>> > > at > >>> > > > 2014-07-16 10:14:41 -0400 > >>> > > > > >>> > > > Processing by TasksController#show as */* > >>> > > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > >>> > > > > >>> > > > Rendered tasks/_list.html.erb (97.3ms) > >>> > > > > >>> > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord: 0.2ms) > >>> > > > > >>> > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms) > >>> > > > > >>> > > > Rendered hosts/_compute.html.erb (2265.7ms) > >>> > > > > >>> > > > Rendered common/os_selection/_architecture.html.erb (4.1ms) > >>> > > > > >>> > > > Rendered common/os_selection/_operatingsystem.html.erb (39.0ms) > >>> > > > > >>> > > > Rendered hosts/_operating_system.html.erb (47.9ms) > >>> > > > > >>> > > > Rendered hosts/_unattended.html.erb (2322.9ms) > >>> > > > > >>> > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms) > >>> > > > > >>> > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms) > >>> > > > > >>> > > > Rendered common_parameters/_inherited_parameters.html.erb > >>> (6.7ms) > >>> > > > > >>> > > > Rendered common_parameters/_puppetclass_parameter.html.erb > >>> (1.8ms) > >>> > > > > >>> > > > Rendered common_parameters/_puppetclasses_parameters.html.erb > >>> (2.8ms) > >>> > > > > >>> > > > Rendered common_parameters/_parameter.html.erb (1.2ms) > >>> > > > > >>> > > > Rendered common_parameters/_parameters.html.erb (2.8ms) > >>> > > > > >>> > > > Rendered hosts/_form.html.erb (2862.7ms) > >>> > > > > >>> > > > Rendered hosts/new.html.erb within layouts/application > >>> (2863.2ms) > >>> > > > > >>> > > > Rendered home/_user_dropdown.html.erb (1.2ms) > >>> > > > > >>> > > > Read fragment views/tabs_and_title_records-3 0.1ms > >>> > > > > >>> > > > Rendered home/_topbar.html.erb (2.2ms) > >>> > > > > >>> > > > Rendered layouts/base.html.erb (3.7ms) > >>> > > > > >>> > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord: > >>> 10.3ms) > >>> > > > > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for > >>> 127.0.0.1 > >>> > > at > >>> > > > 2014-07-16 10:14:42 -0400 > >>> > > > > >>> > > > Processing by TasksController#show as */* > >>> > > > > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"} > >>> > > > > >>> > > > Rendered tasks/_list.html.erb (0.4ms) > >>> > > > > >>> > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms) > >>> > > > > >>> > > > -- > >>> > > > You received this message because you are subscribed to the Google > >>> > > Groups "Foreman users" group. > >>> > > > To unsubscribe from this group and stop receiving emails from it, > >>> send > >>> > > an email to foreman-user...@googlegroups.com . > >>> > > > To post to this group, send email to forema...@googlegroups.com > >>> > > . > >>> > > > Visit this group at http://groups.google.com/group/foreman-users. > >>> > > > For more options, visit https://groups.google.com/d/optout. > >>> > > > >>> > > -- > >>> > > Later, > >>> > > Lukas #lzap Zapletal > >>> > > > >>> > > >>> > -- > >>> > You received this message because you are subscribed to the Google > >>> Groups "Foreman users" group. > >>> > To unsubscribe from this group and stop receiving emails from it, send > >>> an email to foreman-user...@googlegroups.com. > >>> > To post to this group, send email to forema...@googlegroups.com. > >>> > Visit this group at http://groups.google.com/group/foreman-users. > >>> > For more options, visit https://groups.google.com/d/optout. > >>> > >>> -- > >>> Later, > >>> Lukas #lzap Zapletal > >>> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Foreman users" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to foreman-user...@googlegroups.com . > >> To post to this group, send email to forema...@googlegroups.com > >> . > >> Visit this group at http://groups.google.com/group/foreman-users. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

>
> This smells like a bug, we should properly show this error message. Is
> this bug in Fog or do we eat the exception instance somewhere?
>
> Anyone?
We need to validate that the key pair is there before we use it.

Ohad
>
> LZ
>
> > Lukas/Ohad,
> >
> > I was able to finally get debug output on the log functioning - and it
> > turns out that it was the same issue as here:
> > https://groups.google.com/forum/#!topic/foreman-users/ch_zC-T_bZo
> > FOG was reporting a missing keypair, because presumably someone dropped
the
> > key on accident.
> >
> > The network is unrestricted, and the access key it's using has god
> > privileges, so it wasn't a privilege/access thing.
> >
> > Thanks for your help - I appreciate it. It works now. WOOHOO!
> >
> > >
> > >
> > >
> > >
> > >
> > >> I enabled restful query logging but didn't get any results. This
bug is
> > >> a huge blocker for me, does anyone else have suggestions? I may
lose my
> > >> ability to further integrate foreman if I can't get past this.
> > >>
> > >
> > > can you turn on debug (from the same link below) and provide us with
full
> > > logs?
> > >
> > > thanks,
> > > Ohad
> > >
> > >>
> > >>
> > >>
> > >>> Yeah I see the image id now right there.
> > >>>
> > >>> Unsure what is wrong, debugging EC2 is always a challenge. You can
try
> > >>> to enable logging of all REST calls (not sure if EC2 driver use
rest-api
> > >>> gem):
> > >>>
> > >>> About - Foreman
> > >>> Troubleshooting#How-to-log-REST-client-calls
> > >>>
> > >>> Maybe you will spot an error message there.
> > >>>
> > >>> LZ
> > >>>
> > >>> > The image is buried in there: ami-c07dbaa8. But thanks for taking
the
> > >>> > trouble to reply! If you or anyone else has any other ideas,
please
> > >>> don't
> > >>> > hesitate to share.
> > >>> >
> > >>> >
> > >>> > >
> > >>> > > I will be just guessing, but I dont see any image assigned to
your
> > >>> > > instance. How do you provision when there is no image assigned?
> > >>> > >
> > >>> > > LZ
> > >>> > >
> > >>> > > > Hi, Foreman is not provisioning EC2 instances for me. Could
> > >>> someone
> > >>> > > please
> > >>> > > > help me figure out from the log excerpt below exactly what the
> > >>> error is?
> > >>> > > > Thank you.
> > >>> > > >
> > >>> > > >
> > >>> > > ------------------------------------------------------------
> > >>> ----------------------------------------
> > >>> > >
> > >>> > > >
> > >>> > > > Started POST "/hosts" for 127.0.0.1 at 2014-07-16 10:14:37
-0400
> > >>> > > >
> > >>> > > > Processing by HostsController#create as /
> > >>> > > >
> > >>> > > > Parameters: {"utf8"=>"✓", "authenticity_token"=>"SOMETOKEN",
> > >>> > > > "host"=>{"name"=>"provtest.example.com",
"organization_id"=>"2",
> > >>> > > > "location_id"=>"4", "hostgroup_id"=>"",
> > >>> "compute_resource_id"=>"1",
> > >>> > > > "compute_profile_id"=>"1", "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_id"=>"t1.micro",
> > >>>
> > >>> > > > "availability_zone"=>"us-east-1a", "subnet_id"=>"",
> > >>> > > > "security_group_ids"=>["", "sg-X"], "managed_ip"=>"public",
> > >>> > > > "image_id"=>"ami-c07dbaa8"}, "domain_id"=>"1", "realm_id"=>"",
> > >>> > > "mac"=>"",
> > >>> > > > "architecture_id"=>"1", "operatingsystem_id"=>"2",
> > >>> > > > "provision_method"=>"image", "build"=>"1", "disk"=>"",
> > >>> > > > "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users",
> > >>> "enabled"=>"1",
> > >>> > > > "comment"=>"", "overwrite"=>"false"}, "capabilities"=>"image",
> > >>> > > > "provider"=>"EC2"}
> > >>> > > >
> > >>> > > > Adding Compute instance for provtest.example.com
> > >>> > > >
> > >>> > > > Rolling back due to a problem: [Set up compute instance
> > >>> > > > provtest.example.com 2 failed [#<Host::Managed
id:
> > >>> nil,
> > >>> > > name:
> > >>> > > > "provtest.example.com", ip: nil, last_compile: nil,
> > >>> last_freshcheck:
> > >>> > > nil,
> > >>> > > > last_report: nil, updated_at: nil, source_file_id: nil,
> > >>> created_at: nil,
> > >>> > > > mac: nil, root_pass: nil, serial: nil, puppet_status: 0,
> > >>> domain_id: 1,
> > >>> > > > architecture_id: 1, operatingsystem_id: 2, environment_id: 1,
> > >>> subnet_id:
> > >>> > > > nil, ptable_id: nil, medium_id: nil, build: true, comment: "",
> > >>> disk: "",
> > >>> > > > installed_at: nil, model_id: nil, hostgroup_id: nil,
owner_id: 3,
> > >>> > > > owner_type: "User", enabled: true, puppet_ca_proxy_id: 1,
managed:
> > >>> true,
> > >>> > > > use_image: nil, image_file: nil, uuid: nil,
compute_resource_id:
> > >>> 1,
> > >>> > > > puppet_proxy_id: 1, certname: nil, image_id: 3,
organization_id:
> > >>> 2,
> > >>> > > > location_id: 4, type: "Host::Managed", compute_profile_id: 1,
otp:
> > >>> nil,
> > >>> > > > realm_id: nil, provision_method: "image">, :setCompute]]
> > >>> > > >
> > >>> > > > Failed to save:
> > >>> > > >
> > >>> > > > Rendered hosts/_progress.html.erb (0.1ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_classes.html.erb (433.0ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_class_selection.html.erb (457.5ms)
> > >>> > > >
> > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for
> > >>> 127.0.0.1
> > >>> > > at
> > >>> > > > 2014-07-16 10:14:39 -0400
> > >>> > > >
> > >>> > > > Processing by TasksController#show as /
> > >>> > > >
> > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"}
> > >>> > > >
> > >>> > > > Rendered tasks/_list.html.erb (0.5ms)
> > >>> > > >
> > >>> > > > Completed 200 OK in 4.9ms (Views: 1.1ms | ActiveRecord: 0.2ms)
> > >>> > > >
> > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for
> > >>> 127.0.0.1
> > >>> > > at
> > >>> > > > 2014-07-16 10:14:41 -0400
> > >>> > > >
> > >>> > > > Processing by TasksController#show as /
> > >>> > > >
> > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"}
> > >>> > > >
> > >>> > > > Rendered tasks/_list.html.erb (97.3ms)
> > >>> > > >
> > >>> > > > Completed 200 OK in 100.9ms (Views: 97.8ms | ActiveRecord:
0.2ms)
> > >>> > > >
> > >>> > > > Rendered compute_resources_vms/form/_ec2.html.erb (2008.5ms)
> > >>> > > >
> > >>> > > > Rendered hosts/_compute.html.erb (2265.7ms)
> > >>> > > >
> > >>> > > > Rendered common/os_selection/_architecture.html.erb (4.1ms)
> > >>> > > >
> > >>> > > > Rendered common/os_selection/_operatingsystem.html.erb
(39.0ms)
> > >>> > > >
> > >>> > > > Rendered hosts/_operating_system.html.erb (47.9ms)
> > >>> > > >
> > >>> > > > Rendered hosts/_unattended.html.erb (2322.9ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_class_parameters.html.erb (0.0ms)
> > >>> > > >
> > >>> > > > Rendered puppetclasses/_classes_parameters.html.erb (4.8ms)
> > >>> > > >
> > >>> > > > Rendered common_parameters/_inherited_parameters.html.erb
> > >>> (6.7ms)
> > >>> > > >
> > >>> > > > Rendered common_parameters/_puppetclass_parameter.html.erb
> > >>> (1.8ms)
> > >>> > > >
> > >>> > > > Rendered
common_parameters/_puppetclasses_parameters.html.erb
> > >>> (2.8ms)
> > >>> > > >
> > >>> > > > Rendered common_parameters/_parameter.html.erb (1.2ms)
> > >>> > > >
> > >>> > > > Rendered common_parameters/_parameters.html.erb (2.8ms)
> > >>> > > >
> > >>> > > > Rendered hosts/_form.html.erb (2862.7ms)
> > >>> > > >
> > >>> > > > Rendered hosts/new.html.erb within layouts/application
> > >>> (2863.2ms)
> > >>> > > >
> > >>> > > > Rendered home/_user_dropdown.html.erb (1.2ms)
> > >>> > > >
> > >>> > > > Read fragment views/tabs_and_title_records-3 0.1ms
> > >>> > > >
> > >>> > > > Rendered home/_topbar.html.erb (2.2ms)
> > >>> > > >
> > >>> > > > Rendered layouts/base.html.erb (3.7ms)
> > >>> > > >
> > >>> > > > Completed 200 OK in 3608.7ms (Views: 2860.5ms | ActiveRecord:
> > >>> 10.3ms)
> > >>> > > >
> > >>> > > > Started GET "/tasks/4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6" for
> > >>> 127.0.0.1
> > >>> > > at
> > >>> > > > 2014-07-16 10:14:42 -0400
> > >>> > > >
> > >>> > > > Processing by TasksController#show as /
> > >>> > > >
> > >>> > > > Parameters: {"id"=>"4b67bbd0-671b-4f3a-85e1-5d36d73b3ff6"}
> > >>> > > >
> > >>> > > > Rendered tasks/_list.html.erb (0.4ms)
> > >>> > > >
> > >>> > > > Completed 200 OK in 4.3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
> > >>> > > >
> > >>> > > > –
> > >>> > > > You received this message because you are subscribed to the
Google
> > >>> > > Groups "Foreman users" group.
> > >>> > > > To unsubscribe from this group and stop receiving emails from
it,
> > >>> send
> > >>> > > an email to foreman-user...@googlegroups.com <javascript:>.
> > >>> > > > To post to this group, send email to
forema...@googlegroups.com
> > >>> > > <javascript:>.
> > >>> > > > Visit this group at
http://groups.google.com/group/foreman-users.
> > >>> > > > For more options, visit https://groups.google.com/d/optout.
> > >>> > >
> > >>> > > –
> > >>> > > Later,
> > >>> > > Lukas #lzap Zapletal
> > >>> > >
> > >>> >
> > >>> > –
> > >>> > You received this message because you are subscribed to the Google
> > >>> Groups "Foreman users" group.
> > >>> > To unsubscribe from this group and stop receiving emails from it,
send
> > >>> an email to foreman-user...@googlegroups.com.
> > >>> > To post to this group, send email to forema...@googlegroups.com.
> > >>> > Visit this group at http://groups.google.com/group/foreman-users.
> > >>> > For more options, visit https://groups.google.com/d/optout.
> > >>>
> > >>> –
> > >>> Later,
> > >>> Lukas #lzap Zapletal
> > >>>
> > >> –
> > >> You received this message because you are subscribed to the Google
Groups
> > >> "Foreman users" group.
> > >> To unsubscribe from this group and stop receiving emails from it,
send an
> > >> email to foreman-user...@googlegroups.com <javascript:>.
> > >> To post to this group, send email to forema...@googlegroups.com
> > >> <javascript:>.
> > >> Visit this group at http://groups.google.com/group/foreman-users.
> > >> For more options, visit https://groups.google.com/d/optout.
> > >>
> > >
> > >
> >
> > –
> > You received this message because you are subscribed to the Google
Groups "Foreman users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
> > To post to this group, send email to foreman-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/foreman-users.
> > For more options, visit https://groups.google.com/d/optout.
>
> –
> Later,
> Lukas #lzap Zapletal
>
> –
> You received this message because you are subscribed to the Google Groups
"Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.

··· On Aug 12, 2014 9:00 PM, "Lukas Zapletal" wrote: > On Tue, Aug 12, 2014 at 10:55:06AM -0700, adavis wrote: > > On Tuesday, August 12, 2014 12:37:04 AM UTC-7, ohad wrote: > > > On Tue, Aug 12, 2014 at 1:41 AM, adavis <ada...@ntent.com > > > > wrote: > > >> On Thursday, July 17, 2014 8:03:24 AM UTC-7, Lukas Zapletal wrote: > > >>> On Thu, Jul 17, 2014 at 06:23:38AM -0700, Bernard Clark wrote: > > >>> > On Thursday, July 17, 2014 7:16:41 AM UTC-4, Lukas Zapletal wrote: > > >>> > > On Wed, Jul 16, 2014 at 08:30:19AM -0700, Bernard Clark wrote: > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.