Actions
Bug #17628
closedincremental update fails with "NoMethodError: undefined method `each' for #<Katello::KTEnvironment:>"
Status:
Closed
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
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'
Actions