|
[root@foreman host-create]# ./hostcreate.sh junksystem
|
|
[ INFO 2016-05-05 11:01:14 Init] Initialization of Hammer CLI (0.6.1) has started...
|
|
[DEBUG 2016-05-05 11:01:14 Init] Running at ruby 1.9.3-p484
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_salt.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
|
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
|
|
[DEBUG 2016-05-05 11:01:15 Connection] Registered: foreman
|
|
[DEBUG 2016-05-05 11:01:15 API] Global headers: {
|
|
:content_type => "application/json",
|
|
:accept => "application/json;version=2",
|
|
"Accept-Language" => "en"
|
|
}
|
|
[DEBUG 2016-05-05 11:01:15 API] Follow redirects: default
|
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman (0.6.2) loaded
|
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
|
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman_discovery (0.0.2) loaded
|
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_foreman_salt (0.0.5) loaded
|
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
|
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
|
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_gutterball (1.0.1) loaded
|
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_import (0.10.22) loaded
|
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_katello (0.0.19) loaded
|
|
[DEBUG 2016-05-05 11:01:16 Init] Using locale 'en'
|
|
[DEBUG 2016-05-05 11:01:16 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/locale'
|
|
[DEBUG 2016-05-05 11:01:16 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli_foreman-0.6.2/locale'
|
|
[DEBUG 2016-05-05 11:01:16 Init] 'mo' files for locale domain 'hammer_cli_foreman_docker' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_docker-0.0.3/locale'
|
|
[DEBUG 2016-05-05 11:01:16 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.19/locale'
|
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true, "option_password"=>"***"}
|
|
[ INFO 2016-05-05 11:01:17 HammerCLIForeman::Host] Called with options: {}
|
|
[ INFO 2016-05-05 11:01:17 HammerCLIForeman::Host::CreateCommand] Called with options: {"option_managed"=>true, "option_build"=>false, "option_enabled"=>true, "option_overwrite"=>true, "option_compute_attributes"=>{"flavor_id"=>"m1.medium", "image_id"=>"ami-bc8131d4", "availability_zone"=>"us-east-1c", "security_group_ids"=>["sg-9884b9e0"], "managed_ip"=>"private"}, "option_volume_list"=>[], "option_interface_list"=>[{"name"=>"eth0"}], "option_provision_method"=>"image", "option_location_name"=>"CC Systems Amazon", "option_organization_name"=>"Default Organization", "option_environment_id"=>1, "option_architecture_id"=>1, "option_domain_id"=>5, "option_operatingsystem_id"=>14, "option_ptable_id"=>56, "option_subnet_name"=>"CC-AWS", "option_compute_resource_name"=>"CC-aws", "option_hostgroup_title"=>"Centos6/AWS", "option_compute_profile_name"=>"1-Small", "option_name"=>"junksystem", "option_puppet_proxy_id"=>1}
|
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:17 API] GET /api/locations
|
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
|
:search => "name = \"CC Systems Amazon\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"CC Systems Amazon\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
|
"total" => 3,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"CC Systems Amazon\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"ancestry" => "2",
|
|
"created_at" => "2016-04-12T20:29:33Z",
|
|
"updated_at" => "2016-04-12T20:29:35Z",
|
|
"id" => 5,
|
|
"name" => "CC Systems Amazon",
|
|
"title" => "Default Location/CC Systems Amazon",
|
|
"description" => ""
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "d7523102a0b6373407deaced4c13a3c3",
|
|
:x_runtime => "0.168042",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWVmYTRmNmI4MTBhOWJhNmJiZjVhMGJmYTZjMTYwMmYzBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--b66631ddf8dd5635919834878d910d74d641eb27; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"ed87df8a72f24e6f6ef4f7a8e2aa0dc4\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:17 API] GET /katello/api/organizations
|
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
|
:search => "name = \"Default Organization\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"Default Organization\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
|
"total" => 2,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"Default Organization\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"label" => "Default_Organization",
|
|
"created_at" => "2016-03-31T03:13:18Z",
|
|
"updated_at" => "2016-03-31T17:33:57Z",
|
|
"id" => 1,
|
|
"name" => "Default Organization",
|
|
"title" => "Default Organization",
|
|
"description" => ""
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "1f9fcec5c0f718db44a15fa925320501",
|
|
:x_runtime => "0.201932",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU5MGIzY2MwZTZhZTY5MWJkMGYzYjdlNzdmN2JmODA3BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--6517d5ddee87cae4055df3ce20dacbf3a027b2c7; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"461fdaecf4a7573e65fdb66b2795ab48\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:17 API] GET /api/subnets
|
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
|
:search => "name = \"CC-AWS\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"CC-AWS\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
|
"total" => 6,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"CC-AWS\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"network" => "172.31.0.0",
|
|
"cidr" => 16,
|
|
"mask" => "255.255.0.0",
|
|
"priority" => nil,
|
|
"vlanid" => "",
|
|
"gateway" => "172.31.0.1",
|
|
"dns_primary" => "",
|
|
"dns_secondary" => "",
|
|
"from" => "",
|
|
"to" => "",
|
|
"created_at" => "2016-04-15T19:08:23Z",
|
|
"updated_at" => "2016-04-15T19:08:23Z",
|
|
"ipam" => "None",
|
|
"boot_mode" => "DHCP",
|
|
"id" => 6,
|
|
"name" => "CC-AWS",
|
|
"network_address" => "172.31.0.0/16",
|
|
"dhcp" => nil,
|
|
"tftp" => nil,
|
|
"dns" => nil
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "3ce740cf5f7e699b97f71d91be7f7307",
|
|
:x_runtime => "0.099076",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTNhMDI1ZDIyYmVmY2IwYTcyODY4YTZlNjRkZGI2OWExBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--89eb1f34d3e4cc27e516a6704f9f76186cd23c0e; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"f42c48d60a394c1b8d3a937335aa5631\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:17 API] GET /api/compute_resources
|
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
|
:search => "name = \"CC-aws\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"CC-aws\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
|
"total" => 5,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"CC-aws\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"description" => "",
|
|
"url" => "us-east-1",
|
|
"created_at" => "2016-03-31T18:42:22Z",
|
|
"updated_at" => "2016-04-12T20:30:53Z",
|
|
"id" => 3,
|
|
"name" => "CC-aws",
|
|
"provider" => "EC2",
|
|
"provider_friendly_name" => "EC2",
|
|
"access_key" => "replaced",
|
|
"region" => "us-east-1"
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "0bea6d8bf6000e57bb6f7b49160b5212",
|
|
:x_runtime => "0.549988",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWE2N2M2ZGNhNDUyOWMyMjIyYzk4ZGNiYzgwYTFkY2VjBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--d8ca27de3608d6dad933cc1cadc25491e5274be8; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"3ee4b3f14a08b5928066707d786d1ef0\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:18 API] GET /api/hostgroups
|
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
|
:search => "title = \"Centos6/AWS\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
|
:params => {
|
|
:search => "title = \"Centos6/AWS\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
|
"total" => 8,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "title = \"Centos6/AWS\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"subnet_id" => 6,
|
|
"subnet_name" => "CC-AWS",
|
|
"operatingsystem_id" => nil,
|
|
"operatingsystem_name" => nil,
|
|
"domain_id" => 4,
|
|
"domain_name" => "ec2.internal",
|
|
"environment_id" => nil,
|
|
"environment_name" => nil,
|
|
"compute_profile_id" => nil,
|
|
"compute_profile_name" => nil,
|
|
"ancestry" => "2",
|
|
"puppet_proxy_id" => nil,
|
|
"puppet_ca_proxy_id" => nil,
|
|
"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-04-21T01:41:21Z",
|
|
"updated_at" => "2016-04-21T01:41:21Z",
|
|
"id" => 8,
|
|
"name" => "AWS",
|
|
"title" => "Centos6/AWS"
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "f8ac2bdf8372f7eeed1b59804e980de9",
|
|
:x_runtime => "0.153683",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI3MDNkNDM4ZDVjODI3NzY0OGMwYjgyZDQ2YjY5M2NiBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--eda19c05b18de18aef41bab7574c8cbd249aa119; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"b125e52f269bcb68a06048c885ce1ccd\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:18 API] GET /api/compute_profiles
|
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
|
:search => "name = \"1-Small\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"1-Small\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
|
"total" => 3,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"1-Small\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"created_at" => "2016-03-31T03:13:21Z",
|
|
"updated_at" => "2016-03-31T03:13:21Z",
|
|
"id" => 1,
|
|
"name" => "1-Small"
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "e7dfa28fd08d0eea5a63cbc351451ccd",
|
|
:x_runtime => "0.144229",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQwYmFhNzQzYjExMzE4ZTdhNTVjNmIyMjVlZDdhYzdhBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--bf9c3ae41b42d748a609ab22d31d634fac8c7386; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"1daedffaf9a14cc96465a4f498dbc1dc\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:18 API] GET /api/subnets
|
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
|
:search => "name = \"CC-AWS\""
|
|
}
|
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
|
:params => {
|
|
:search => "name = \"CC-AWS\""
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:19 API] Response: {
|
|
"total" => 6,
|
|
"subtotal" => 1,
|
|
"page" => 1,
|
|
"per_page" => 20,
|
|
"search" => "name = \"CC-AWS\"",
|
|
"sort" => {
|
|
"by" => nil,
|
|
"order" => nil
|
|
},
|
|
"results" => [
|
|
[0] {
|
|
"network" => "172.31.0.0",
|
|
"cidr" => 16,
|
|
"mask" => "255.255.0.0",
|
|
"priority" => nil,
|
|
"vlanid" => "",
|
|
"gateway" => "172.31.0.1",
|
|
"dns_primary" => "",
|
|
"dns_secondary" => "",
|
|
"from" => "",
|
|
"to" => "",
|
|
"created_at" => "2016-04-15T19:08:23Z",
|
|
"updated_at" => "2016-04-15T19:08:23Z",
|
|
"ipam" => "None",
|
|
"boot_mode" => "DHCP",
|
|
"id" => 6,
|
|
"name" => "CC-AWS",
|
|
"network_address" => "172.31.0.0/16",
|
|
"dhcp" => nil,
|
|
"tftp" => nil,
|
|
"dns" => nil
|
|
}
|
|
]
|
|
}
|
|
[DEBUG 2016-05-05 11:01:19 API] Response headers: {
|
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
|
:server => "Apache/2.4.6 (CentOS)",
|
|
:foreman_version => "1.10.3",
|
|
:foreman_api_version => "2",
|
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
|
:cache_control => "must-revalidate, private, max-age=0",
|
|
:x_request_id => "5c97c242b7469d5c76329b10e3a03361",
|
|
:x_runtime => "0.093886",
|
|
:x_rack_cache => "miss",
|
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
|
:set_cookie => [
|
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI2ODliNDYxMzcyMjQ2MGRjN2VkZDJhZWM0N2Y5MTg2BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--5d9816d3382af023712a18b3d9594b5a11fb8833; path=/; HttpOnly",
|
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
|
],
|
|
:etag => "\"f42c48d60a394c1b8d3a937335aa5631\"",
|
|
:status => "200 OK",
|
|
:connection => "close",
|
|
:transfer_encoding => "chunked",
|
|
:content_type => "application/json; charset=utf-8"
|
|
}
|
|
[ INFO 2016-05-05 11:01:19 API] Server: https://localhost/
|
|
[ INFO 2016-05-05 11:01:19 API] POST /api/hosts
|
|
[DEBUG 2016-05-05 11:01:19 API] Params: {
|
|
"host" => {
|
|
"name" => "junksystem",
|
|
"location_id" => 5,
|
|
"organization_id" => 1,
|
|
"environment_id" => 1,
|
|
"architecture_id" => 1,
|
|
"domain_id" => 5,
|
|
"puppet_proxy_id" => 1,
|
|
"operatingsystem_id" => 14,
|
|
"ptable_id" => 56,
|
|
"subnet_id" => 6,
|
|
"compute_resource_id" => 3,
|
|
"hostgroup_id" => 8,
|
|
"build" => false,
|
|
"enabled" => true,
|
|
"provision_method" => "image",
|
|
"managed" => true,
|
|
"compute_profile_id" => 1,
|
|
"compute_attributes" => {
|
|
"flavor_id" => "m1.medium",
|
|
"image_id" => "ami-bc8131d4",
|
|
"availability_zone" => "us-east-1c",
|
|
"security_group_ids" => [
|
|
[0] "sg-9884b9e0"
|
|
],
|
|
"managed_ip" => "private",
|
|
"volumes_attributes" => {}
|
|
},
|
|
"overwrite" => true,
|
|
"host_parameters_attributes" => {},
|
|
"interfaces_attributes" => [
|
|
[0] {
|
|
"name" => "eth0"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
[DEBUG 2016-05-05 11:01:19 API] Headers: {}
|
|
[DEBUG 2016-05-05 11:02:19 API] Request Timeout
|
|
""
|
|
[ERROR 2016-05-05 11:02:19 Exception] Error: Request Timeout
|
|
Could not create the host:
|
|
Error: Request Timeout
|
|
[ERROR 2016-05-05 11:02:19 Exception]
|
|
|
|
RestClient::RequestTimeout (Request Timeout):
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:184:in `rescue in transmit'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:140:in `transmit'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:67:in `post'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:295:in `call_client'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:224:in `http_call'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:175:in `call_action'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:169:in `call'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/resource.rb:14:in `call'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/apipie/command.rb:43:in `send_request'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli_foreman-0.6.2/lib/hammer_cli_foreman/commands.rb:189:in `send_request'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/apipie/command.rb:34:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
|
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/bin/hammer:125:in `<top (required)>'
|
|
/usr/bin/hammer:23:in `load'
|
|
/usr/bin/hammer:23:in `<main>'
|
|
|
|
|
|
|