Project

General

Profile

hammer_10215.log

debug log - Dominic Cleal, 04/21/2015 04:46 AM

 
1
[ INFO 2015-04-21 08:45:12 Init] Initialization of Hammer CLI (0.1.4) has started...
2
[DEBUG 2015-04-21 08:45:12 Init] Running at ruby 2.0.0-p598
3
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
4
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
5
[ INFO 2015-04-21 08:45:12 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded
6
[DEBUG 2015-04-21 08:45:12 Connection] Registered: foreman
7
[DEBUG 2015-04-21 08:45:12 API] Global headers: {
8
        :content_type => "application/json",
9
              :accept => "application/json;version=2",
10
    "Accept-Language" => "en_GB"
11
}
12
[ INFO 2015-04-21 08:45:12 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
13
[DEBUG 2015-04-21 08:45:12 Init] Using locale 'en_GB'
14
[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'
15
[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'
16
[ INFO 2015-04-21 08:45:12 HammerCLI::MainCommand] Called with options: {"option_debug"=>true}
17
[ INFO 2015-04-21 08:45:13 HammerCLIForeman::Host] Called with options: {}
18
[ 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"}
19
[ INFO 2015-04-21 08:45:13 API] GET /api/hosts
20
[DEBUG 2015-04-21 08:45:13 API] Params: {
21
    :search => "name = \"foreman.example.com\""
22
}
23
[DEBUG 2015-04-21 08:45:13 API] Headers: {
24
    :params => {
25
        :search => "name = \"foreman.example.com\""
26
    }
27
}
28
[DEBUG 2015-04-21 08:45:15 API] Response: {
29
       "total" => 1,
30
    "subtotal" => 1,
31
        "page" => 1,
32
    "per_page" => 20,
33
      "search" => "name = \"foreman.example.com\"",
34
        "sort" => {
35
           "by" => nil,
36
        "order" => nil
37
    },
38
     "results" => [
39
        [0] {
40
                               "ip" => "192.168.122.136",
41
                   "environment_id" => 1,
42
                 "environment_name" => "production",
43
                      "last_report" => "2015-04-21T08:26:33Z",
44
                              "mac" => "52:54:00:05:02:1b",
45
                         "realm_id" => nil,
46
                       "realm_name" => nil,
47
                           "sp_mac" => nil,
48
                            "sp_ip" => nil,
49
                          "sp_name" => nil,
50
                        "domain_id" => 1,
51
                      "domain_name" => "example.com",
52
                  "architecture_id" => 1,
53
                "architecture_name" => "x86_64",
54
               "operatingsystem_id" => 1,
55
             "operatingsystem_name" => "CentOS 7.0",
56
                        "subnet_id" => nil,
57
                      "subnet_name" => nil,
58
                     "sp_subnet_id" => nil,
59
                        "ptable_id" => nil,
60
                      "ptable_name" => nil,
61
                        "medium_id" => nil,
62
                      "medium_name" => nil,
63
                            "build" => false,
64
                          "comment" => "test5",
65
                             "disk" => nil,
66
                     "installed_at" => nil,
67
                         "model_id" => 1,
68
                       "model_name" => "Standard PC (i440FX + PIIX, 1996)",
69
                     "hostgroup_id" => nil,
70
                   "hostgroup_name" => nil,
71
                         "owner_id" => 3,
72
                       "owner_type" => "User",
73
                          "enabled" => true,
74
               "puppet_ca_proxy_id" => nil,
75
                          "managed" => false,
76
                        "use_image" => nil,
77
                       "image_file" => "",
78
                             "uuid" => nil,
79
              "compute_resource_id" => nil,
80
            "compute_resource_name" => nil,
81
               "compute_profile_id" => nil,
82
             "compute_profile_name" => nil,
83
                     "capabilities" => [
84
                [0] "build"
85
            ],
86
                 "provision_method" => "build",
87
                  "puppet_proxy_id" => nil,
88
                         "certname" => "foreman.example.com",
89
                         "image_id" => nil,
90
                       "image_name" => nil,
91
                       "created_at" => "2015-04-08T15:08:39Z",
92
                       "updated_at" => "2015-04-21T08:44:42Z",
93
                     "last_compile" => "2015-04-21T08:26:36Z",
94
                  "last_freshcheck" => nil,
95
                           "serial" => nil,
96
                   "source_file_id" => nil,
97
                    "puppet_status" => 0,
98
                             "name" => "foreman.example.com",
99
                               "id" => 1
100
        }
101
    ]
102
}
103
[DEBUG 2015-04-21 08:45:15 API] Response headers: {
104
                   :date => "Tue, 21 Apr 2015 08:45:13 GMT",
105
                 :server => "Apache/2.4.6 (CentOS)",
106
        :foreman_version => "1.9.0-develop",
107
    :foreman_api_version => "2",
108
        :apipie_checksum => "4d656d75ef7782aedb2e0fd86c750aa4",
109
        :x_ua_compatible => "IE=Edge,chrome=1",
110
          :cache_control => "must-revalidate, private, max-age=0",
111
           :x_request_id => "f5acd7b70ccb05ebefb86f0dc162d22b",
112
              :x_runtime => "2.093286",
113
           :x_rack_cache => "miss",
114
           :x_powered_by => "Phusion Passenger 4.0.18",
115
             :set_cookie => [
116
        [0] "_session_id=34f3f27d160ca441539200ad18c06a5d; path=/; HttpOnly",
117
        [1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
118
    ],
119
                   :etag => "\"c0492f011eac2c44657beaefbf1fb3f6\"",
120
                 :status => "200 OK",
121
             :connection => "close",
122
      :transfer_encoding => "chunked",
123
           :content_type => "application/json; charset=utf-8"
124
}
125
[ INFO 2015-04-21 08:45:15 API] PUT /api/hosts/1
126
[DEBUG 2015-04-21 08:45:15 API] Params: {
127
    "host" => {
128
                              "name" => "foreman.example.com",
129
                           "comment" => "test5",
130
                "compute_attributes" => {
131
            "volumes_attributes" => {}
132
        },
133
                          "owner_id" => nil,
134
                   "puppet_proxy_id" => nil,
135
                "puppet_ca_proxy_id" => nil,
136
                   "puppetclass_ids" => nil,
137
        "host_parameters_attributes" => {},
138
             "interfaces_attributes" => {}
139
    }
140
}
141
[DEBUG 2015-04-21 08:45:15 API] Headers: {}
142
[DEBUG 2015-04-21 08:45:15 API] Response: {
143
                       "ip" => "192.168.122.136",
144
           "environment_id" => 1,
145
         "environment_name" => "production",
146
              "last_report" => "2015-04-21T08:26:33Z",
147
                      "mac" => "52:54:00:05:02:1b",
148
                 "realm_id" => nil,
149
               "realm_name" => nil,
150
                   "sp_mac" => nil,
151
                    "sp_ip" => nil,
152
                  "sp_name" => nil,
153
                "domain_id" => 1,
154
              "domain_name" => "example.com",
155
          "architecture_id" => 1,
156
        "architecture_name" => "x86_64",
157
       "operatingsystem_id" => 1,
158
     "operatingsystem_name" => "CentOS 7.0",
159
                "subnet_id" => nil,
160
              "subnet_name" => nil,
161
             "sp_subnet_id" => nil,
162
                "ptable_id" => nil,
163
              "ptable_name" => nil,
164
                "medium_id" => nil,
165
              "medium_name" => nil,
166
                    "build" => false,
167
                  "comment" => "test5",
168
                     "disk" => nil,
169
             "installed_at" => nil,
170
                 "model_id" => 1,
171
               "model_name" => "Standard PC (i440FX + PIIX, 1996)",
172
             "hostgroup_id" => nil,
173
           "hostgroup_name" => nil,
174
                 "owner_id" => 3,
175
               "owner_type" => "User",
176
                  "enabled" => true,
177
       "puppet_ca_proxy_id" => nil,
178
                  "managed" => false,
179
                "use_image" => nil,
180
               "image_file" => "",
181
                     "uuid" => nil,
182
      "compute_resource_id" => nil,
183
    "compute_resource_name" => nil,
184
       "compute_profile_id" => nil,
185
     "compute_profile_name" => nil,
186
             "capabilities" => [
187
        [0] "build"
188
    ],
189
         "provision_method" => "build",
190
          "puppet_proxy_id" => nil,
191
                 "certname" => "foreman.example.com",
192
                 "image_id" => nil,
193
               "image_name" => nil,
194
               "created_at" => "2015-04-08T15:08:39Z",
195
               "updated_at" => "2015-04-21T08:44:42Z",
196
             "last_compile" => "2015-04-21T08:26:36Z",
197
          "last_freshcheck" => nil,
198
                   "serial" => nil,
199
           "source_file_id" => nil,
200
            "puppet_status" => 0,
201
                     "name" => "foreman.example.com",
202
                       "id" => 1,
203
               "parameters" => [],
204
               "interfaces" => [
205
        [0] {
206
                    "id" => 1,
207
                  "name" => "foreman.example.com",
208
                    "ip" => "192.168.122.136",
209
                   "mac" => "52:54:00:05:02:1b",
210
            "identifier" => "eth0",
211
               "primary" => true,
212
             "provision" => true,
213
                  "type" => "interface"
214
        },
215
        [1] {
216
                    "id" => 2,
217
                  "name" => nil,
218
                    "ip" => "192.168.30.10",
219
                   "mac" => "52:54:00:20:de:ed",
220
            "identifier" => "eth1",
221
               "primary" => false,
222
             "provision" => false,
223
                  "type" => "interface"
224
        }
225
    ],
226
            "puppetclasses" => [],
227
            "config_groups" => [],
228
        "all_puppetclasses" => []
229
}
230
[DEBUG 2015-04-21 08:45:15 API] Response headers: {
231
                   :date => "Tue, 21 Apr 2015 08:45:15 GMT",
232
                 :server => "Apache/2.4.6 (CentOS)",
233
        :foreman_version => "1.9.0-develop",
234
    :foreman_api_version => "2",
235
        :apipie_checksum => "4d656d75ef7782aedb2e0fd86c750aa4",
236
        :x_ua_compatible => "IE=Edge,chrome=1",
237
          :cache_control => "max-age=0, private, must-revalidate",
238
           :x_request_id => "b78fa5c48ed727cfaee088fb20e86dbd",
239
              :x_runtime => "0.321076",
240
           :x_rack_cache => "invalidate, pass",
241
           :x_powered_by => "Phusion Passenger 4.0.18",
242
             :set_cookie => [
243
        [0] "_session_id=28a67e8633e87636784f031105c95526; path=/; HttpOnly",
244
        [1] "request_method=PUT; path=/"
245
    ],
246
                   :etag => "\"84ee775aa152508a70fbef661680aea6\"",
247
                 :status => "200 OK",
248
             :connection => "close",
249
      :transfer_encoding => "chunked",
250
           :content_type => "application/json; charset=utf-8"
251
}