Project

General

Profile

Bug #14872 » hammerlog.txt

Josh Baird, 05/02/2016 11:10 AM

 
jbaird@fmpr-d1-ap01:~$ hammer hostgroup info --id 105
Id: 105
Name: testrole
Title: role-corp-base/testrole
Puppet CA Proxy Id: 1
Puppet Master Proxy Id: 1
Puppetclasses:
profiles::build
Parameters:

Locations:
DC1
DC2
HI
MCH
Organizations:
CORP
EFOL
FHEG
Parent Id: 5

jbaird@fmpr-d1-ap01:~$ hammer -d hostgroup update --id 105 --puppet-ca-proxy-id 6
[ INFO 2016-05-02 10:09:10 Init] Initialization of Hammer CLI (0.6.1) has started...
[DEBUG 2016-05-02 10:09:10 Init] Running at ruby 2.2.2-p95
[ INFO 2016-05-02 10:09:10 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2016-05-02 10:09:10 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2016-05-02 10:09:10 Init] Configuration from the file /home/jbaird/.hammer/cli_config.yml has been loaded
[DEBUG 2016-05-02 10:09:10 Connection] Registered: foreman
[DEBUG 2016-05-02 10:09:10 API] Global headers: {
:content_type => "application/json",
:accept => "application/json;version=2",
"Accept-Language" => "en"
}
[DEBUG 2016-05-02 10:09:10 API] Follow redirects: default
[ INFO 2016-05-02 10:09:10 Modules] Extension module hammer_cli_foreman (0.6.2) loaded
[DEBUG 2016-05-02 10:09:10 Init] Using locale 'en'
[DEBUG 2016-05-02 10:09:10 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.6.1/locale'
[DEBUG 2016-05-02 10:09:10 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.6.2/locale'
[ INFO 2016-05-02 10:09:10 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
[ INFO 2016-05-02 10:09:11 HammerCLIForeman::Hostgroup] Called with options: {}
[ INFO 2016-05-02 10:09:11 HammerCLIForeman::Hostgroup::UpdateCommand] Called with options: {"option_id"=>"105", "option_puppet_ca_proxy_id"=>6}
[ INFO 2016-05-02 10:09:11 API] Server: https://foreman.corp.follett.com
[ INFO 2016-05-02 10:09:11 API] PUT /api/hostgroups/105
[DEBUG 2016-05-02 10:09:11 API] Params: {
"hostgroup" => {
"puppet_ca_proxy_id" => 6,
"puppet_proxy_id" => nil,
"puppetclass_ids" => nil
}
}
[DEBUG 2016-05-02 10:09:11 API] Headers: {}
[DEBUG 2016-05-02 10:09:12 API] Response: {
"subnet_id" => nil,
"subnet_name" => nil,
"operatingsystem_id" => nil,
"operatingsystem_name" => nil,
"domain_id" => nil,
"domain_name" => nil,
"environment_id" => nil,
"environment_name" => nil,
"compute_profile_id" => nil,
"compute_profile_name" => nil,
"ancestry" => "5",
"parent_id" => 5,
"parent_name" => "role-corp-base",
"puppet_proxy_id" => nil,
"puppet_ca_proxy_id" => 6,
"ptable_id" => nil,
"ptable_name" => nil,
"medium_id" => nil,
"medium_name" => nil,
"architecture_id" => nil,
"architecture_name" => nil,
"realm_id" => nil,
"realm_name" => nil,
"created_at" => "2016-05-02 15:07:33 UTC",
"updated_at" => "2016-05-02 15:09:12 UTC",
"id" => 105,
"name" => "testrole",
"title" => "role-corp-base/testrole",
"parameters" => [],
"template_combinations" => [],
"puppetclasses" => [],
"config_groups" => [],
"all_puppetclasses" => [
[0] {
"id" => 125,
"name" => "profiles::base",
"module_name" => "profiles"
}
],
"locations" => [
[0] {
"id" => 1,
"name" => "DC1",
"title" => "DC1",
"description" => nil
},
[1] {
"id" => 2,
"name" => "DC2",
"title" => "DC2",
"description" => nil
},
[2] {
"id" => 3,
"name" => "HI",
"title" => "HI",
"description" => nil
},
[3] {
"id" => 4,
"name" => "MCH",
"title" => "MCH",
"description" => nil
}
],
"organizations" => [
[0] {
"id" => 5,
"name" => "CORP",
"title" => "CORP",
"description" => ""
},
[1] {
"id" => 9,
"name" => "EFOL",
"title" => "EFOL",
"description" => ""
},
[2] {
"id" => 6,
"name" => "FHEG",
"title" => "FHEG",
"description" => ""
}
]
}
[DEBUG 2016-05-02 10:09:12 API] Response headers: {
:date => "Mon, 02 May 2016 15:09:11 GMT",
:server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
:x_frame_options => "SAMEORIGIN",
:x_xss_protection => "1; mode=block",
:x_content_type_options => "nosniff",
:foreman_version => "1.11.1",
:foreman_api_version => "2",
:apipie_checksum => "1c6b1045359c79afad81edd9b0b7a87b",
:cache_control => "max-age=0, private, must-revalidate",
:x_request_id => "afe559d5-e0b3-4878-8af5-1c8f29972fba",
:x_runtime => "1.005759",
:x_powered_by => "Phusion Passenger 4.0.18",
:set_cookie => [
[0] "request_method=PUT; path=/",
[1] "_session_id=543f76fd6b94101af30d05d4595b87f3; path=/; secure; HttpOnly"
],
:etag => "\"08d7b6090fa8a9c92d628b5d4532121e-gzip\"",
:status => "200 OK",
:vary => "Accept-Encoding",
:content_encoding => "gzip",
:content_length => "442",
:connection => "close",
:content_type => "application/json; charset=utf-8"
}
Hostgroup updated
jbaird@fmpr-d1-ap01:~$ hammer hostgroup info --id 105
Id: 105
Name: testrole
Title: role-corp-base/testrole
Puppet CA Proxy Id: 6
Puppet Master Proxy Id:
Puppetclasses:

Parameters:

Locations:
DC1
DC2
HI
MCH
Organizations:
CORP
EFOL
FHEG
Parent Id: 5
(1-1/2)