|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Initialization of Hammer CLI (0.8.0) has started...
|
|
[DEBUG [34m2016-09-08 06:39:12[0m [36mInit[0m] Running at ruby 2.2.2-p95
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli_config.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/foreman_docker.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mInit[0m] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
|
|
[DEBUG [34m2016-09-08 06:39:12[0m [36mConnection[0m] Registered: foreman
|
|
[DEBUG [34m2016-09-08 06:39:12[0m [36mAPI[0m] Global headers: {
|
|
:content_type => "application/json",
|
|
:accept => "application/json;version=2",
|
|
"Accept-Language" => "en"
|
|
}
|
|
[DEBUG [34m2016-09-08 06:39:12[0m [36mAPI[0m] Follow redirects: never
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mModules[0m] Extension module hammer_cli_foreman (0.8.0) loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mModules[0m] Extension module hammer_cli_foreman_bootdisk (0.1.3) loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:12[0m [36mModules[0m] Extension module hammer_cli_import (0.11.2) loaded
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mHammerCLI::MainCommand[0m] subcommand organization (HammerCLIForeman::Organization) was removed.
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mHammerCLI::MainCommand[0m] subcommand organization (HammerCLIKatello::Organization) was created.
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mModules[0m] Extension module hammer_cli_katello (0.0.26) loaded
|
|
[DEBUG [34m2016-09-08 06:39:13[0m [36mInit[0m] Using locale 'en'
|
|
[DEBUG [34m2016-09-08 06:39:13[0m [36mInit[0m] 'mo' files for locale domain 'hammer-cli' loaded from '/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/locale'
|
|
[DEBUG [34m2016-09-08 06:39:13[0m [36mInit[0m] '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'
|
|
[DEBUG [34m2016-09-08 06:39:13[0m [36mInit[0m] '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'
|
|
[DEBUG [34m2016-09-08 06:39:13[0m [36mInit[0m] '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'
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mHammerCLI::MainCommand[0m] Called with options: {"option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mHammerCLIForeman::Hostgroup[0m] Called with options: {}
|
|
[[32m INFO[0m [34m2016-09-08 06:39:13[0m [36mHammerCLIForeman::Hostgroup::CreateCommand[0m] Called with options: {"option_name"=>"test"}
|
|
[[32m INFO[0m [34m2016-09-08 06:39:14[0m [36mAPI[0m] Server: https://localhost/
|
|
[[32m INFO[0m [34m2016-09-08 06:39:14[0m [36mAPI[0m] POST /api/hostgroups
|
|
[DEBUG [34m2016-09-08 06:39:14[0m [36mAPI[0m] Params: {
|
|
"hostgroup" => {
|
|
"name" => "test",
|
|
"puppet_proxy_id" => nil,
|
|
"puppet_ca_proxy_id" => nil,
|
|
"puppetclass_ids" => nil
|
|
}
|
|
}
|
|
[DEBUG [34m2016-09-08 06:39:14[0m [36mAPI[0m] Headers: {}
|
|
[[31mERROR[0m [34m2016-09-08 06:39:14[0m [36mAPI[0m] 500 Internal Server Error
|
|
[DEBUG [34m2016-09-08 06:39:14[0m [36mAPI[0m] {
|
|
"error" => {
|
|
"message" => "ActiveModel::ForbiddenAttributesError"
|
|
}
|
|
}
|
|
[[31mERROR[0m [34m2016-09-08 06:39:14[0m [36mException[0m] ActiveModel::ForbiddenAttributesError
|
|
Could not create the hostgroup:
|
|
ActiveModel::ForbiddenAttributesError
|
|
[[31mERROR[0m [34m2016-09-08 06:39:14[0m [36mException[0m]
|
|
|
|
RestClient::InternalServerError (500 Internal Server Error):
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!'
|
|
/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'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:493:in `call'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:493:in `process_result'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'
|
|
/opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/resource.rb:67:in `post'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:293:in `call_client'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:222:in `http_call'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:172:in `call_action'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/api.rb:167:in `call'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-bindings-0.0.18/lib/apipie_bindings/resource.rb:21:in `call'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/lib/hammer_cli/apipie/command.rb:43:in `send_request'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman-0.8.0/lib/hammer_cli_foreman/commands.rb:190:in `send_request'
|
|
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/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/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/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/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/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/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/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/theforeman/tfm/root/usr/share/gems/gems/hammer_cli-0.8.0/bin/hammer:125:in `<top (required)>'
|
|
/usr/bin/hammer:23:in `load'
|
|
/usr/bin/hammer:23:in `<main>'
|
|
|
|
|