Project

General

Profile

Bug #17628

incremental update fails with "NoMethodError: undefined method `each' for #<Katello::KTEnvironment:>"

Added by Justin Sherrill over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Content Views
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Likely due to the multi-environment promote changes. traceback:

2016-12-11T11:15:46 9eedf268 [app] [E] NoMethodError: undefined method `each' for #<Katello::KTEnvironment:0x007fbd6d5de288>
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activemodel-4.2.7.1/lib/active_model/attribute_methods.rb:433:in `method_missing'
 | /home/vagrant/git/katello/app/lib/actions/katello/content_view/promote.rb:13:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.8.5/app/lib/actions/middleware/keep_current_user.rb:25:in `block in plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.8.5/app/lib/actions/middleware/keep_current_user.rb:41:in `with_current_user'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/foreman-tasks-0.8.5/app/lib/actions/middleware/keep_current_user.rb:24:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:34:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
 | /home/vagrant/git/katello/app/lib/actions/middleware/keep_locale.rb:7:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:34:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/middleware/world.rb:30:in `execute'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan.rb:301:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan.rb:301:in `switch_flow'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:364:in `concurrence'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:459:in `block in execute_plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `block in with_error_handling'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `catch'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `with_error_handling'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:458:in `execute_plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:260:in `execute'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.17/lib/dynflow/action.rb:392:in `plan_action'
 | /home/vagrant/git/katello/app/lib/actions/katello/content_view_version/incremental_update.rb:202:in `block (2 levels) in promote'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.7.1/lib/active_record/relation/delegation.rb:46:in `each'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.7.1/lib/active_record/relation/delegation.rb:46:in `each'
 | /home/vagrant/git/katello/app/lib/actions/katello/content_view_version/incremental_update.rb:201:in `block in promote'

Associated revisions

Revision 475df1d9 (diff)
Added by Justin Sherrill over 4 years ago

Fixes #17628 - correct "undefined method each" on incr update

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6491 added

#2 Updated by Justin Sherrill over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Brad Buckingham over 4 years ago

  • Target version set to 147

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 188

Also available in: Atom PDF