Project

General

Profile

Bug #8810 » hammer-not-working-debug-run.txt

Jason Wever, 01/19/2015 10:05 AM

 
[ INFO 2015-01-19 15:00:37 Init] Initialization of Hammer CLI (0.1.3) has started...
[DEBUG 2015-01-19 15:00:37 Init] Running at ruby 1.8.7-p374
[ INFO 2015-01-19 15:00:37 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2015-01-19 15:00:37 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ WARN 2015-01-19 15:00:39 Modules] Legacy configuration of modules detected. Check section about configuration in user manual
[DEBUG 2015-01-19 15:00:39 Connection] Registered: foreman
[DEBUG 2015-01-19 15:00:39 API] Global headers: {
:accept => "application/json;version=2",
"Accept-Language" => "en",
:content_type => "application/json"
}
[ INFO 2015-01-19 15:00:39 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:39 API] Params: {}
[DEBUG 2015-01-19 15:00:39 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:39 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:39 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:39 GMT",
:x_powered_by => "Phusion Passenger 4.0.18",
:transfer_encoding => "chunked",
:cache_control => "must-revalidate, private, max-age=0",
:x_runtime => "0.004014",
:x_request_id => "9534f53933016ffeeef7da245ae31869",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:x_rack_cache => "miss",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:content_type => "application/json; charset=utf-8",
:server => "Apache/2.2.15 (CentOS)",
:x_ua_compatible => "IE=Edge,chrome=1"
}
[ INFO 2015-01-19 15:00:39 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[ INFO 2015-01-19 15:00:39 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[DEBUG 2015-01-19 15:00:39 Init] Using locale 'en'
[DEBUG 2015-01-19 15:00:39 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.3/locale'
[DEBUG 2015-01-19 15:00:39 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/locale'
[DEBUG 2015-01-19 15:00:39 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.3/locale'
[DEBUG 2015-01-19 15:00:39 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/locale'
[ INFO 2015-01-19 15:00:39 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_show_ids"=>true, "option_debug"=>true}
[ INFO 2015-01-19 15:00:39 HammerCLIForeman::Host] Called with options: {}
[ INFO 2015-01-19 15:00:39 HammerCLIForeman::Host::CreateCommand] Called with options: {"option_build"=>true, "option_puppet_proxy_id"=>"1", "option_environment_name"=>"production", "option_domain_id"=>"3", "option_owner_id"=>"8", "option_name"=>"foo", "option_interface_list"=>[{"network"=>"network-30", "type"=>"network"}], "option_operatingsystem_id"=>"19", "option_compute_profile_id"=>"8", "option_enabled"=>true, "option_partition_table_id"=>"1", "option_volume_list"=>[{"datastore"=>"mushka", "size_gb"=>"10", "name"=>"'Hard disk'"}], "option_compute_attributes"=>{"path"=>"/Datacenters/Foo/vm", "cluster"=>"QA", "memory_mb"=>"2048"}, "option_compute_resource_id"=>"3", "option_architecture_id"=>"1", "option_hostgroup_id"=>"8", "option_managed"=>true}
[ INFO 2015-01-19 15:00:39 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:39 API] Params: {}
[DEBUG 2015-01-19 15:00:39 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:39 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:39 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:39 GMT",
:x_powered_by => "Phusion Passenger 4.0.18",
:transfer_encoding => "chunked",
:cache_control => "must-revalidate, private, max-age=0",
:x_runtime => "0.003465",
:x_request_id => "8529258761dc1100a562a15fcb1b422f",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:x_rack_cache => "miss",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:content_type => "application/json; charset=utf-8",
:server => "Apache/2.2.15 (CentOS)",
:x_ua_compatible => "IE=Edge,chrome=1"
}
[ INFO 2015-01-19 15:00:39 API] GET /api/environments
[DEBUG 2015-01-19 15:00:39 API] Params: {
:search => "name = \"production\""
}
[DEBUG 2015-01-19 15:00:39 API] Headers: {
:params => {
:search => "name = \"production\""
}
}
[DEBUG 2015-01-19 15:00:40 API] Response: {
"results" => [
[0] {
"updated_at" => "2013-05-22T18:05:17Z",
"id" => 1,
"created_at" => "2013-05-22T18:05:17Z",
"name" => "production"
}
],
"page" => 1,
"total" => 6,
"per_page" => 100,
"sort" => {
"order" => nil,
"by" => nil
},
"search" => "name = \"production\"",
"subtotal" => 1
}
[DEBUG 2015-01-19 15:00:40 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:39 GMT",
:set_cookie => [
[0] "_session_id=11b69e92711cba9658b1235fac60eda4; path=/; HttpOnly"
],
:x_powered_by => "Phusion Passenger 4.0.18",
:transfer_encoding => "chunked",
:cache_control => "must-revalidate, private, max-age=0",
:x_runtime => "0.189001",
:x_request_id => "c0ac17336e0717c354e39ab23dc08bfe",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:x_rack_cache => "miss",
:foreman_version => "1.7.1",
:etag => "\"e576cd9d7230bfde10f002b5491ec1d9\"",
:content_type => "application/json; charset=utf-8",
:foreman_api_version => "2",
:server => "Apache/2.2.15 (CentOS)",
:x_ua_compatible => "IE=Edge,chrome=1"
}
[ INFO 2015-01-19 15:00:40 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:40 API] Params: {}
[DEBUG 2015-01-19 15:00:40 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:40 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:40 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:40 GMT",
:x_powered_by => "Phusion Passenger 4.0.18",
:transfer_encoding => "chunked",
:cache_control => "must-revalidate, private, max-age=0",
:x_runtime => "0.004452",
:x_request_id => "3c10acd664bf2aa3103e9383d764d359",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:x_rack_cache => "miss",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:content_type => "application/json; charset=utf-8",
:server => "Apache/2.2.15 (CentOS)",
:x_ua_compatible => "IE=Edge,chrome=1"
}
[ INFO 2015-01-19 15:00:40 API] POST /api/hosts
[DEBUG 2015-01-19 15:00:40 API] Params: {
"host" => {
"architecture_id" => "1",
"domain_id" => "3",
"managed" => true,
"ptable_id" => "1",
"compute_profile_id" => "8",
"build" => true,
"hostgroup_id" => "8",
"compute_resource_id" => "3",
"compute_attributes" => {
"volumes_attributes" => {
"0" => {
"datastore" => "mushka",
"size_gb" => "10",
"name" => "'Hard disk'"
}
},
"path" => "/Datacenters/Foo/vm",
"cluster" => "QA",
"nics_attributes" => {
"0" => {
"network" => "network-30",
"type" => "network"
}
},
"interfaces_attributes" => {
"0" => {
"network" => "network-30",
"type" => "network"
}
},
"memory_mb" => "2048"
},
"operatingsystem_id" => "19",
"name" => "foo",
"host_parameters_attributes" => {},
"enabled" => true,
"owner_id" => "8",
"puppet_proxy_id" => "1",
"environment_id" => 1
}
}
[DEBUG 2015-01-19 15:00:40 API] Headers: {}
[DEBUG 2015-01-19 15:00:41 API] 422 Unprocessable Entity
{
"error" => {
"id" => nil,
"full_messages" => [
[0] "Failed to create a compute vsphere-foo (VMWare) instance foo.bar.com: failed to create vm: undefined method `new' for nil:NilClass\n "
],
"errors" => {
"base" => [
[0] "Failed to create a compute vsphere-foo (VMWare) instance foo.bar.com: failed to create vm: undefined method `new' for nil:NilClass\n "
]
}
}
}
[ERROR 2015-01-19 15:00:41 Exception] Failed to create a compute vsphere-foo (VMWare) instance foo.bar.com: failed to create vm: undefined method `new' for nil:NilClass
Could not create the host:
Failed to create a compute vsphere-foo (VMWare) instance foo.bar.com: failed to create vm: undefined method `new' for nil:NilClass
(1-1/2)