Project

General

Profile

hammer_debug.txt

Stanislav Tkachenko, 09/08/2016 07:31 AM

 
1
[ INFO 2016-09-08 06:39:12 Init] Initialization of Hammer CLI (0.8.0) has started...
2
[DEBUG 2016-09-08 06:39:12 Init] Running at ruby 2.2.2-p95
3
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
4
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
5
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
6
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
7
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
8
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
9
[ INFO 2016-09-08 06:39:12 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
10
[DEBUG 2016-09-08 06:39:12 Connection] Registered: foreman
11
[DEBUG 2016-09-08 06:39:12 API] Global headers: {
12
        :content_type => "application/json",
13
              :accept => "application/json;version=2",
14
    "Accept-Language" => "en"
15
}
16
[DEBUG 2016-09-08 06:39:12 API] Follow redirects: never
17
[ INFO 2016-09-08 06:39:12 Modules] Extension module hammer_cli_foreman (0.8.0) loaded
18
[ INFO 2016-09-08 06:39:12 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
19
[ INFO 2016-09-08 06:39:12 Modules] Extension module hammer_cli_import (0.11.2) loaded
20
[ INFO 2016-09-08 06:39:13 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
21
[ INFO 2016-09-08 06:39:13 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
22
[ INFO 2016-09-08 06:39:13 Modules] Extension module hammer_cli_katello (0.0.26) loaded
23
[DEBUG 2016-09-08 06:39:13 Init] Using locale 'en'
24
[DEBUG 2016-09-08 06:39:13 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/locale'
25
[DEBUG 2016-09-08 06:39:13 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.8.0/locale'
26
[DEBUG 2016-09-08 06:39:13 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.4/locale'
27
[DEBUG 2016-09-08 06:39:13 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_katello-0.0.26/locale'
28
[ INFO 2016-09-08 06:39:13 HammerCLI::MainCommand] Called with options: {"option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
29
[ INFO 2016-09-08 06:39:13 HammerCLIForeman::Hostgroup] Called with options: {}
30
[ INFO 2016-09-08 06:39:13 HammerCLIForeman::Hostgroup::CreateCommand] Called with options: {"option_name"=>"test"}
31
[ INFO 2016-09-08 06:39:14 API] Server: https://localhost/
32
[ INFO 2016-09-08 06:39:14 API] POST /api/hostgroups
33
[DEBUG 2016-09-08 06:39:14 API] Params: {
34
    "hostgroup" => {
35
                      "name" => "test",
36
           "puppet_proxy_id" => nil,
37
        "puppet_ca_proxy_id" => nil,
38
           "puppetclass_ids" => nil
39
    }
40
}
41
[DEBUG 2016-09-08 06:39:14 API] Headers: {}
42
[ERROR 2016-09-08 06:39:14 API] 500 Internal Server Error
43
[DEBUG 2016-09-08 06:39:14 API] {
44
    "error" => {
45
        "message" => "ActiveModel::ForbiddenAttributesError"
46
    }
47
}
48
[ERROR 2016-09-08 06:39:14 Exception] ActiveModel::ForbiddenAttributesError
49
Could not create the hostgroup:
50
  ActiveModel::ForbiddenAttributesError
51
[ERROR 2016-09-08 06:39:14 Exception] 
52

    
53
RestClient::InternalServerError (500 Internal Server Error):
54
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!'
55
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:312:in `block in rest_client_call_block'
56
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:493:in `call'
57
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:493:in `process_result'
58
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'
59
    /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'
60
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
61
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
62
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
63
    /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/resource.rb:67:in `post'
64
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:293:in `call_client'
65
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:222:in `http_call'
66
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:172:in `call_action'
67
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:167:in `call'
68
    /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/resource.rb:21:in `call'
69
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/apipie/command.rb:43:in `send_request'
70
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.8.0/lib/hammer_cli_foreman/commands.rb:190:in `send_request'
71
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/apipie/command.rb:34:in `execute'
72
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
73
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run'
74
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
75
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
76
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run'
77
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
78
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
79
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/abstract.rb:22:in `run'
80
    /opt/theforeman/tfm/root/usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
81
    /opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/bin/hammer:125:in `<top (required)>'
82
    /usr/bin/hammer:23:in `load'
83
    /usr/bin/hammer:23:in `<main>'
84

    
85