Hi,
During a discovery of a new client I get an message in production.log
wrong number of arguments (2 for 1) (ArgumentError)
I'm using Foreman 1.6.0 and Foreman Discovery 0.5.5-P (as seen on the console). Is that a valid combination (it came from a straight foreman-installer --enable-foreman-plugin-discovery …) ?
Started POST "/api/v2/discovered_hosts/facts" for 10.207.94.126 at 2014-10-02 10:01:47 +0100
Processing by Api::V2::DiscoveredHostsController#facts as JSON
Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
Import facts for 'macXXXXX' completed. Added: 48, Updated: 0, Deleted 0 facts
wrong number of arguments (2 for 1) (ArgumentError)
/usr/share/foreman/app/models/host/base.rb:67:in populate_fields_from_facts' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/app/models/host/discovered.rb:79:in
populate_fields_from_facts'
/usr/share/foreman/app/models/host/base.rb:52:in import_facts' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/app/models/host/discovered.rb:71:in
import_facts'
/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/app/models/host/discovered.rb:63:in import_host_and_facts' /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/app/controllers/api/v2/discovered_hosts_controller.rb:96:in
facts'
…
Started POST "/discovers" for 10.207.94.126 at 2014-10-02 10:13:49 +0100
ActionController::RoutingError (No route matches [POST] "/discovers"):
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in process_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in main_loop' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
block (3 levels) in start_threads'
(this last part may be Bug #6413, but don't know if that covers the )
Let me know if you want the full stacktrace.