Actions
Bug #6090
closedproxy import fails with "missing param 'id' in parameters"
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman commands (obsolete)
Target version:
Description
hammer -d proxy import-classes --name tstrachota --environment development --dryrun
...ends up with:
[ INFO 2014-06-06 10:42:48 Init] Initialization of Hammer CLI (0.1.1) has started... [DEBUG 2014-06-06 10:42:48 Init] Running at ruby 1.9.3-p545 [ INFO 2014-06-06 10:42:48 Init] Configuration from the file /root/.hammer/cli_config.yml has been loaded [ INFO 2014-06-06 10:42:48 Init] Configuration from the file /root/.hammer/cli.modules.d/foreman.yml has been loaded [ INFO 2014-06-06 10:42:48 Init] Configuration from the file /root/.hammer/cli.modules.d/katello.yml has been loaded [ INFO 2014-06-06 10:42:48 Init] Configuration from the file /root/.hammer/my_cli_config.yml has been loaded [DEBUG 2014-06-06 10:42:48 Connection] Registered: foreman [DEBUG 2014-06-06 10:42:48 API] Global headers: { :content_type => "application/json", :accept => "application/json;version=2", "Accept-Language" => "en" } [ INFO 2014-06-06 10:42:48 API] GET /apidoc/apipie_checksum [DEBUG 2014-06-06 10:42:48 API] Params: {} [DEBUG 2014-06-06 10:42:48 API] Headers: { :accept => "application/json", :params => {} } [DEBUG 2014-06-06 10:42:49 API] Response: { "checksum" => "a588adbfda7c6c10af9320db32ff17b3" } [DEBUG 2014-06-06 10:42:49 API] Response headers: { :date => "Fri, 06 Jun 2014 11:42:01 GMT", :server => "Apache/2.2.15 (Red Hat)", :apipie_checksum => "a588adbfda7c6c10af9320db32ff17b3", :x_ua_compatible => "IE=Edge,chrome=1", :etag => "\"a73bd2c3e0912216a5764f39e3652739\"", :cache_control => "must-revalidate, private, max-age=0", :x_request_id => "d21efef01fe60778912a9d74ba430309", :x_runtime => "0.005785", :x_rack_cache => "miss", :x_powered_by => "Phusion Passenger 4.0.18", :status => "200 OK", :connection => "close", :transfer_encoding => "chunked", :content_type => "application/json; charset=utf-8" } [ INFO 2014-06-06 10:42:49 Modules] Extension module hammer_cli_foreman (0.1.1) loaded [ WARN 2014-06-06 10:42:49 HammerCLIForemanTasks::Task] Resource 'foreman_tasks' does not exist in the API [DEBUG 2014-06-06 10:42:49 Init] Using locale 'en' [DEBUG 2014-06-06 10:42:49 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/root/hammer/hammer-cli/locale' [DEBUG 2014-06-06 10:42:49 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/root/hammer/hammer-cli-foreman/locale' [ INFO 2014-06-06 10:42:49 HammerCLI::MainCommand] Called with options: {"option_debug"=>true, "option_config"=>"/root/.hammer/my_cli_config.yml"} [ INFO 2014-06-06 10:42:49 HammerCLIForeman::SmartProxy] Called with options: {} [ INFO 2014-06-06 10:42:49 HammerCLIForeman::SmartProxy::ImportPuppetClassesCommand] Called with options: {"option_dryrun"=>true, "option_name"=>"tstrachota", "option_environment_name"=>"development"} [ INFO 2014-06-06 10:42:49 API] GET /apidoc/apipie_checksum [DEBUG 2014-06-06 10:42:49 API] Params: {} [DEBUG 2014-06-06 10:42:49 API] Headers: { :accept => "application/json", :params => {} } [DEBUG 2014-06-06 10:42:49 API] Response: { "checksum" => "a588adbfda7c6c10af9320db32ff17b3" } [DEBUG 2014-06-06 10:42:49 API] Response headers: { :date => "Fri, 06 Jun 2014 11:42:02 GMT", :server => "Apache/2.2.15 (Red Hat)", :apipie_checksum => "a588adbfda7c6c10af9320db32ff17b3", :x_ua_compatible => "IE=Edge,chrome=1", :etag => "\"a73bd2c3e0912216a5764f39e3652739\"", :cache_control => "must-revalidate, private, max-age=0", :x_request_id => "59e077a0e8c81a34e869d078fbb5c00e", :x_runtime => "0.004933", :x_rack_cache => "miss", :x_powered_by => "Phusion Passenger 4.0.18", :status => "200 OK", :connection => "close", :transfer_encoding => "chunked", :content_type => "application/json; charset=utf-8" } [ INFO 2014-06-06 10:42:49 API] GET /api/environments [DEBUG 2014-06-06 10:42:49 API] Params: { :search => "name = \"development\"" } [DEBUG 2014-06-06 10:42:49 API] Headers: { :params => { :search => "name = \"development\"" } } [DEBUG 2014-06-06 10:42:49 API] Response: { "total" => 2, "subtotal" => 1, "page" => 1, "per_page" => 20, "search" => "name = \"development\"", "sort" => { "by" => nil, "order" => nil }, "results" => [ [0] { "name" => "development", "id" => 1, "created_at" => "2013-10-01T12:28:05Z", "updated_at" => "2013-10-01T12:28:05Z" } ] } [DEBUG 2014-06-06 10:42:49 API] Response headers: { :date => "Fri, 06 Jun 2014 11:42:02 GMT", :server => "Apache/2.2.15 (Red Hat)", :foreman_version => "1.6-develop", :foreman_api_version => "2", :apipie_checksum => "a588adbfda7c6c10af9320db32ff17b3", :x_ua_compatible => "IE=Edge,chrome=1", :etag => "\"3365139ae43c72bd6eb6a06895d2ed7c\"", :cache_control => "must-revalidate, private, max-age=0", :x_request_id => "9a5308821085960bbea1aa60a470506a", :x_runtime => "0.073535", :x_rack_cache => "miss", :x_powered_by => "Phusion Passenger 4.0.18", :set_cookie => [ [0] "_session_id=d8fce4315959003f952a3e364cdf21c3; path=/; HttpOnly" ], :status => "200 OK", :connection => "close", :transfer_encoding => "chunked", :content_type => "application/json; charset=utf-8" } [ INFO 2014-06-06 10:42:49 API] GET /apidoc/apipie_checksum [DEBUG 2014-06-06 10:42:49 API] Params: {} [DEBUG 2014-06-06 10:42:49 API] Headers: { :accept => "application/json", :params => {} } [DEBUG 2014-06-06 10:42:49 API] Response: { "checksum" => "a588adbfda7c6c10af9320db32ff17b3" } [DEBUG 2014-06-06 10:42:49 API] Response headers: { :date => "Fri, 06 Jun 2014 11:42:02 GMT", :server => "Apache/2.2.15 (Red Hat)", :apipie_checksum => "a588adbfda7c6c10af9320db32ff17b3", :x_ua_compatible => "IE=Edge,chrome=1", :etag => "\"a73bd2c3e0912216a5764f39e3652739\"", :cache_control => "must-revalidate, private, max-age=0", :x_request_id => "6fa382d31ffb8074bbc7ed9acc3f47c6", :x_runtime => "0.006195", :x_rack_cache => "miss", :x_powered_by => "Phusion Passenger 4.0.18", :status => "200 OK", :connection => "close", :transfer_encoding => "chunked", :content_type => "application/json; charset=utf-8" } [ERROR 2014-06-06 10:42:49 Exception] missing param 'id' in parameters Import of puppet classes failed: missing param 'id' in parameters [ERROR 2014-06-06 10:42:49 Exception] ArgumentError (missing param 'id' in parameters): /root/apipie-bindings/lib/apipie_bindings/route.rb:22:in `block in path' /root/apipie-bindings/lib/apipie_bindings/route.rb:20:in `each' /root/apipie-bindings/lib/apipie_bindings/route.rb:20:in `inject' /root/apipie-bindings/lib/apipie_bindings/route.rb:20:in `path' /root/apipie-bindings/lib/apipie_bindings/api.rb:152:in `call' /root/apipie-bindings/lib/apipie_bindings/resource.rb:14:in `call' /root/hammer/hammer-cli/lib/hammer_cli/apipie/command.rb:42:in `send_request' /root/hammer/hammer-cli-foreman/lib/hammer_cli_foreman/commands.rb:154:in `send_request' /root/hammer/hammer-cli/lib/hammer_cli/apipie/command.rb:33:in `execute' /root/clamp/lib/clamp/command.rb:68:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /root/clamp/lib/clamp/subcommand/execution.rb:11:in `execute' /root/clamp/lib/clamp/command.rb:68:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /root/clamp/lib/clamp/subcommand/execution.rb:11:in `execute' /root/clamp/lib/clamp/command.rb:68:in `run' /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run' /root/clamp/lib/clamp/command.rb:126:in `run' ./bin/hammer:100:in `<main>'
Updated by Tomáš Strachota about 10 years ago
- Status changed from Assigned to Ready For Testing
Updated by Anonymous about 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-foreman|commit:b1509cd0df1e4855c808b0c6ace14f8ec084b002.
Actions