Project

General

Profile

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

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

 
[ INFO 2015-01-19 15:00:03 Init] Initialization of Hammer CLI (0.1.3) has started...
[DEBUG 2015-01-19 15:00:03 Init] Running at ruby 1.8.7-p374
[ INFO 2015-01-19 15:00:03 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2015-01-19 15:00:03 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ WARN 2015-01-19 15:00:05 Modules] Legacy configuration of modules detected. Check section about configuration in user manual
[DEBUG 2015-01-19 15:00:05 Connection] Registered: foreman
[DEBUG 2015-01-19 15:00:05 API] Global headers: {
"Accept-Language" => "en",
:accept => "application/json;version=2",
:content_type => "application/json"
}
[ INFO 2015-01-19 15:00:05 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:05 API] Params: {}
[DEBUG 2015-01-19 15:00:05 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:05 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:05 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:05 GMT",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.004061",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "383e8e12ae295747a4cfb1464f7cd40b"
}
[ INFO 2015-01-19 15:00:05 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[ INFO 2015-01-19 15:00:05 Modules] Extension module hammer_cli_foreman (0.1.3) loaded
[DEBUG 2015-01-19 15:00:05 Init] Using locale 'en'
[DEBUG 2015-01-19 15:00:05 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:05 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/locale'
[DEBUG 2015-01-19 15:00:05 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:05 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/locale'
[ INFO 2015-01-19 15:00:05 HammerCLI::MainCommand] Called with options: {"option_debug"=>true, "option_verbose"=>true, "option_show_ids"=>true}
[ INFO 2015-01-19 15:00:05 HammerCLIForeman::Host] Called with options: {}
[ INFO 2015-01-19 15:00:05 HammerCLIForeman::Host::CreateCommand] Called with options: {"option_compute_profile_id"=>"8", "option_compute_resource_name"=>"vsphere-foo", "option_enabled"=>true, "option_partition_table_id"=>"1", "option_managed"=>true, "option_domain_id"=>"3", "option_environment_name"=>"production", "option_interface_list"=>[{"network"=>"network-30", "type"=>"network"}], "option_volume_list"=>[{"size_gb"=>"10", "datastore"=>"mushka", "name"=>"'Hard disk'"}], "option_name"=>"foo", "option_build"=>true, "option_operatingsystem_id"=>"19", "option_architecture_id"=>"1", "option_owner_id"=>"8", "option_hostgroup_id"=>"8", "option_compute_attributes"=>{"path"=>"/Datacenters/Foo/vm", "memory_mb"=>"2048", "cluster"=>"QA"}, "option_puppet_proxy_id"=>"1"}
[ INFO 2015-01-19 15:00:05 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:05 API] Params: {}
[DEBUG 2015-01-19 15:00:05 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:05 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:05 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:05 GMT",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.003612",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "5e879c7f2d559985b10c9340a159d5bf"
}
[ INFO 2015-01-19 15:00:05 API] GET /api/environments
[DEBUG 2015-01-19 15:00:05 API] Params: {
:search => "name = \"production\""
}
[DEBUG 2015-01-19 15:00:05 API] Headers: {
:params => {
:search => "name = \"production\""
}
}
[DEBUG 2015-01-19 15:00:05 API] Response: {
"search" => "name = \"production\"",
"per_page" => 100,
"page" => 1,
"subtotal" => 1,
"total" => 6,
"sort" => {
"order" => nil,
"by" => nil
},
"results" => [
[0] {
"id" => 1,
"created_at" => "2013-05-22T18:05:17Z",
"updated_at" => "2013-05-22T18:05:17Z",
"name" => "production"
}
]
}
[DEBUG 2015-01-19 15:00:05 API] Response headers: {
:set_cookie => [
[0] "_session_id=2fc9cd815f0a275c9f6de761107983f6; path=/; HttpOnly"
],
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:05 GMT",
:etag => "\"e576cd9d7230bfde10f002b5491ec1d9\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.034961",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:foreman_api_version => "2",
:foreman_version => "1.7.1",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "166c8d2b352f3c2f530900b52dce1397"
}
[ INFO 2015-01-19 15:00:06 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:06 API] Params: {}
[DEBUG 2015-01-19 15:00:06 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:06 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:06 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:06 GMT",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.004107",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "abf2769ec4e64ebd93bc69fea44c3126"
}
[ INFO 2015-01-19 15:00:06 API] GET /api/compute_resources
[DEBUG 2015-01-19 15:00:06 API] Params: {
:search => "name = \"vsphere-foo\""
}
[DEBUG 2015-01-19 15:00:06 API] Headers: {
:params => {
:search => "name = \"vsphere-foo\""
}
}
[DEBUG 2015-01-19 15:00:06 API] Response: {
"search" => "name = \"vsphere-foo\"",
"per_page" => 100,
"page" => 1,
"subtotal" => 1,
"total" => 3,
"sort" => {
"order" => nil,
"by" => nil
},
"results" => [
[0] {
"user" => "puppet@vsphere.local",
"id" => 3,
"created_at" => "2014-09-24T20:01:47Z",
"description" => "vSphere server in Foo, MA datacenter",
"datacenter" => "Foo",
"provider" => "VMWare",
"server" => "vsphere.texterity.com",
"updated_at" => "2014-12-31T18:12:04Z",
"set_console_password" => false,
"url" => "vsphere.texterity.com",
"name" => "vsphere-foo"
}
]
}
[DEBUG 2015-01-19 15:00:06 API] Response headers: {
:set_cookie => [
[0] "_session_id=fdb23aca19c0b06928876164cb5e5597; path=/; HttpOnly"
],
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:06 GMT",
:etag => "\"2b88eeb5263ee8a6cbe3feb72cb4f946\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.047125",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:foreman_api_version => "2",
:foreman_version => "1.7.1",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "e4656fc52f3382842041fd6b014bfed0"
}
[ INFO 2015-01-19 15:00:06 API] GET /apidoc/apipie_checksum
[DEBUG 2015-01-19 15:00:06 API] Params: {}
[DEBUG 2015-01-19 15:00:06 API] Headers: {
:params => {},
:accept => "application/json"
}
[DEBUG 2015-01-19 15:00:06 API] Response: {
"checksum" => "4681c58c71716de25c6227c13bac2893"
}
[DEBUG 2015-01-19 15:00:06 API] Response headers: {
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:06 GMT",
:etag => "\"645d9d221a8bbf055e8f3552a774a61b\"",
:cache_control => "must-revalidate, private, max-age=0",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "0.006008",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "miss",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "e029100aceb775bf4fe188f92c730119"
}
[ INFO 2015-01-19 15:00:06 API] POST /api/hosts
[DEBUG 2015-01-19 15:00:06 API] Params: {
"host" => {
"ptable_id" => "1",
"operatingsystem_id" => "19",
"architecture_id" => "1",
"compute_attributes" => {
"volumes_attributes" => {
"0" => {
"size_gb" => "10",
"datastore" => "mushka",
"name" => "'Hard disk'"
}
},
"path" => "/Datacenters/Foo/vm",
"memory_mb" => "2048",
"cluster" => "QA"
},
"enabled" => true,
"owner_id" => "8",
"compute_resource_id" => 3,
"domain_id" => "3",
"host_parameters_attributes" => {},
"hostgroup_id" => "8",
"compute_profile_id" => "8",
"interfaces_attributes" => {
"0" => {
"network" => "network-30",
"type" => "network"
}
},
"managed" => true,
"build" => true,
"environment_id" => 1,
"puppet_proxy_id" => "1",
"name" => "foo"
}
}
[DEBUG 2015-01-19 15:00:06 API] Headers: {}
[DEBUG 2015-01-19 15:00:09 API] Response: {
"serial" => nil,
"image_id" => nil,
"capabilities" => [
[0] "build",
[1] "image"
],
"ptable_id" => 1,
"puppetclasses" => [],
"owner_type" => "User",
"realm_name" => nil,
"realm_id" => nil,
"last_report" => nil,
"provision_method" => "build",
"installed_at" => nil,
"medium_id" => 1,
"ptable_name" => "Kickstart default",
"sp_subnet_id" => nil,
"operatingsystem_name" => "CentOS 6.5",
"operatingsystem_id" => 19,
"architecture_id" => 1,
"sp_ip" => nil,
"environment_name" => "production",
"interfaces" => [],
"parameters" => [],
"last_freshcheck" => nil,
"compute_resource_id" => 3,
"use_image" => nil,
"enabled" => true,
"owner_id" => 8,
"model_id" => nil,
"medium_name" => "CentOS mirror",
"domain_id" => 3,
"ip" => nil,
"id" => 799,
"certname" => "foo.bar.com",
"compute_profile_name" => "VMWare QA Proxy Server (Proxy, Load Balancer, Dashboard Load Balancer, etc.)",
"hostgroup_name" => "linux/texterity/qa/proxy-server",
"sp_name" => nil,
"sp_mac" => nil,
"all_puppetclasses" => [
[0] {
"id" => 6,
"module_name" => "base",
"name" => "base"
},
[1] {
"id" => 287,
"module_name" => "nis",
"name" => "nis"
},
[2] {
"id" => 479,
"module_name" => "texterity",
"name" => "texterity::proxy"
},
[3] {
"id" => 133,
"module_name" => "yum",
"name" => "yum"
}
],
"created_at" => "2015-01-19T15:00:09Z",
"hostgroup_id" => 8,
"subnet_name" => nil,
"last_compile" => nil,
"image_name" => nil,
"compute_profile_id" => 8,
"uuid" => "502b42d2-0ee8-6d58-9adb-6f3e889ca881",
"image_file" => "",
"disk" => nil,
"subnet_id" => nil,
"domain_name" => "bar.com",
"model_name" => nil,
"comment" => nil,
"managed" => true,
"mac" => "00:50:56:ab:a1:e9",
"config_groups" => [],
"puppet_status" => 0,
"updated_at" => "2015-01-19T15:00:09Z",
"compute_resource_name" => "vsphere-foo",
"puppet_ca_proxy_id" => 1,
"build" => true,
"architecture_name" => "x86_64",
"environment_id" => 1,
"source_file_id" => nil,
"puppet_proxy_id" => 1,
"name" => "foo.bar.com"
}
[DEBUG 2015-01-19 15:00:09 API] Response headers: {
:set_cookie => [
[0] "_session_id=ec04223ab965ab146a1ee3d5845dca79; path=/; HttpOnly"
],
:status => "200 OK",
:date => "Mon, 19 Jan 2015 15:00:06 GMT",
:etag => "\"ecdcc9c3a14137e7a5dbca0032025cc8\"",
:cache_control => "max-age=0, private, must-revalidate",
:x_ua_compatible => "IE=Edge,chrome=1",
:transfer_encoding => "chunked",
:x_powered_by => "Phusion Passenger 4.0.18",
:x_runtime => "3.628528",
:apipie_checksum => "4681c58c71716de25c6227c13bac2893",
:foreman_api_version => "2",
:foreman_version => "1.7.1",
:content_type => "application/json; charset=utf-8",
:x_rack_cache => "invalidate, pass",
:server => "Apache/2.2.15 (CentOS)",
:x_request_id => "363a0742c9913a329c56298347df5618"
}
Host created
(2-2/2)