|
[ INFO 2015-04-21 08:45:12 Init] Initialization of Hammer CLI (0.1.4) has started...
|
|
[DEBUG 2015-04-21 08:45:12 Init] Running at ruby 2.0.0-p598
|
|
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
|
|
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
|
|
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
|
|
[DEBUG 2015-04-21 08:45:12 Connection] Registered: foreman
|
|
[DEBUG 2015-04-21 08:45:12 API] Global headers: {
|
|
:content_type[0;37m => [0m[0;33m"application/json"[0m,
|
|
:accept[0;37m => [0m[0;33m"application/json;version=2"[0m,
|
|
"Accept-Language"[0;37m => [0m[0;33m"en_GB"[0m
|
|
}
|
|
[ INFO 2015-04-21 08:45:12 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
|
|
[DEBUG 2015-04-21 08:45:12 Init] Using locale 'en_GB'
|
|
[DEBUG 2015-04-21 08:45:12 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.1.4/locale'
|
|
[DEBUG 2015-04-21 08:45:12 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.1.4/locale'
|
|
[ INFO 2015-04-21 08:45:12 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
|
|
[ INFO 2015-04-21 08:45:13 HammerCLIForeman::Host] Called with options: {}
|
|
[ INFO 2015-04-21 08:45:13 HammerCLIForeman::Host::UpdateCommand] Called with options: {"option_volume_list"=>[], "option_interface_list"=>[], "option_name"=>"foreman.example.com", "option_comment"=>"test5"}
|
|
[ INFO 2015-04-21 08:45:13 API] GET /api/hosts
|
|
[DEBUG 2015-04-21 08:45:13 API] Params: {
|
|
:search[0;37m => [0m[0;33m"name = \"foreman.example.com\""[0m
|
|
}
|
|
[DEBUG 2015-04-21 08:45:13 API] Headers: {
|
|
:params[0;37m => [0m{
|
|
:search[0;37m => [0m[0;33m"name = \"foreman.example.com\""[0m
|
|
}
|
|
}
|
|
[DEBUG 2015-04-21 08:45:15 API] Response: {
|
|
"total"[0;37m => [0m[1;34m1[0m,
|
|
"subtotal"[0;37m => [0m[1;34m1[0m,
|
|
"page"[0;37m => [0m[1;34m1[0m,
|
|
"per_page"[0;37m => [0m[1;34m20[0m,
|
|
"search"[0;37m => [0m[0;33m"name = \"foreman.example.com\""[0m,
|
|
"sort"[0;37m => [0m{
|
|
"by"[0;37m => [0m[1;31mnil[0m,
|
|
"order"[0;37m => [0m[1;31mnil[0m
|
|
},
|
|
"results"[0;37m => [0m[
|
|
[1;37m[0] [0m{
|
|
"ip"[0;37m => [0m[0;33m"192.168.122.136"[0m,
|
|
"environment_id"[0;37m => [0m[1;34m1[0m,
|
|
"environment_name"[0;37m => [0m[0;33m"production"[0m,
|
|
"last_report"[0;37m => [0m[0;33m"2015-04-21T08:26:33Z"[0m,
|
|
"mac"[0;37m => [0m[0;33m"52:54:00:05:02:1b"[0m,
|
|
"realm_id"[0;37m => [0m[1;31mnil[0m,
|
|
"realm_name"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_mac"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_ip"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_name"[0;37m => [0m[1;31mnil[0m,
|
|
"domain_id"[0;37m => [0m[1;34m1[0m,
|
|
"domain_name"[0;37m => [0m[0;33m"example.com"[0m,
|
|
"architecture_id"[0;37m => [0m[1;34m1[0m,
|
|
"architecture_name"[0;37m => [0m[0;33m"x86_64"[0m,
|
|
"operatingsystem_id"[0;37m => [0m[1;34m1[0m,
|
|
"operatingsystem_name"[0;37m => [0m[0;33m"CentOS 7.0"[0m,
|
|
"subnet_id"[0;37m => [0m[1;31mnil[0m,
|
|
"subnet_name"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_subnet_id"[0;37m => [0m[1;31mnil[0m,
|
|
"ptable_id"[0;37m => [0m[1;31mnil[0m,
|
|
"ptable_name"[0;37m => [0m[1;31mnil[0m,
|
|
"medium_id"[0;37m => [0m[1;31mnil[0m,
|
|
"medium_name"[0;37m => [0m[1;31mnil[0m,
|
|
"build"[0;37m => [0m[1;31mfalse[0m,
|
|
"comment"[0;37m => [0m[0;33m"test5"[0m,
|
|
"disk"[0;37m => [0m[1;31mnil[0m,
|
|
"installed_at"[0;37m => [0m[1;31mnil[0m,
|
|
"model_id"[0;37m => [0m[1;34m1[0m,
|
|
"model_name"[0;37m => [0m[0;33m"Standard PC (i440FX + PIIX, 1996)"[0m,
|
|
"hostgroup_id"[0;37m => [0m[1;31mnil[0m,
|
|
"hostgroup_name"[0;37m => [0m[1;31mnil[0m,
|
|
"owner_id"[0;37m => [0m[1;34m3[0m,
|
|
"owner_type"[0;37m => [0m[0;33m"User"[0m,
|
|
"enabled"[0;37m => [0m[1;32mtrue[0m,
|
|
"puppet_ca_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"managed"[0;37m => [0m[1;31mfalse[0m,
|
|
"use_image"[0;37m => [0m[1;31mnil[0m,
|
|
"image_file"[0;37m => [0m[0;33m""[0m,
|
|
"uuid"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_resource_id"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_resource_name"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_profile_id"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_profile_name"[0;37m => [0m[1;31mnil[0m,
|
|
"capabilities"[0;37m => [0m[
|
|
[1;37m[0] [0m[0;33m"build"[0m
|
|
],
|
|
"provision_method"[0;37m => [0m[0;33m"build"[0m,
|
|
"puppet_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"certname"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"image_id"[0;37m => [0m[1;31mnil[0m,
|
|
"image_name"[0;37m => [0m[1;31mnil[0m,
|
|
"created_at"[0;37m => [0m[0;33m"2015-04-08T15:08:39Z"[0m,
|
|
"updated_at"[0;37m => [0m[0;33m"2015-04-21T08:44:42Z"[0m,
|
|
"last_compile"[0;37m => [0m[0;33m"2015-04-21T08:26:36Z"[0m,
|
|
"last_freshcheck"[0;37m => [0m[1;31mnil[0m,
|
|
"serial"[0;37m => [0m[1;31mnil[0m,
|
|
"source_file_id"[0;37m => [0m[1;31mnil[0m,
|
|
"puppet_status"[0;37m => [0m[1;34m0[0m,
|
|
"name"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"id"[0;37m => [0m[1;34m1[0m
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2015-04-21 08:45:15 API] Response headers: {
|
|
:date[0;37m => [0m[0;33m"Tue, 21 Apr 2015 08:45:13 GMT"[0m,
|
|
:server[0;37m => [0m[0;33m"Apache/2.4.6 (CentOS)"[0m,
|
|
:foreman_version[0;37m => [0m[0;33m"1.9.0-develop"[0m,
|
|
:foreman_api_version[0;37m => [0m[0;33m"2"[0m,
|
|
:apipie_checksum[0;37m => [0m[0;33m"4d656d75ef7782aedb2e0fd86c750aa4"[0m,
|
|
:x_ua_compatible[0;37m => [0m[0;33m"IE=Edge,chrome=1"[0m,
|
|
:cache_control[0;37m => [0m[0;33m"must-revalidate, private, max-age=0"[0m,
|
|
:x_request_id[0;37m => [0m[0;33m"f5acd7b70ccb05ebefb86f0dc162d22b"[0m,
|
|
:x_runtime[0;37m => [0m[0;33m"2.093286"[0m,
|
|
:x_rack_cache[0;37m => [0m[0;33m"miss"[0m,
|
|
:x_powered_by[0;37m => [0m[0;33m"Phusion Passenger 4.0.18"[0m,
|
|
:set_cookie[0;37m => [0m[
|
|
[1;37m[0] [0m[0;33m"_session_id=34f3f27d160ca441539200ad18c06a5d; path=/; HttpOnly"[0m,
|
|
[1;37m[1] [0m[0;33m"request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"[0m
|
|
],
|
|
:etag[0;37m => [0m[0;33m"\"c0492f011eac2c44657beaefbf1fb3f6\""[0m,
|
|
:status[0;37m => [0m[0;33m"200 OK"[0m,
|
|
:connection[0;37m => [0m[0;33m"close"[0m,
|
|
:transfer_encoding[0;37m => [0m[0;33m"chunked"[0m,
|
|
:content_type[0;37m => [0m[0;33m"application/json; charset=utf-8"[0m
|
|
}
|
|
[ INFO 2015-04-21 08:45:15 API] PUT /api/hosts/1
|
|
[DEBUG 2015-04-21 08:45:15 API] Params: {
|
|
"host"[0;37m => [0m{
|
|
"name"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"comment"[0;37m => [0m[0;33m"test5"[0m,
|
|
"compute_attributes"[0;37m => [0m{
|
|
"volumes_attributes"[0;37m => [0m{}
|
|
},
|
|
"owner_id"[0;37m => [0m[1;31mnil[0m,
|
|
"puppet_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"puppet_ca_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"puppetclass_ids"[0;37m => [0m[1;31mnil[0m,
|
|
"host_parameters_attributes"[0;37m => [0m{},
|
|
"interfaces_attributes"[0;37m => [0m{}
|
|
}
|
|
}
|
|
[DEBUG 2015-04-21 08:45:15 API] Headers: {}
|
|
[DEBUG 2015-04-21 08:45:15 API] Response: {
|
|
"ip"[0;37m => [0m[0;33m"192.168.122.136"[0m,
|
|
"environment_id"[0;37m => [0m[1;34m1[0m,
|
|
"environment_name"[0;37m => [0m[0;33m"production"[0m,
|
|
"last_report"[0;37m => [0m[0;33m"2015-04-21T08:26:33Z"[0m,
|
|
"mac"[0;37m => [0m[0;33m"52:54:00:05:02:1b"[0m,
|
|
"realm_id"[0;37m => [0m[1;31mnil[0m,
|
|
"realm_name"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_mac"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_ip"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_name"[0;37m => [0m[1;31mnil[0m,
|
|
"domain_id"[0;37m => [0m[1;34m1[0m,
|
|
"domain_name"[0;37m => [0m[0;33m"example.com"[0m,
|
|
"architecture_id"[0;37m => [0m[1;34m1[0m,
|
|
"architecture_name"[0;37m => [0m[0;33m"x86_64"[0m,
|
|
"operatingsystem_id"[0;37m => [0m[1;34m1[0m,
|
|
"operatingsystem_name"[0;37m => [0m[0;33m"CentOS 7.0"[0m,
|
|
"subnet_id"[0;37m => [0m[1;31mnil[0m,
|
|
"subnet_name"[0;37m => [0m[1;31mnil[0m,
|
|
"sp_subnet_id"[0;37m => [0m[1;31mnil[0m,
|
|
"ptable_id"[0;37m => [0m[1;31mnil[0m,
|
|
"ptable_name"[0;37m => [0m[1;31mnil[0m,
|
|
"medium_id"[0;37m => [0m[1;31mnil[0m,
|
|
"medium_name"[0;37m => [0m[1;31mnil[0m,
|
|
"build"[0;37m => [0m[1;31mfalse[0m,
|
|
"comment"[0;37m => [0m[0;33m"test5"[0m,
|
|
"disk"[0;37m => [0m[1;31mnil[0m,
|
|
"installed_at"[0;37m => [0m[1;31mnil[0m,
|
|
"model_id"[0;37m => [0m[1;34m1[0m,
|
|
"model_name"[0;37m => [0m[0;33m"Standard PC (i440FX + PIIX, 1996)"[0m,
|
|
"hostgroup_id"[0;37m => [0m[1;31mnil[0m,
|
|
"hostgroup_name"[0;37m => [0m[1;31mnil[0m,
|
|
"owner_id"[0;37m => [0m[1;34m3[0m,
|
|
"owner_type"[0;37m => [0m[0;33m"User"[0m,
|
|
"enabled"[0;37m => [0m[1;32mtrue[0m,
|
|
"puppet_ca_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"managed"[0;37m => [0m[1;31mfalse[0m,
|
|
"use_image"[0;37m => [0m[1;31mnil[0m,
|
|
"image_file"[0;37m => [0m[0;33m""[0m,
|
|
"uuid"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_resource_id"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_resource_name"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_profile_id"[0;37m => [0m[1;31mnil[0m,
|
|
"compute_profile_name"[0;37m => [0m[1;31mnil[0m,
|
|
"capabilities"[0;37m => [0m[
|
|
[1;37m[0] [0m[0;33m"build"[0m
|
|
],
|
|
"provision_method"[0;37m => [0m[0;33m"build"[0m,
|
|
"puppet_proxy_id"[0;37m => [0m[1;31mnil[0m,
|
|
"certname"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"image_id"[0;37m => [0m[1;31mnil[0m,
|
|
"image_name"[0;37m => [0m[1;31mnil[0m,
|
|
"created_at"[0;37m => [0m[0;33m"2015-04-08T15:08:39Z"[0m,
|
|
"updated_at"[0;37m => [0m[0;33m"2015-04-21T08:44:42Z"[0m,
|
|
"last_compile"[0;37m => [0m[0;33m"2015-04-21T08:26:36Z"[0m,
|
|
"last_freshcheck"[0;37m => [0m[1;31mnil[0m,
|
|
"serial"[0;37m => [0m[1;31mnil[0m,
|
|
"source_file_id"[0;37m => [0m[1;31mnil[0m,
|
|
"puppet_status"[0;37m => [0m[1;34m0[0m,
|
|
"name"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"id"[0;37m => [0m[1;34m1[0m,
|
|
"parameters"[0;37m => [0m[],
|
|
"interfaces"[0;37m => [0m[
|
|
[1;37m[0] [0m{
|
|
"id"[0;37m => [0m[1;34m1[0m,
|
|
"name"[0;37m => [0m[0;33m"foreman.example.com"[0m,
|
|
"ip"[0;37m => [0m[0;33m"192.168.122.136"[0m,
|
|
"mac"[0;37m => [0m[0;33m"52:54:00:05:02:1b"[0m,
|
|
"identifier"[0;37m => [0m[0;33m"eth0"[0m,
|
|
"primary"[0;37m => [0m[1;32mtrue[0m,
|
|
"provision"[0;37m => [0m[1;32mtrue[0m,
|
|
"type"[0;37m => [0m[0;33m"interface"[0m
|
|
},
|
|
[1;37m[1] [0m{
|
|
"id"[0;37m => [0m[1;34m2[0m,
|
|
"name"[0;37m => [0m[1;31mnil[0m,
|
|
"ip"[0;37m => [0m[0;33m"192.168.30.10"[0m,
|
|
"mac"[0;37m => [0m[0;33m"52:54:00:20:de:ed"[0m,
|
|
"identifier"[0;37m => [0m[0;33m"eth1"[0m,
|
|
"primary"[0;37m => [0m[1;31mfalse[0m,
|
|
"provision"[0;37m => [0m[1;31mfalse[0m,
|
|
"type"[0;37m => [0m[0;33m"interface"[0m
|
|
}
|
|
],
|
|
"puppetclasses"[0;37m => [0m[],
|
|
"config_groups"[0;37m => [0m[],
|
|
"all_puppetclasses"[0;37m => [0m[]
|
|
}
|
|
[DEBUG 2015-04-21 08:45:15 API] Response headers: {
|
|
:date[0;37m => [0m[0;33m"Tue, 21 Apr 2015 08:45:15 GMT"[0m,
|
|
:server[0;37m => [0m[0;33m"Apache/2.4.6 (CentOS)"[0m,
|
|
:foreman_version[0;37m => [0m[0;33m"1.9.0-develop"[0m,
|
|
:foreman_api_version[0;37m => [0m[0;33m"2"[0m,
|
|
:apipie_checksum[0;37m => [0m[0;33m"4d656d75ef7782aedb2e0fd86c750aa4"[0m,
|
|
:x_ua_compatible[0;37m => [0m[0;33m"IE=Edge,chrome=1"[0m,
|
|
:cache_control[0;37m => [0m[0;33m"max-age=0, private, must-revalidate"[0m,
|
|
:x_request_id[0;37m => [0m[0;33m"b78fa5c48ed727cfaee088fb20e86dbd"[0m,
|
|
:x_runtime[0;37m => [0m[0;33m"0.321076"[0m,
|
|
:x_rack_cache[0;37m => [0m[0;33m"invalidate, pass"[0m,
|
|
:x_powered_by[0;37m => [0m[0;33m"Phusion Passenger 4.0.18"[0m,
|
|
:set_cookie[0;37m => [0m[
|
|
[1;37m[0] [0m[0;33m"_session_id=28a67e8633e87636784f031105c95526; path=/; HttpOnly"[0m,
|
|
[1;37m[1] [0m[0;33m"request_method=PUT; path=/"[0m
|
|
],
|
|
:etag[0;37m => [0m[0;33m"\"84ee775aa152508a70fbef661680aea6\""[0m,
|
|
:status[0;37m => [0m[0;33m"200 OK"[0m,
|
|
:connection[0;37m => [0m[0;33m"close"[0m,
|
|
:transfer_encoding[0;37m => [0m[0;33m"chunked"[0m,
|
|
:content_type[0;37m => [0m[0;33m"application/json; charset=utf-8"[0m
|
|
}
|