Project

General

Profile

Actions

Bug #35315

closed

Misleading error when REX fails to find pattern template invocation for a given provider

Added by Adam Ruzicka over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Difficulty:
trivial
Triaged:
No
Found in Releases:

Description

Instead of explicitly telling so, it returns an array of providers instead of an template invocation and things blow up a bit later when we try to work with it.

NoMethodError: undefined method `host_id=' for ["SSH", "Script"]:Array
/usr/share/gems/gems/foreman_remote_execution-7.1.0/app/lib/actions/remote_execution/run_hosts_job.rb:50:in `block in create_sub_plans'
/usr/share/gems/gems/activerecord-6.0.4.7/lib/active_record/relation/delegation.rb:88:in `each'
/usr/share/gems/gems/activerecord-6.0.4.7/lib/active_record/relation/delegation.rb:88:in `each'
/usr/share/gems/gems/foreman_remote_execution-7.1.0/app/lib/actions/remote_execution/run_hosts_job.rb:46:in `map'
/usr/share/gems/gems/foreman_remote_execution-7.1.0/app/lib/actions/remote_execution/run_hosts_job.rb:46:in `create_sub_plans'
/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/with_sub_plans.rb:41:in `spawn_plans'
/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/with_bulk_sub_plans.rb:71:in `spawn_plans'
/usr/share/gems/gems/foreman_remote_execution-7.1.0/app/lib/actions/remote_execution/run_hosts_job.rb:56:in `spawn_plans'
/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/with_sub_plans.rb:37:in `initiate'
/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/with_bulk_sub_plans.rb:36:in `initiate'
/usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/with_polling_sub_plans.rb:24:in `initiate'
/usr/share/gems/gems/foreman_remote_execution-7.1.0/app/lib/actions/remote_execution/run_hosts_job.rb:110:in `initiate'

Actions #1

Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/753 added
Actions #2

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases added
Actions #3

Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka over 1 year ago

  • Fixed in Releases foreman_remote_execution-8.1.0 added
  • Fixed in Releases deleted ()
Actions

Also available in: Atom PDF