Project

General

Profile

Bug #14872 » hammer.log

Evan Powell, 12/14/2016 10:56 PM

 
[ INFO 2016-12-15 03:41:22 Init] Initialization of Hammer CLI (0.2.0) has started...
[DEBUG 2016-12-15 03:41:22 Init] Running at ruby 2.0.0-p598
[ INFO 2016-12-15 03:41:22 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2016-12-15 03:41:22 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2016-12-15 03:41:22 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
[ INFO 2016-12-15 03:41:22 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
[DEBUG 2016-12-15 03:41:23 Connection] Registered: foreman
[DEBUG 2016-12-15 03:41:23 API] Global headers: {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en"
}
[ INFO 2016-12-15 03:41:23 Modules] Extension module hammer_cli_foreman (0.2.0) loaded
[DEBUG 2016-12-15 03:41:23 Init] Using locale 'en'
[DEBUG 2016-12-15 03:41:23 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.2.0/locale'
[DEBUG 2016-12-15 03:41:23 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.2.0/locale'
[ INFO 2016-12-15 03:41:23 HammerCLI::MainCommand] Called with options: {"option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
[ INFO 2016-12-15 03:41:23 HammerCLIForeman::Hostgroup] Called with options: {}
[ INFO 2016-12-15 03:41:23 HammerCLIForeman::Hostgroup::UpdateCommand] Called with options: {"option_name"=>"TestHostgroup", "option_ptable_name"=>"New Ptable"}
[ INFO 2016-12-15 03:41:23 API] GET /api/ptables
[DEBUG 2016-12-15 03:41:23 API] Params: {
:search => "name = \"New Ptable\""
}
[DEBUG 2016-12-15 03:41:23 API] Headers: {
:params => {
:search => "name = \"New Ptable\""
}
}
[DEBUG 2016-12-15 03:41:23 API] Response: {
"total" => 12,
"subtotal" => 1,
"page" => 1,
"per_page" => 20,
"search" => "name = \"New Ptable\"",
"sort" => {
"by" => nil,
"order" => nil
},
"results" => [
[0] {
"os_family" => nil,
"created_at" => "2016-12-15T03:24:56Z",
"updated_at" => "2016-12-15T03:24:56Z",
"name" => "New Ptable",
"id" => 12
}
]
}
[DEBUG 2016-12-15 03:41:23 API] Response headers: {
:date => "Thu, 15 Dec 2016 03:41:23 GMT",
:server => "Apache/2.4.6 (CentOS)",
:foreman_version => "1.8.4",
:foreman_api_version => "2",
:apipie_checksum => "054cbde6d1088a70e05d92dc07cf6fb2",
:x_ua_compatible => "IE=Edge,chrome=1",
:cache_control => "must-revalidate, private, max-age=0",
:x_request_id => "9309e2b289a27d8cf3d26362c8bcb954",
:x_runtime => "0.053311",
:x_rack_cache => "miss",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "_session_id=a83e3f0a8f55dc4fdf24cdd7bcecc688; path=/; secure; HttpOnly",
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
],
:etag => "\"23e01fc857742af23581db9e90ff6b31\"",
:status => "200 OK",
:connection => "close",
:transfer_encoding => "chunked",
:content_type => "application/json; charset=utf-8"
}
[ INFO 2016-12-15 03:41:23 API] GET /api/hostgroups
[DEBUG 2016-12-15 03:41:23 API] Params: {
:search => "name = \"TestHostgroup\""
}
[DEBUG 2016-12-15 03:41:23 API] Headers: {
:params => {
:search => "name = \"TestHostgroup\""
}
}
[DEBUG 2016-12-15 03:41:23 API] Response: {
"total" => 5,
"subtotal" => 1,
"page" => 1,
"per_page" => 20,
"search" => "name = \"TestHostgroup\"",
"sort" => {
"by" => nil,
"order" => nil
},
"results" => [
[0] {
"subnet_id" => 1,
"subnet_name" => "mgmt",
"operatingsystem_id" => 1,
"operatingsystem_name" => "CentOS 7.2",
"domain_id" => 1,
"domain_name" => "droidcloud.mobi",
"environment_id" => 1,
"environment_name" => "production",
"compute_profile_id" => nil,
"compute_profile_name" => nil,
"ancestry" => nil,
"puppet_proxy_id" => 1,
"puppet_ca_proxy_id" => 1,
"ptable_id" => 8,
"ptable_name" => "Kickstart default",
"medium_id" => 8,
"medium_name" => "TestMedia",
"architecture_id" => 1,
"architecture_name" => "x86_64",
"realm_id" => nil,
"realm_name" => nil,
"created_at" => "2016-12-15T03:15:59Z",
"updated_at" => "2016-12-15T03:15:59Z",
"id" => 2,
"name" => "TestHostgroup",
"title" => "TestHostgroup"
}
]
}
[DEBUG 2016-12-15 03:41:23 API] Response headers: {
:date => "Thu, 15 Dec 2016 03:41:23 GMT",
:server => "Apache/2.4.6 (CentOS)",
:foreman_version => "1.8.4",
:foreman_api_version => "2",
:apipie_checksum => "054cbde6d1088a70e05d92dc07cf6fb2",
:x_ua_compatible => "IE=Edge,chrome=1",
:cache_control => "must-revalidate, private, max-age=0",
:x_request_id => "f1276b00e28fa07b002732053a390a0a",
:x_runtime => "0.044291",
:x_rack_cache => "miss",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "_session_id=a2f8415b41bff26ce1895e10137c9d5e; path=/; secure; HttpOnly",
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
],
:etag => "\"69cd13b6c10a30f378f5b6768407c8ac\"",
:status => "200 OK",
:connection => "close",
:transfer_encoding => "chunked",
:content_type => "application/json; charset=utf-8"
}
[ INFO 2016-12-15 03:41:23 API] PUT /api/hostgroups/2
[DEBUG 2016-12-15 03:41:23 API] Params: {
"hostgroup" => {
"name" => "TestHostgroup",
"ptable_id" => 12,
"puppet_proxy_id" => nil,
"puppet_ca_proxy_id" => nil,
"puppetclass_ids" => nil
}
}
[DEBUG 2016-12-15 03:41:23 API] Headers: {}
[DEBUG 2016-12-15 03:41:23 API] Response: {
"ancestry" => nil,
"architecture_id" => 1,
"compute_profile_id" => nil,
"created_at" => "2016-12-15T03:15:59Z",
"domain_id" => 1,
"environment_id" => 1,
"grub_pass" => "",
"id" => 2,
"image_file" => "",
"medium_id" => 8,
"name" => "TestHostgroup",
"operatingsystem_id" => 1,
"ptable_id" => 12,
"puppet_ca_proxy_id" => nil,
"puppet_proxy_id" => nil,
"realm_id" => nil,
"root_pass" => nil,
"subnet_id" => 1,
"title" => "TestHostgroup",
"updated_at" => "2016-12-15T03:41:23Z",
"use_image" => nil,
"vm_defaults" => nil
}
[DEBUG 2016-12-15 03:41:23 API] Response headers: {
:date => "Thu, 15 Dec 2016 03:41:23 GMT",
:server => "Apache/2.4.6 (CentOS)",
:foreman_version => "1.8.4",
:foreman_api_version => "2",
:apipie_checksum => "054cbde6d1088a70e05d92dc07cf6fb2",
:x_ua_compatible => "IE=Edge,chrome=1",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "0aa7b09897b736cce590c3d27b151b9e",
:x_runtime => "0.080451",
:x_rack_cache => "invalidate, pass",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "_session_id=737fcf2d564590d95c3df9d71658ff58; path=/; secure; HttpOnly",
[1] "request_method=PUT; path=/"
],
:etag => "\"e8869eee33d5d2db7ce6bc9328430209\"",
:status => "200 OK",
:connection => "close",
:transfer_encoding => "chunked",
:content_type => "application/json; charset=utf-8"
}
Hostgroup updated

(2-2/2)