Project

General

Profile

Bug #25562

No Product View after Katello Update 3.8 -> 3.9

Added by Zach Huntington-Meath over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

This is a bug from a user who posted about it on the community discourse: https://community.theforeman.org/t/no-product-view-after-katello-update-3-8-3-9/11968

Problem:
After having updated Katello from 3.8 to 3.9, the Content -> Products View has gone AWOL. I just get an empty screen with no error message.

Running hammer product list fails as well:

# hammer product list
undefined method `tasks' for nil:NilClass

Expected outcome:
Being able to list products using UI or with hammer.

Foreman and Proxy versions:
1.20

Foreman and Proxy plugin versions:
Katello 3.9

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)

2018-11-27T14:07:06 [I|app|] Started GET "/katello/api/organizations/1/products?page=1&per_page=1000" for 192.168.98.100 at 2018-11-27 14:07:06 +0100
2018-11-27T14:07:06 [I|app|04957] Processing by Katello::Api::V2::ProductsController#index as JSON
2018-11-27T14:07:06 [I|app|04957]   Parameters: {"page"=>"1", "per_page"=>"1000", "api_version"=>"v2", "organization_id"=>"1", "product"=>{}}
2018-11-27T14:07:06 [I|app|04957] Authorized user admin(Admin User)
2018-11-27T14:07:06 [I|app|04957] Current user set to admin (admin)
2018-11-27T14:07:07 [I|app|04957]   Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/views/katello/api/v2/products/index.json.rabl within katello/api/v2/layouts/collection
2018-11-27T14:07:07 [I|app|04957]   Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/views/katello/api/v2/products/index.json.rabl within katello/api/v2/layouts/collection (75.9ms)
2018-11-27T14:07:07 [E|app|04957] ActionView::Template::Error: undefined method `tasks' for nil:NilClass
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/models/katello/sync_plan.rb:121:in `next_sync_date'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.9.0/app/models/katello/sync_plan.rb:125:in `next_sync'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/helpers.rb:16:in `data_object_attribute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:140:in `attribute'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:114:in `block in compile_settings'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:113:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:113:in `compile_settings'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:53:in `block in to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:248:in `cache_results'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:49:in `to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:86:in `to_hash'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:48:in `block in render'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:380:in `cache_results'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/engine.rb:47:in `render'
/usr/share/foreman/config/initializers/rabl_init.rb:49:in `render'
/opt/theforeman/tfm/root/usr/share/gems/gems/rabl-0.13.1/lib/rabl/builder.rb:124:in `block (2 levels) in merge_engines_into_result'

Associated revisions

Revision d1005da0 (diff)
Added by Samir Jha over 3 years ago

Fixes #25562 - Product rendering issue when no recurring logic

History

#1 Updated by Samir Jha over 3 years ago

  • Assignee set to Samir Jha

#2 Updated by The Foreman Bot over 3 years ago

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

#3 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Samir Jha over 3 years ago

  • Triaged changed from No to Yes
  • Target version changed from Katello 3.9.1 to Katello 3.9.0

#5 Updated by Zach Huntington-Meath over 3 years ago

  • Target version changed from Katello 3.9.0 to Katello 3.9.1

#6 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/Katello/katello/pull/7855 added

#7 Updated by Jonathon Turel over 3 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/7855)

#8 Updated by Zach Huntington-Meath over 3 years ago

  • Target version changed from Katello 3.9.1 to Katello 3.9.2

#9 Updated by Zach Huntington-Meath over 3 years ago

  • Target version changed from Katello 3.9.2 to Katello 3.9.1

Also available in: Atom PDF