Bug #22044

ISE when publishing a composite with cv containing puppet content

Added by Partha Aji 5 months ago. Updated 4 months ago.

Assigned To:Partha Aji
Category:Content Views
Target version:Team Brad - Iteration 27
Difficulty: Pull request:https://github.com/Katello/katello/pull/7165
Bugzilla link: Found in Katello release:
Story points-
Velocity based estimate-
ReleaseKatello 3.6.0Release relationshipAuto


1) Publish a CV with puppet modules
2) Publish a composite containing a version of the above CV
Successful Publish

ISE ->

2017-12-19T09:11:07 50c3c3ec [app] [D] With body: {"displayMessage":"undefined method `flatten' for
#\u003cKatello::PuppetModule::ActiveRecord_Relation:0x00000008ef9e50\u003e","errors":["undefined method `flatten' for #\u003cKatello::PuppetModule::ActiveRecord_Relation:0x00000008ef9e50\u003e"]}

Stack Trace:

2017-12-19T09:11:07 50c3c3ec [app] [E] NoMethodError: undefined method `flatten' for #<Katello::PuppetModule::ActiveRecord_Relation:0x00000008ef9e50>
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-5.0.6/lib/active_record/relation/delegation.rb:124:in `method_missing'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-5.0.6/lib/active_record/relation/delegation.rb:94:in `method_missing'
 | /home/vagrant/katello/app/models/katello/puppet_module.rb:63:in `group_by_repoid'
 | /home/vagrant/katello/app/models/katello/content_view.rb:528:in `computed_module_ids_by_repoid'
 | /home/vagrant/katello/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb:10:in `plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.34/lib/dynflow/action.rb:473:in `block (3 levels) in execute_plan'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:26:in `call'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.34/lib/dynflow/middleware/stack.rb:26:in `pass'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/dynflow-0.8.34/lib/dynflow/middleware.rb:18:in `pass'
 | /home/vagr

Associated revisions

Revision 17159892
Added by Partha Aji 4 months ago

Fixes #22044 - fies CV with puppet publish

Due a rails 5.1 change. Publishing a content view with a puppet module
in it caused an ISE. This commit corrects that


#1 Updated by Brad Buckingham 5 months ago

  • Target version changed from Team Brad - Iteration 25 to Team Brad - Iteration 26

#2 Updated by Justin Sherrill 4 months ago

  • Release set to Katello 3.6.0
  • Priority changed from Normal to Urgent
  • Assigned To set to Partha Aji

#3 Updated by The Foreman Bot 4 months ago

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

#4 Updated by Brad Buckingham 4 months ago

  • Target version changed from Team Brad - Iteration 26 to Team Brad - Iteration 27

#5 Updated by Eric Helms 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF