Project

General

Profile

Actions

Feature #4233

closed

Foreman 1.4.0 breaks default_hostgroup plugin

Added by Martin Jackson over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

default_hostgroup plugin causes fact uploads to fail in theforeman 1.4.0

Actions #1

Updated by Martin Jackson over 10 years ago

This Foreman server happens to be running Debian 7.0; I observed the same error on a RHEL 6.5 installation but am unable to copy/paste logs from there at this time:

Started POST "/api/hosts/facts" for 127.0.0.1 at 2014-01-31 06:32:28 -0600
Processing by Api::V2::HostsController#facts as JSON
Parameters: {"facts"=>"[FILTERED]", "name"=>"fili.minas.tirith", "certname"=>"fili.minas.tirith", "apiv"=>"v2", "host"=>{"facts"=>"[FILTERED]", "name"=>"fili.minas.tirith", "certname"=>"fili.minas.tirith"}}
wrong number of arguments (4 for 3) (ArgumentError)
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_default_hostgroup-1.0.1/lib/default_hostgroup_managed_host_patch.rb:13:in `importHostAndFacts_with_apply_hostgroup'
/usr/share/foreman/app/controllers/api/v2/hosts_controller.rb:153:in `facts'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/base.rb:167:in `process_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.16/lib/action_controller/metal/rendering.rb:10:in `process_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.16/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:461:in `block (3 levels) in run_1631480245725151544__process_action__2894148821133600203__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:215:in `block in conditional_callback_around_5387'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:326:in `around'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:310:in `_callback_around_1255'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_5387'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:438:in `block (2 levels) in _run
_1631480245725151544__process_action__2894148821133600203__callbacks'

Actions #2

Updated by Dominic Cleal over 10 years ago

  • Tracker changed from Bug to Feature
  • Project changed from Foreman to Plugins
  • Status changed from New to Assigned
  • Assignee set to Greg Sutcliffe

It's been fixed in git, but no release - Greg?

Actions #4

Updated by Greg Sutcliffe over 10 years ago

  • Status changed from Assigned to Resolved

DefaultHostgroup 1.1.0 has been released, so I'm closing this.

Actions

Also available in: Atom PDF