Project

General

Profile

Bug #22044

ISE when publishing a composite with cv containing puppet content

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

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

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

Actual:
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 (diff)
Added by Partha Aji 11 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

History

#1 Updated by Brad Buckingham 12 months ago

  • Target version changed from 240 to 242

#2 Updated by Justin Sherrill 11 months ago

  • Legacy Backlogs Release (now unused) set to 284
  • Priority changed from Normal to Urgent
  • Assignee set to Partha Aji

#3 Updated by The Foreman Bot 11 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 11 months ago

  • Target version changed from 242 to 245

#5 Updated by Eric Helms 10 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF