Import facts: wrong number of arguments

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:inpopulate_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:inimport_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:infacts'

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:inaccept_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:inblock (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.

··· ________________________________ This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message. Local registered entity information: http://www.msci.com/legal/local_registered_entities.html

Could you try upgrading ruby193-rubygem-foreman_discovery?

The 0.5.5-P version is the version of the image, but the plugin to
Foreman looks like it's 1.4.0-rc1 from those stack traces. It's now up
to rc4, so I hope the issue you're seeing has been resolved.

Cheers,

··· -- Dominic Cleal Red Hat Engineering

On 02/10/14 10:22, McCammont, Anderson wrote:

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.


This email message and any attachments are for the sole use of the
intended recipients and may contain proprietary and/or confidential
information which may be privileged or otherwise protected from
disclosure. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not an intended recipient, please contact the
sender by reply email and destroy the original message and any copies of
the message as well as any attachments to the original message. Local
registered entity information:
http://www.msci.com/legal/local_registered_entities.html


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

> The 0.5.5-P version is the version of the image, but the plugin to
> Foreman looks like it's 1.4.0-rc1 from those stack traces. It's now up
> to rc4, so I hope the issue you're seeing has been resolved.

Word. Upgrade to:

  • discovery 1.4 rc4
  • discovery image 0.6 (this is not yet announced release, was rc1
    yesterday :slight_smile:

http://downloads.theforeman.org/discovery/releases/0.6/

Let us know if that helps or not.

LZ

··· -- Later, Lukas #lzap Zapletal

That did it thanks Dominic.

For info, first I tried the 0.6 discovery image (as it would be easier to roll back if a problem). Same situation, though the error was also reported on the client console as well as in production.log, so an improvement from that perspective too.

regards

··· -----Original Message----- From: foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com] On Behalf Of Dominic Cleal Sent: 02 October 2014 12:56 To: foreman-users@googlegroups.com Subject: Re: [foreman-users] Import facts: wrong number of arguments

Could you try upgrading ruby193-rubygem-foreman_discovery?

The 0.5.5-P version is the version of the image, but the plugin to Foreman looks like it’s 1.4.0-rc1 from those stack traces. It’s now up to rc4, so I hope the issue you’re seeing has been resolved.

Cheers,


Dominic Cleal
Red Hat Engineering

On 02/10/14 10:22, McCammont, Anderson wrote:

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/a
pp/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/a
pp/models/host/discovered.rb:71:in
`import_facts’

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a
pp/models/host/discovered.rb:63:in
`import_host_and_facts’

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a
pp/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/rac
k/thread_handler_extension.rb:77:in
`process_request’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req
uest_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/req
uest_handler/thread_handler.rb:108:in
`main_loop’

/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req
uest_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.


– This email message and any attachments are for the sole use of the
intended recipients and may contain proprietary and/or confidential
information which may be privileged or otherwise protected from
disclosure. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not an intended recipient, please contact
the sender by reply email and destroy the original message and any
copies of the message as well as any attachments to the original
message. Local registered entity information:
http://www.msci.com/legal/local_registered_entities.html


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message. Local registered entity information: http://www.msci.com/legal/local_registered_entities.html

Hi all,

Just ran into the same problem. Fresh installation of Foreman 1.6.1 with
discovery 1.4-rc4 and image 0.6 (installed using the foreman installer with
–enable-foreman-plugin-discovery). Full foreman production.log trace below.

How could I fix this?

Thanks,

Tom

Started POST "/api/v2/discovered_hosts/facts" for 10.10.10.2 at 2014-10-17
12:38:43 +0200
Processing by Api::V2::DiscoveredHostsController#facts as JSON
Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2",
"discovered_host"=>{"facts"=>"[FILTERED]"}}
Import facts for 'mac080027bf98b0' completed. Added: 0, Updated: 0, Deleted
0 facts
wrong number of arguments (2 for 1) (ArgumentError)
/usr/share/foreman/app/models/host/base.rb:69:in
populate_fields_from_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:81:inpopulate_fields_from_facts'
/usr/share/foreman/app/models/host/base.rb:54:in import_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:71:inimport_facts'
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:63:in
import_host_and_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/controllers/api/v2/discovered_hosts_controller.rb:96:infacts'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:4:in
send_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:inprocess_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:495:in
block (4 levels) in _run__4488231903361965646__process_action__2226559520370275985__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7093'
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:93:in
disable_json_root' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7093'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:494:in
block (3 levels) in _run__4488231903361965646__process_action__2226559520370275985__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_7092'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in
around' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in_callback_around_2370'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7092' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:482:inblock (2 levels) in
_run__4488231903361965646__process_action__2226559520370275985__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7091' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7091' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:426:inblock in
_run__4488231903361965646__process_action__2226559520370275985__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_7090' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:inaround'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in
_callback_around_13' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7090'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in
_run__4488231903361965646__process_action__2226559520370275985__callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in__run_callback'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:inrun_callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:inblock in instrument'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:ininstrument'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:inprocess'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in
process' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:indispatch'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:inblock in action'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/mapper.rb:43:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in
call' /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:incontext'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in_run__379184286496844165__call__370853736905932193__callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in
__run_callback' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in
run_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:incall_app'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:intagged'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:inforward'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in
pass' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:ininvalidate'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in
call!' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in
method_missing' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:incall'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:ineach'
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in
call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in
accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:inmain_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in
`block (3 levels) in start_threads'
Rendered api/v2/errors/standard_error.json.rabl within
api/v2/layouts/error_layout (0.9ms)
Completed 500 Internal Server Error in 40.9ms (Views: 2.2ms | ActiveRecord:
8.3ms)
Started POST "/discovers" for 10.10.10.2 at 2014-10-17 12:38:43 +0200

ActionController::RoutingError (No route matches [POST] "/discovers"):

/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in
`process_request'

/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in
`accept_and_process_next_request'

/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in
main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:inblock (3 levels) in start_threads'

··· Op donderdag 2 oktober 2014 17:29:47 UTC+2 schreef amcc: > > That did it thanks Dominic. > > For info, first I tried the 0.6 discovery image (as it would be easier to > roll back if a problem). Same situation, though the error was also > reported on the client console as well as in production.log, so an > improvement from that perspective too. > > regards > > -----Original Message----- > From: forema...@googlegroups.com [mailto: > forema...@googlegroups.com ] On Behalf Of Dominic Cleal > Sent: 02 October 2014 12:56 > To: forema...@googlegroups.com > Subject: Re: [foreman-users] Import facts: wrong number of arguments > > Could you try upgrading ruby193-rubygem-foreman_discovery? > > The 0.5.5-P version is the version of the image, but the plugin to Foreman > looks like it's 1.4.0-rc1 from those stack traces. It's now up to rc4, so > I hope the issue you're seeing has been resolved. > > Cheers, > > -- > Dominic Cleal > Red Hat Engineering > > On 02/10/14 10:22, McCammont, Anderson wrote: > > 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/a > > pp/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/a > > pp/models/host/discovered.rb:71:in > > `import_facts' > > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a > > pp/models/host/discovered.rb:63:in > > `import_host_and_facts' > > > > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a > > pp/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/rac > > k/thread_handler_extension.rb:77:in > > `process_request' > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req > > uest_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/req > > uest_handler/thread_handler.rb:108:in > > `main_loop' > > > > > > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req > > uest_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. > > > > > > ---------------------------------------------------------------------- > > -- This email message and any attachments are for the sole use of the > > intended recipients and may contain proprietary and/or confidential > > information which may be privileged or otherwise protected from > > disclosure. Any unauthorized review, use, disclosure or distribution > > is prohibited. If you are not an intended recipient, please contact > > the sender by reply email and destroy the original message and any > > copies of the message as well as any attachments to the original > > message. Local registered entity information: > > http://www.msci.com/legal/local_registered_entities.html > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to foreman-user...@googlegroups.com > > <mailto:foreman-users+unsubscribe@googlegroups.com >. > > To post to this group, send email to forema...@googlegroups.com > > > <mailto:forema...@googlegroups.com >. > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foreman-user...@googlegroups.com . > To post to this group, send email to forema...@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout. > > This email message and any attachments are for the sole use of the > intended recipients and may cont

Same here, with the exact same stack trace.
I'm using foreman-1.6.1-1.el6, foreman_discovery-1.4.0-0.1.rc4.el6 and
home brewed discovery image with the discovey scripts from here:
https://github.com/theforeman/ovirt-node-plugin-foreman/tree/master/src

Tom, did you managed to get it working?

··· On Friday, October 17, 2014 1:49:41 PM UTC+3, Tom Verdaat wrote: > > Hi all, > > Just ran into the same problem. Fresh installation of Foreman 1.6.1 with > discovery 1.4-rc4 and image 0.6 (installed using the foreman installer with > --enable-foreman-plugin-discovery). Full foreman production.log trace below. > > How could I fix this? > > Thanks, > > Tom > > > > Started POST "/api/v2/discovered_hosts/facts" for 10.10.10.2 at 2014-10-17 > 12:38:43 +0200 > Processing by Api::V2::DiscoveredHostsController#facts as JSON > Parameters: {"facts"=>"[FILTERED]", "apiv"=>"v2", > "discovered_host"=>{"facts"=>"[FILTERED]"}} > Import facts for 'mac080027bf98b0' completed. Added: 0, Updated: 0, > Deleted 0 facts > wrong number of arguments (2 for 1) (ArgumentError) > /usr/share/foreman/app/models/host/base.rb:69:in > `populate_fields_from_facts' > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:81:in > `populate_fields_from_facts' > /usr/share/foreman/app/models/host/base.rb:54:in `import_facts' > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:71:in > `import_facts' > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/models/host/discovered.rb:63:in > `import_host_and_facts' > /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_discovery-1.4.0.rc4/app/controllers/api/v2/discovered_hosts_controller.rb:96:in > `facts' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/implicit_render.rb:4:in > `send_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:167:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rendering.rb:10:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:18:in > `block in process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:495:in > `block (4 levels) in > _run__4488231903361965646__process_action__2226559520370275985__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7093' > /usr/share/foreman/app/controllers/api/v2/base_controller.rb:93:in > `disable_json_root' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7093' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:494:in > `block (3 levels) in > _run__4488231903361965646__process_action__2226559520370275985__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7092' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in > `around' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in > `_callback_around_2370' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7092' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:482:in > `block (2 levels) in > _run__4488231903361965646__process_action__2226559520370275985__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7091' > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:in > `clear_thread' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7091' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:426:in > `block in > _run__4488231903361965646__process_action__2226559520370275985__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:215:in > `block in _conditional_callback_around_7090' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:326:in > `around' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:310:in > `_callback_around_13' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:214:in > `_conditional_callback_around_7090' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:414:in > `_run__4488231903361965646__process_action__2226559520370275985__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `__run_callback' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in > `_run_process_action_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/callbacks.rb:17:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rescue.rb:29:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:30:in > `block in process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in > `block in instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/notifications.rb:123:in > `instrument' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/instrumentation.rb:29:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/params_wrapper.rb:207:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/railties/controller_runtime.rb:18:in > `process_action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/base.rb:121:in > `process' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/abstract_controller/rendering.rb:45:in > `process' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:203:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal/rack_delegation.rb:14:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_controller/metal.rb:246:in > `block in action' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:73:in > `dispatch' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:36:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/mapper.rb:43:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in > `each' > /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/routing/route_set.rb:608:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.2.6/lib/apipie/extractor/recorder.rb:97:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:35:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/head.rb:14:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/params_parser.rb:21:in > `call' > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/flash.rb:242:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in > `context' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/cookies.rb:341:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/query_cache.rb:64:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:28:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `_run__379184286496844165__call__370853736905932193__callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in > `__run_callback' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in > `_run_call_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in > `run_callbacks' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/callbacks.rb:27:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:32:in > `call_app' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/tagged_logging.rb:22:in > `tagged' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/rack/logger.rb:16:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/request_id.rb:22:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.2.18/lib/action_dispatch/middleware/static.rb:63:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in > `forward' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:143:in > `pass' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:155:in > `invalidate' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:71:in > `call!' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/application.rb:231:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in > `method_missing' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:in > `call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in > `block in call' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in > `each' > /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in > `call' > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in > `process_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in > `accept_and_process_next_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in > `main_loop' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in > `block (3 levels) in start_threads' > Rendered api/v2/errors/standard_error.json.rabl within > api/v2/layouts/error_layout (0.9ms) > Completed 500 Internal Server Error in 40.9ms (Views: 2.2ms | > ActiveRecord: 8.3ms) > Started POST "/discovers" for 10.10.10.2 at 2014-10-17 12:38:43 +0200 > > ActionController::RoutingError (No route matches [POST] "/discovers"): > > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in > `process_request' > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in > `accept_and_process_next_request' > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in > `main_loop' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in > `block (3 levels) in start_threads' > > > > > > Op donderdag 2 oktober 2014 17:29:47 UTC+2 schreef amcc: >> >> That did it thanks Dominic. >> >> For info, first I tried the 0.6 discovery image (as it would be easier to >> roll back if a problem). Same situation, though the error was also >> reported on the client console as well as in production.log, so an >> improvement from that perspective too. >> >> regards >> >> -----Original Message----- >> From: forema...@googlegroups.com [mailto:forema...@googlegroups.com] On >> Behalf Of Dominic Cleal >> Sent: 02 October 2014 12:56 >> To: forema...@googlegroups.com >> Subject: Re: [foreman-users] Import facts: wrong number of arguments >> >> Could you try upgrading ruby193-rubygem-foreman_discovery? >> >> The 0.5.5-P version is the version of the image, but the plugin to >> Foreman looks like it's 1.4.0-rc1 from those stack traces. It's now up to >> rc4, so I hope the issue you're seeing has been resolved. >> >> Cheers, >> >> -- >> Dominic Cleal >> Red Hat Engineering >> >> On 02/10/14 10:22, McCammont, Anderson wrote: >> > 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/a >> > pp/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/a >> > pp/models/host/discovered.rb:71:in >> > `import_facts' >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a >> > pp/models/host/discovered.rb:63:in >> > `import_host_and_facts' >> > >> > /opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a >> > pp/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/rac >> > k/thread_handler_extension.rb:77:in >> > `process_request' >> > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req >> > uest_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/req >> > uest_handler/thread_handler.rb:108:in >> > `main_loop' >> > >> > >> > /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/req >> > uest_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. >> > >> > >> > ---------------------------------------------------------------------- >> > -- This email message and any attachments are for the sole use of the >> > intended recipients and may contain proprietary and/or confidential >> > information which may be privileged or otherwise protected from >> > disclosure. Any unauthorized review, use, disclosure or distribution >> > is prohibited. If you are not an intended recipient, please contact >> > the sender by reply email and destroy the original message and any >> > copies of the message as well as any attachments to the original >> > message. Local registered entity information: >> > http://www.msci.com/legal/local_registered_entities.html >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Foreman users" group. >> > To unsubscribe from this group and stop receiving

No unfortunately I did not. Was hoping to hear from Ohad or an other
developer.

Created an issue ticket because this seems like a bug to me:
http://projects.theforeman.org/issues/7999

Would appreciate it if you vote it up!

Tom

··· 2014-10-20 17:08 GMT+02:00 Oded Ben Ozer :

Same here, with the exact same stack trace.
I’m using foreman-1.6.1-1.el6, foreman_discovery-1.4.0-0.1.rc4.el6 and
home brewed discovery image with the discovey scripts from here:
https://github.com/theforeman/ovirt-node-plugin-foreman/tree/master/src

Tom, did you managed to get it working?

On Friday, October 17, 2014 1:49:41 PM UTC+3, Tom Verdaat wrote:

Hi all,

Just ran into the same problem. Fresh installation of Foreman 1.6.1 with
discovery 1.4-rc4 and image 0.6 (installed using the foreman installer with
–enable-foreman-plugin-discovery). Full foreman production.log trace
below.

How could I fix this?

Thanks,

Tom

Started POST “/api/v2/discovered_hosts/facts” for 10.10.10.2 at
2014-10-17 12:38:43 +0200
Processing by Api::V2::DiscoveredHostsController#facts as JSON
Parameters: {“facts”=>"[FILTERED]", “apiv”=>“v2”,
“discovered_host”=>{“facts”=>"[FILTERED]"}}
Import facts for ‘mac080027bf98b0’ completed. Added: 0, Updated: 0,
Deleted 0 facts
wrong number of arguments (2 for 1) (ArgumentError)
/usr/share/foreman/app/models/host/base.rb:69:in
populate_fields_from_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/models/host/discovered.rb:81:inpopulate_fields_from_facts’
/usr/share/foreman/app/models/host/base.rb:54:in import_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/models/host/discovered.rb:71:inimport_facts’
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_
discovery-1.4.0.rc4/app/models/host/discovered.rb:63:in
import_host_and_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/controllers/api/v2/discovered_hosts_controller.rb:96:infacts’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/implicit_render.rb:4:in send_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/base.rb:167:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/rendering.rb:10:in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/callbacks.rb:18:inblock in process_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:495:in block (4 levels) in _run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:215:inblock in
_conditional_callback_around_7093’
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:93:in
disable_json_root' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7093’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:494:in block (3 levels) in _run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:215:inblock in
conditional_callback_around_7092’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:326:in around' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:310:incallback_around_2370’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7092' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:482:inblock (2 levels) in
run__4488231903361965646__process_action__2226559520370275985

callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:215:in block in _conditional_callback_around_7091' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7091' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:426:inblock in
run__4488231903361965646__process_action__2226559520370275985

callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:215:in block in _conditional_callback_around_7090' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:326:inaround’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:310:in _callback_around_13' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7090’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:414:in
_run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:405:in_run_callback’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:385:in _run_process_action_ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:81:inrun_callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/abstract_controller/callbacks.rb:17:in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal/rescue.rb:29:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/instrumentation.rb:30:in block in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/notifications.rb:123:inblock in instrument’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/notifications.rb:123:ininstrument’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-
3.2.18/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/base.rb:121:inprocess’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/abstract_controller/rendering.rb:45:in process' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal.rb:203:indispatch’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal.rb:246:inblock in action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/routing/route_set.rb:73:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/route_set.rb:73:indispatch’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/routing/route_set.rb:36:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/mapper.rb:43:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:ineach’
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/route_set.rb:608:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-
0.2.6/lib/apipie/extractor/recorder.rb:97:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails- 0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/conditionalget.rb:35:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/head.rb:14:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/params_parser.rb:21:in call' /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/flash.rb:242:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/ lib/rack/session/abstract/id.rb:210:incontext’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/session/abstract/id.rb:205:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/cookies.rb:341:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-
3.2.18/lib/active_record/query_cache.rb:64:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord- 3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:405:inrun__379184286496844165

call__370853736905932193__callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:405:in __run_callback' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:385:inrun_call_callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:81:in run_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/callbacks.rb:27:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2. 18/lib/rails/rack/logger.rb:32:incall_app’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/rack/logger.rb:16:in block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/tagged_logging.rb:22:intagged’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/rack/logger.rb:16:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/request_id.rb:22:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/methodoverride.rb:21:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/static.rb:63:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:136:inforward’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.
2/lib/rack/cache/context.rb:143:in pass' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:155:ininvalidate’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.
2/lib/rack/cache/context.rb:71:in call!' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:51:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2. 18/lib/rails/application.rb:231:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/railtie/configurable.rb:30:in method_missing' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:ineach’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in
call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request

handler/thread_handler.rb:142:in accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_ handler/thread_handler.rb:110:inmain_loop’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in
`block (3 levels) in start_threads’
Rendered api/v2/errors/standard_error.json.rabl within
api/v2/layouts/error_layout (0.9ms)
Completed 500 Internal Server Error in 40.9ms (Views: 2.2ms |
ActiveRecord: 8.3ms)
Started POST “/discovers” for 10.10.10.2 at 2014-10-17 12:38:43 +0200

ActionController::RoutingError (No route matches [POST] “/discovers”):
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_ handler/thread_handler.rb:142:inaccept_and_process_next_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_
handler/thread_handler.rb:110:in main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:inblock (3 levels) in start_threads’

Op donderdag 2 oktober 2014 17:29:47 UTC+2 schreef amcc:

That did it thanks Dominic.

For info, first I tried the 0.6 discovery image (as it would be easier
to roll back if a problem). Same situation, though the error was also
reported on the client console as well as in production.log, so an
improvement from that perspective too.

regards

-----Original Message-----
From: forema...@googlegroups.com [mailto:forema...@googlegroups.com] On
Behalf Of Dominic Cleal
Sent: 02 October 2014 12:56
To: forema...@googlegroups.com
Subject: Re: [foreman-users] Import facts: wrong number of arguments

Could you try upgrading ruby193-rubygem-foreman_discovery?

The 0.5.5-P version is the version of the image, but the plugin to
Foreman looks like it’s 1.4.0-rc1 from those stack traces. It’s now up to
rc4, so I hope the issue you’re seeing has been resolved.

Cheers,


Dominic Cleal
Red Hat Engineering

On 02/10/14 10:22, McCammont, Anderson wrote:

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/a

pp/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/a

pp/models/host/discovered.rb:71:in
`import_facts’

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a

pp/models/host/discovered.rb:63:in
`import_host_and_facts’

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_discovery-1.4.0.rc1/a

Just did, thanks.

Oded

··· On Mon, Oct 20, 2014 at 9:16 PM, Tom Verdaat wrote:

No unfortunately I did not. Was hoping to hear from Ohad or an other
developer.

Created an issue ticket because this seems like a bug to me:
Bug #7999: Foreman discovery importing facts: wrong number of arguments (2 for 1) - Discovery - Foreman

Would appreciate it if you vote it up!

Tom

2014-10-20 17:08 GMT+02:00 Oded Ben Ozer oded.b@taboola.com:

Same here, with the exact same stack trace.
I’m using foreman-1.6.1-1.el6, foreman_discovery-1.4.0-0.1.rc4.el6 and
home brewed discovery image with the discovey scripts from here:
https://github.com/theforeman/ovirt-node-plugin-foreman/tree/master/src

Tom, did you managed to get it working?

On Friday, October 17, 2014 1:49:41 PM UTC+3, Tom Verdaat wrote:

Hi all,

Just ran into the same problem. Fresh installation of Foreman 1.6.1 with
discovery 1.4-rc4 and image 0.6 (installed using the foreman installer with
–enable-foreman-plugin-discovery). Full foreman production.log trace
below.

How could I fix this?

Thanks,

Tom

Started POST “/api/v2/discovered_hosts/facts” for 10.10.10.2 at
2014-10-17 12:38:43 +0200
Processing by Api::V2::DiscoveredHostsController#facts as JSON
Parameters: {“facts”=>"[FILTERED]", “apiv”=>“v2”,
“discovered_host”=>{“facts”=>"[FILTERED]"}}
Import facts for ‘mac080027bf98b0’ completed. Added: 0, Updated: 0,
Deleted 0 facts
wrong number of arguments (2 for 1) (ArgumentError)
/usr/share/foreman/app/models/host/base.rb:69:in
populate_fields_from_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/models/host/discovered.rb:81:inpopulate_fields_from_facts’
/usr/share/foreman/app/models/host/base.rb:54:in import_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/models/host/discovered.rb:71:inimport_facts’
/usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_
discovery-1.4.0.rc4/app/models/host/discovered.rb:63:in
import_host_and_facts' /usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_ discovery-1.4.0.rc4/app/controllers/api/v2/discovered_hosts_controller.rb:96:infacts’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/implicit_render.rb:4:in send_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/base.rb:167:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/rendering.rb:10:in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/callbacks.rb:18:inblock in
process_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:495:in block (4 levels) in _run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:215:inblock in
_conditional_callback_around_7093’
/usr/share/foreman/app/controllers/api/v2/base_controller.rb:93:in
disable_json_root' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7093’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:494:in block (3 levels) in _run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:215:inblock in
conditional_callback_around_7092’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:326:in around' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:310:incallback_around_2370’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7092' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:482:inblock (2 levels) in
run__4488231903361965646__process_action__2226559520370275985

callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:215:in block in _conditional_callback_around_7091' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_7091' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:426:inblock in
run__4488231903361965646__process_action__2226559520370275985

callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:215:in block in _conditional_callback_around_7090' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:326:inaround’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:310:in _callback_around_13' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:214:in_conditional_callback_around_7090’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:414:in
_run__4488231903361965646__process_action__2226559520370275985__ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:405:in__run_callback’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:385:in _run_process_action_ callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:81:inrun_callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/abstract_controller/callbacks.rb:17:in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal/rescue.rb:29:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/instrumentation.rb:30:in block in process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/notifications.rb:123:inblock in instrument’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/notifications.rb:123:ininstrument’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-
3.2.18/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/abstract_controller/base.rb:121:inprocess’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/abstract_controller/rendering.rb:45:in process' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal.rb:203:indispatch’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_controller/metal/rack_delegation.rb:14:in dispatch' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_controller/metal.rb:246:inblock in action’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/routing/route_set.rb:73:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/route_set.rb:73:indispatch’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/routing/route_set.rb:36:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/mapper.rb:43:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:ineach’
/usr/share/foreman/vendor/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/routing/route_set.rb:608:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails-
0.2.6/lib/apipie/extractor/recorder.rb:97:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/apipie-rails- 0.2.6/lib/apipie/middleware/checksum_in_headers.rb:27:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/conditionalget.rb:35:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/head.rb:14:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/params_parser.rb:21:in call' /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/flash.rb:242:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/ lib/rack/session/abstract/id.rb:210:incontext’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/session/abstract/id.rb:205:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/cookies.rb:341:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord-
3.2.18/lib/active_record/query_cache.rb:64:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activerecord- 3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:405:in_run__379184286496844165__call__370853736905932193__callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:405:in __run_callback' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/callbacks.rb:385:inrun_call_callbacks’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/callbacks.rb:81:in run_callbacks' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/callbacks.rb:27:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/remote_ip.rb:31:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/debug_exceptions.rb:16:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/show_exceptions.rb:56:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2. 18/lib/rails/rack/logger.rb:32:incall_app’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/rack/logger.rb:16:in block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport- 3.2.18/lib/active_support/tagged_logging.rb:22:intagged’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/rack/logger.rb:16:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3. 2.18/lib/action_dispatch/middleware/request_id.rb:22:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/methodoverride.rb:21:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/activesupport-
3.2.18/lib/active_support/cache/strategy/local_cache.rb:72:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/actionpack-3.
2.18/lib/action_dispatch/middleware/static.rb:63:in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:136:inforward’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.
2/lib/rack/cache/context.rb:143:in pass' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:155:ininvalidate’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1.
2/lib/rack/cache/context.rb:71:in call!' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-cache-1. 2/lib/rack/cache/context.rb:51:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.18/lib/rails/engine.rb:484:in
call' /usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2. 18/lib/rails/application.rb:231:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/railties-3.2.
18/lib/rails/railtie/configurable.rb:30:in method_missing' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:134:incall’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in
block in call' /usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:ineach’
/usr/share/foreman/vendor/ruby/1.9.1/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in
call' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request

handler/thread_handler.rb:142:in accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_ handler/thread_handler.rb:110:inmain_loop’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in
`block (3 levels) in start_threads’
Rendered api/v2/errors/standard_error.json.rabl within
api/v2/layouts/error_layout (0.9ms)
Completed 500 Internal Server Error in 40.9ms (Views: 2.2ms |
ActiveRecord: 8.3ms)
Started POST “/discovers” for 10.10.10.2 at 2014-10-17 12:38:43 +0200

ActionController::RoutingError (No route matches [POST] “/discovers”):
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_ handler/thread_handler.rb:142:inaccept_and_process_next_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_
handler/thread_handler.rb:110:in main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:inblock (3 levels) in start_threads’

Op donderdag 2 oktober 2014 17:29:47 UTC+2 schreef amcc:

That did it thanks Dominic.

For info, first I tried the 0.6 discovery image (as it would be easier
to roll back if a problem). Same situation, though the error was also
reported on the client console as well as in production.log, so an
improvement from that perspective too.

regards

-----Original Message-----
From: forema...@googlegroups.com [mailto:forema...@googlegroups.com]
On Behalf Of Dominic Cleal
Sent: 02 October 2014 12:56
To: forema...@googlegroups.com
Subject: Re: [foreman-users] Import facts: wrong number of arguments

Could you try upgrading ruby193-rubygem-foreman_discovery?

The 0.5.5-P version is the version of the image, but the plugin to
Foreman looks like it’s 1.4.0-rc1 from those stack traces. It’s now up to
rc4, so I hope the issue you’re seeing has been resolved.

Cheers,


Dominic Cleal
Red Hat Engineering

On 02/10/14 10:22, McCammont, Anderson wrote:

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/fa