1
|
[root@foreman host-create]# ./hostcreate.sh junksystem
|
2
|
[ INFO 2016-05-05 11:01:14 Init] Initialization of Hammer CLI (0.6.1) has started...
|
3
|
[DEBUG 2016-05-05 11:01:14 Init] Running at ruby 1.9.3-p484
|
4
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
|
5
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/csv.yml has been loaded
|
6
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
|
7
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
|
8
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
|
9
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
|
10
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded
|
11
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_salt.yml has been loaded
|
12
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
|
13
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
|
14
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
|
15
|
[ INFO 2016-05-05 11:01:14 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
|
16
|
[DEBUG 2016-05-05 11:01:15 Connection] Registered: foreman
|
17
|
[DEBUG 2016-05-05 11:01:15 API] Global headers: {
|
18
|
:content_type => "application/json",
|
19
|
:accept => "application/json;version=2",
|
20
|
"Accept-Language" => "en"
|
21
|
}
|
22
|
[DEBUG 2016-05-05 11:01:15 API] Follow redirects: default
|
23
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman (0.6.2) loaded
|
24
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
|
25
|
[ INFO 2016-05-05 11:01:15 Modules] Extension module hammer_cli_foreman_discovery (0.0.2) loaded
|
26
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_foreman_salt (0.0.5) loaded
|
27
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
|
28
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
|
29
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_gutterball (1.0.1) loaded
|
30
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_import (0.10.22) loaded
|
31
|
[ INFO 2016-05-05 11:01:16 Modules] Extension module hammer_cli_katello (0.0.19) loaded
|
32
|
[DEBUG 2016-05-05 11:01:16 Init] Using locale 'en'
|
33
|
[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'
|
34
|
[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'
|
35
|
[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'
|
36
|
[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'
|
37
|
[ INFO 2016-05-05 11:01:16 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true, "option_password"=>"***"}
|
38
|
[ INFO 2016-05-05 11:01:17 HammerCLIForeman::Host] Called with options: {}
|
39
|
[ 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}
|
40
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
41
|
[ INFO 2016-05-05 11:01:17 API] GET /api/locations
|
42
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
43
|
:search => "name = \"CC Systems Amazon\""
|
44
|
}
|
45
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
46
|
:params => {
|
47
|
:search => "name = \"CC Systems Amazon\""
|
48
|
}
|
49
|
}
|
50
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
51
|
"total" => 3,
|
52
|
"subtotal" => 1,
|
53
|
"page" => 1,
|
54
|
"per_page" => 20,
|
55
|
"search" => "name = \"CC Systems Amazon\"",
|
56
|
"sort" => {
|
57
|
"by" => nil,
|
58
|
"order" => nil
|
59
|
},
|
60
|
"results" => [
|
61
|
[0] {
|
62
|
"ancestry" => "2",
|
63
|
"created_at" => "2016-04-12T20:29:33Z",
|
64
|
"updated_at" => "2016-04-12T20:29:35Z",
|
65
|
"id" => 5,
|
66
|
"name" => "CC Systems Amazon",
|
67
|
"title" => "Default Location/CC Systems Amazon",
|
68
|
"description" => ""
|
69
|
}
|
70
|
]
|
71
|
}
|
72
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
73
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
74
|
:server => "Apache/2.4.6 (CentOS)",
|
75
|
:foreman_version => "1.10.3",
|
76
|
:foreman_api_version => "2",
|
77
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
78
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
79
|
:cache_control => "must-revalidate, private, max-age=0",
|
80
|
:x_request_id => "d7523102a0b6373407deaced4c13a3c3",
|
81
|
:x_runtime => "0.168042",
|
82
|
:x_rack_cache => "miss",
|
83
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
84
|
:set_cookie => [
|
85
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWVmYTRmNmI4MTBhOWJhNmJiZjVhMGJmYTZjMTYwMmYzBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--b66631ddf8dd5635919834878d910d74d641eb27; path=/; HttpOnly",
|
86
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
87
|
],
|
88
|
:etag => "\"ed87df8a72f24e6f6ef4f7a8e2aa0dc4\"",
|
89
|
:status => "200 OK",
|
90
|
:connection => "close",
|
91
|
:transfer_encoding => "chunked",
|
92
|
:content_type => "application/json; charset=utf-8"
|
93
|
}
|
94
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
95
|
[ INFO 2016-05-05 11:01:17 API] GET /katello/api/organizations
|
96
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
97
|
:search => "name = \"Default Organization\""
|
98
|
}
|
99
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
100
|
:params => {
|
101
|
:search => "name = \"Default Organization\""
|
102
|
}
|
103
|
}
|
104
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
105
|
"total" => 2,
|
106
|
"subtotal" => 1,
|
107
|
"page" => 1,
|
108
|
"per_page" => 20,
|
109
|
"search" => "name = \"Default Organization\"",
|
110
|
"sort" => {
|
111
|
"by" => nil,
|
112
|
"order" => nil
|
113
|
},
|
114
|
"results" => [
|
115
|
[0] {
|
116
|
"label" => "Default_Organization",
|
117
|
"created_at" => "2016-03-31T03:13:18Z",
|
118
|
"updated_at" => "2016-03-31T17:33:57Z",
|
119
|
"id" => 1,
|
120
|
"name" => "Default Organization",
|
121
|
"title" => "Default Organization",
|
122
|
"description" => ""
|
123
|
}
|
124
|
]
|
125
|
}
|
126
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
127
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
128
|
:server => "Apache/2.4.6 (CentOS)",
|
129
|
:foreman_version => "1.10.3",
|
130
|
:foreman_api_version => "2",
|
131
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
132
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
133
|
:cache_control => "must-revalidate, private, max-age=0",
|
134
|
:x_request_id => "1f9fcec5c0f718db44a15fa925320501",
|
135
|
:x_runtime => "0.201932",
|
136
|
:x_rack_cache => "miss",
|
137
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
138
|
:set_cookie => [
|
139
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTU5MGIzY2MwZTZhZTY5MWJkMGYzYjdlNzdmN2JmODA3BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--6517d5ddee87cae4055df3ce20dacbf3a027b2c7; path=/; HttpOnly",
|
140
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
141
|
],
|
142
|
:etag => "\"461fdaecf4a7573e65fdb66b2795ab48\"",
|
143
|
:status => "200 OK",
|
144
|
:connection => "close",
|
145
|
:transfer_encoding => "chunked",
|
146
|
:content_type => "application/json; charset=utf-8"
|
147
|
}
|
148
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
149
|
[ INFO 2016-05-05 11:01:17 API] GET /api/subnets
|
150
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
151
|
:search => "name = \"CC-AWS\""
|
152
|
}
|
153
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
154
|
:params => {
|
155
|
:search => "name = \"CC-AWS\""
|
156
|
}
|
157
|
}
|
158
|
[DEBUG 2016-05-05 11:01:17 API] Response: {
|
159
|
"total" => 6,
|
160
|
"subtotal" => 1,
|
161
|
"page" => 1,
|
162
|
"per_page" => 20,
|
163
|
"search" => "name = \"CC-AWS\"",
|
164
|
"sort" => {
|
165
|
"by" => nil,
|
166
|
"order" => nil
|
167
|
},
|
168
|
"results" => [
|
169
|
[0] {
|
170
|
"network" => "172.31.0.0",
|
171
|
"cidr" => 16,
|
172
|
"mask" => "255.255.0.0",
|
173
|
"priority" => nil,
|
174
|
"vlanid" => "",
|
175
|
"gateway" => "172.31.0.1",
|
176
|
"dns_primary" => "",
|
177
|
"dns_secondary" => "",
|
178
|
"from" => "",
|
179
|
"to" => "",
|
180
|
"created_at" => "2016-04-15T19:08:23Z",
|
181
|
"updated_at" => "2016-04-15T19:08:23Z",
|
182
|
"ipam" => "None",
|
183
|
"boot_mode" => "DHCP",
|
184
|
"id" => 6,
|
185
|
"name" => "CC-AWS",
|
186
|
"network_address" => "172.31.0.0/16",
|
187
|
"dhcp" => nil,
|
188
|
"tftp" => nil,
|
189
|
"dns" => nil
|
190
|
}
|
191
|
]
|
192
|
}
|
193
|
[DEBUG 2016-05-05 11:01:17 API] Response headers: {
|
194
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
195
|
:server => "Apache/2.4.6 (CentOS)",
|
196
|
:foreman_version => "1.10.3",
|
197
|
:foreman_api_version => "2",
|
198
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
199
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
200
|
:cache_control => "must-revalidate, private, max-age=0",
|
201
|
:x_request_id => "3ce740cf5f7e699b97f71d91be7f7307",
|
202
|
:x_runtime => "0.099076",
|
203
|
:x_rack_cache => "miss",
|
204
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
205
|
:set_cookie => [
|
206
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTNhMDI1ZDIyYmVmY2IwYTcyODY4YTZlNjRkZGI2OWExBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--89eb1f34d3e4cc27e516a6704f9f76186cd23c0e; path=/; HttpOnly",
|
207
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
208
|
],
|
209
|
:etag => "\"f42c48d60a394c1b8d3a937335aa5631\"",
|
210
|
:status => "200 OK",
|
211
|
:connection => "close",
|
212
|
:transfer_encoding => "chunked",
|
213
|
:content_type => "application/json; charset=utf-8"
|
214
|
}
|
215
|
[ INFO 2016-05-05 11:01:17 API] Server: https://localhost/
|
216
|
[ INFO 2016-05-05 11:01:17 API] GET /api/compute_resources
|
217
|
[DEBUG 2016-05-05 11:01:17 API] Params: {
|
218
|
:search => "name = \"CC-aws\""
|
219
|
}
|
220
|
[DEBUG 2016-05-05 11:01:17 API] Headers: {
|
221
|
:params => {
|
222
|
:search => "name = \"CC-aws\""
|
223
|
}
|
224
|
}
|
225
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
226
|
"total" => 5,
|
227
|
"subtotal" => 1,
|
228
|
"page" => 1,
|
229
|
"per_page" => 20,
|
230
|
"search" => "name = \"CC-aws\"",
|
231
|
"sort" => {
|
232
|
"by" => nil,
|
233
|
"order" => nil
|
234
|
},
|
235
|
"results" => [
|
236
|
[0] {
|
237
|
"description" => "",
|
238
|
"url" => "us-east-1",
|
239
|
"created_at" => "2016-03-31T18:42:22Z",
|
240
|
"updated_at" => "2016-04-12T20:30:53Z",
|
241
|
"id" => 3,
|
242
|
"name" => "CC-aws",
|
243
|
"provider" => "EC2",
|
244
|
"provider_friendly_name" => "EC2",
|
245
|
"access_key" => "replaced",
|
246
|
"region" => "us-east-1"
|
247
|
}
|
248
|
]
|
249
|
}
|
250
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
251
|
:date => "Thu, 05 May 2016 15:01:17 GMT",
|
252
|
:server => "Apache/2.4.6 (CentOS)",
|
253
|
:foreman_version => "1.10.3",
|
254
|
:foreman_api_version => "2",
|
255
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
256
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
257
|
:cache_control => "must-revalidate, private, max-age=0",
|
258
|
:x_request_id => "0bea6d8bf6000e57bb6f7b49160b5212",
|
259
|
:x_runtime => "0.549988",
|
260
|
:x_rack_cache => "miss",
|
261
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
262
|
:set_cookie => [
|
263
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWE2N2M2ZGNhNDUyOWMyMjIyYzk4ZGNiYzgwYTFkY2VjBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--d8ca27de3608d6dad933cc1cadc25491e5274be8; path=/; HttpOnly",
|
264
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
265
|
],
|
266
|
:etag => "\"3ee4b3f14a08b5928066707d786d1ef0\"",
|
267
|
:status => "200 OK",
|
268
|
:connection => "close",
|
269
|
:transfer_encoding => "chunked",
|
270
|
:content_type => "application/json; charset=utf-8"
|
271
|
}
|
272
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
273
|
[ INFO 2016-05-05 11:01:18 API] GET /api/hostgroups
|
274
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
275
|
:search => "title = \"Centos6/AWS\""
|
276
|
}
|
277
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
278
|
:params => {
|
279
|
:search => "title = \"Centos6/AWS\""
|
280
|
}
|
281
|
}
|
282
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
283
|
"total" => 8,
|
284
|
"subtotal" => 1,
|
285
|
"page" => 1,
|
286
|
"per_page" => 20,
|
287
|
"search" => "title = \"Centos6/AWS\"",
|
288
|
"sort" => {
|
289
|
"by" => nil,
|
290
|
"order" => nil
|
291
|
},
|
292
|
"results" => [
|
293
|
[0] {
|
294
|
"subnet_id" => 6,
|
295
|
"subnet_name" => "CC-AWS",
|
296
|
"operatingsystem_id" => nil,
|
297
|
"operatingsystem_name" => nil,
|
298
|
"domain_id" => 4,
|
299
|
"domain_name" => "ec2.internal",
|
300
|
"environment_id" => nil,
|
301
|
"environment_name" => nil,
|
302
|
"compute_profile_id" => nil,
|
303
|
"compute_profile_name" => nil,
|
304
|
"ancestry" => "2",
|
305
|
"puppet_proxy_id" => nil,
|
306
|
"puppet_ca_proxy_id" => nil,
|
307
|
"ptable_id" => nil,
|
308
|
"ptable_name" => nil,
|
309
|
"medium_id" => nil,
|
310
|
"medium_name" => nil,
|
311
|
"architecture_id" => nil,
|
312
|
"architecture_name" => nil,
|
313
|
"realm_id" => nil,
|
314
|
"realm_name" => nil,
|
315
|
"created_at" => "2016-04-21T01:41:21Z",
|
316
|
"updated_at" => "2016-04-21T01:41:21Z",
|
317
|
"id" => 8,
|
318
|
"name" => "AWS",
|
319
|
"title" => "Centos6/AWS"
|
320
|
}
|
321
|
]
|
322
|
}
|
323
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
324
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
325
|
:server => "Apache/2.4.6 (CentOS)",
|
326
|
:foreman_version => "1.10.3",
|
327
|
:foreman_api_version => "2",
|
328
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
329
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
330
|
:cache_control => "must-revalidate, private, max-age=0",
|
331
|
:x_request_id => "f8ac2bdf8372f7eeed1b59804e980de9",
|
332
|
:x_runtime => "0.153683",
|
333
|
:x_rack_cache => "miss",
|
334
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
335
|
:set_cookie => [
|
336
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI3MDNkNDM4ZDVjODI3NzY0OGMwYjgyZDQ2YjY5M2NiBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--eda19c05b18de18aef41bab7574c8cbd249aa119; path=/; HttpOnly",
|
337
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
338
|
],
|
339
|
:etag => "\"b125e52f269bcb68a06048c885ce1ccd\"",
|
340
|
:status => "200 OK",
|
341
|
:connection => "close",
|
342
|
:transfer_encoding => "chunked",
|
343
|
:content_type => "application/json; charset=utf-8"
|
344
|
}
|
345
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
346
|
[ INFO 2016-05-05 11:01:18 API] GET /api/compute_profiles
|
347
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
348
|
:search => "name = \"1-Small\""
|
349
|
}
|
350
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
351
|
:params => {
|
352
|
:search => "name = \"1-Small\""
|
353
|
}
|
354
|
}
|
355
|
[DEBUG 2016-05-05 11:01:18 API] Response: {
|
356
|
"total" => 3,
|
357
|
"subtotal" => 1,
|
358
|
"page" => 1,
|
359
|
"per_page" => 20,
|
360
|
"search" => "name = \"1-Small\"",
|
361
|
"sort" => {
|
362
|
"by" => nil,
|
363
|
"order" => nil
|
364
|
},
|
365
|
"results" => [
|
366
|
[0] {
|
367
|
"created_at" => "2016-03-31T03:13:21Z",
|
368
|
"updated_at" => "2016-03-31T03:13:21Z",
|
369
|
"id" => 1,
|
370
|
"name" => "1-Small"
|
371
|
}
|
372
|
]
|
373
|
}
|
374
|
[DEBUG 2016-05-05 11:01:18 API] Response headers: {
|
375
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
376
|
:server => "Apache/2.4.6 (CentOS)",
|
377
|
:foreman_version => "1.10.3",
|
378
|
:foreman_api_version => "2",
|
379
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
380
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
381
|
:cache_control => "must-revalidate, private, max-age=0",
|
382
|
:x_request_id => "e7dfa28fd08d0eea5a63cbc351451ccd",
|
383
|
:x_runtime => "0.144229",
|
384
|
:x_rack_cache => "miss",
|
385
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
386
|
:set_cookie => [
|
387
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWQwYmFhNzQzYjExMzE4ZTdhNTVjNmIyMjVlZDdhYzdhBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--bf9c3ae41b42d748a609ab22d31d634fac8c7386; path=/; HttpOnly",
|
388
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
389
|
],
|
390
|
:etag => "\"1daedffaf9a14cc96465a4f498dbc1dc\"",
|
391
|
:status => "200 OK",
|
392
|
:connection => "close",
|
393
|
:transfer_encoding => "chunked",
|
394
|
:content_type => "application/json; charset=utf-8"
|
395
|
}
|
396
|
[ INFO 2016-05-05 11:01:18 API] Server: https://localhost/
|
397
|
[ INFO 2016-05-05 11:01:18 API] GET /api/subnets
|
398
|
[DEBUG 2016-05-05 11:01:18 API] Params: {
|
399
|
:search => "name = \"CC-AWS\""
|
400
|
}
|
401
|
[DEBUG 2016-05-05 11:01:18 API] Headers: {
|
402
|
:params => {
|
403
|
:search => "name = \"CC-AWS\""
|
404
|
}
|
405
|
}
|
406
|
[DEBUG 2016-05-05 11:01:19 API] Response: {
|
407
|
"total" => 6,
|
408
|
"subtotal" => 1,
|
409
|
"page" => 1,
|
410
|
"per_page" => 20,
|
411
|
"search" => "name = \"CC-AWS\"",
|
412
|
"sort" => {
|
413
|
"by" => nil,
|
414
|
"order" => nil
|
415
|
},
|
416
|
"results" => [
|
417
|
[0] {
|
418
|
"network" => "172.31.0.0",
|
419
|
"cidr" => 16,
|
420
|
"mask" => "255.255.0.0",
|
421
|
"priority" => nil,
|
422
|
"vlanid" => "",
|
423
|
"gateway" => "172.31.0.1",
|
424
|
"dns_primary" => "",
|
425
|
"dns_secondary" => "",
|
426
|
"from" => "",
|
427
|
"to" => "",
|
428
|
"created_at" => "2016-04-15T19:08:23Z",
|
429
|
"updated_at" => "2016-04-15T19:08:23Z",
|
430
|
"ipam" => "None",
|
431
|
"boot_mode" => "DHCP",
|
432
|
"id" => 6,
|
433
|
"name" => "CC-AWS",
|
434
|
"network_address" => "172.31.0.0/16",
|
435
|
"dhcp" => nil,
|
436
|
"tftp" => nil,
|
437
|
"dns" => nil
|
438
|
}
|
439
|
]
|
440
|
}
|
441
|
[DEBUG 2016-05-05 11:01:19 API] Response headers: {
|
442
|
:date => "Thu, 05 May 2016 15:01:18 GMT",
|
443
|
:server => "Apache/2.4.6 (CentOS)",
|
444
|
:foreman_version => "1.10.3",
|
445
|
:foreman_api_version => "2",
|
446
|
:apipie_checksum => "ca3b649115e0cdf76091e9cf6648a713",
|
447
|
:x_ua_compatible => "IE=Edge,chrome=1",
|
448
|
:cache_control => "must-revalidate, private, max-age=0",
|
449
|
:x_request_id => "5c97c242b7469d5c76329b10e3a03361",
|
450
|
:x_runtime => "0.093886",
|
451
|
:x_rack_cache => "miss",
|
452
|
:x_powered_by => "Phusion Passenger 4.0.53",
|
453
|
:set_cookie => [
|
454
|
[0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTI2ODliNDYxMzcyMjQ2MGRjN2VkZDJhZWM0N2Y5MTg2BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--5d9816d3382af023712a18b3d9594b5a11fb8833; path=/; HttpOnly",
|
455
|
[1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
|
456
|
],
|
457
|
:etag => "\"f42c48d60a394c1b8d3a937335aa5631\"",
|
458
|
:status => "200 OK",
|
459
|
:connection => "close",
|
460
|
:transfer_encoding => "chunked",
|
461
|
:content_type => "application/json; charset=utf-8"
|
462
|
}
|
463
|
[ INFO 2016-05-05 11:01:19 API] Server: https://localhost/
|
464
|
[ INFO 2016-05-05 11:01:19 API] POST /api/hosts
|
465
|
[DEBUG 2016-05-05 11:01:19 API] Params: {
|
466
|
"host" => {
|
467
|
"name" => "junksystem",
|
468
|
"location_id" => 5,
|
469
|
"organization_id" => 1,
|
470
|
"environment_id" => 1,
|
471
|
"architecture_id" => 1,
|
472
|
"domain_id" => 5,
|
473
|
"puppet_proxy_id" => 1,
|
474
|
"operatingsystem_id" => 14,
|
475
|
"ptable_id" => 56,
|
476
|
"subnet_id" => 6,
|
477
|
"compute_resource_id" => 3,
|
478
|
"hostgroup_id" => 8,
|
479
|
"build" => false,
|
480
|
"enabled" => true,
|
481
|
"provision_method" => "image",
|
482
|
"managed" => true,
|
483
|
"compute_profile_id" => 1,
|
484
|
"compute_attributes" => {
|
485
|
"flavor_id" => "m1.medium",
|
486
|
"image_id" => "ami-bc8131d4",
|
487
|
"availability_zone" => "us-east-1c",
|
488
|
"security_group_ids" => [
|
489
|
[0] "sg-9884b9e0"
|
490
|
],
|
491
|
"managed_ip" => "private",
|
492
|
"volumes_attributes" => {}
|
493
|
},
|
494
|
"overwrite" => true,
|
495
|
"host_parameters_attributes" => {},
|
496
|
"interfaces_attributes" => [
|
497
|
[0] {
|
498
|
"name" => "eth0"
|
499
|
}
|
500
|
]
|
501
|
}
|
502
|
}
|
503
|
[DEBUG 2016-05-05 11:01:19 API] Headers: {}
|
504
|
[DEBUG 2016-05-05 11:02:19 API] Request Timeout
|
505
|
""
|
506
|
[ERROR 2016-05-05 11:02:19 Exception] Error: Request Timeout
|
507
|
Could not create the host:
|
508
|
Error: Request Timeout
|
509
|
[ERROR 2016-05-05 11:02:19 Exception]
|
510
|
|
511
|
RestClient::RequestTimeout (Request Timeout):
|
512
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:184:in `rescue in transmit'
|
513
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:140:in `transmit'
|
514
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
|
515
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
|
516
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:67:in `post'
|
517
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:295:in `call_client'
|
518
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:224:in `http_call'
|
519
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:175:in `call_action'
|
520
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/api.rb:169:in `call'
|
521
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/apipie-bindings-0.0.16/lib/apipie_bindings/resource.rb:14:in `call'
|
522
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/apipie/command.rb:43:in `send_request'
|
523
|
/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'
|
524
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/apipie/command.rb:34:in `execute'
|
525
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
526
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
527
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
|
528
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
529
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
530
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
|
531
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
|
532
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/lib/hammer_cli/abstract.rb:22:in `run'
|
533
|
/opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
|
534
|
/opt/rh/ruby193/root/usr/local/share/gems/gems/hammer_cli-0.6.1/bin/hammer:125:in `<top (required)>'
|
535
|
/usr/bin/hammer:23:in `load'
|
536
|
/usr/bin/hammer:23:in `<main>'
|
537
|
|
538
|
|
539
|
|