Publishing content view tasks fails with error: NoMethodError undefined method `get_status' for nil:NilClass
Issue
-
Due to the orphaned content facet present in the backend DB, promoting or publishing a Content View ends with a warning as below:
329: Actions::Katello::ContentView::Publish (skipped) [ 0.33s / 0.33s ] Error: NoMethodError undefined method `get_status' for nil:NilClass - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/models/katello/host/content_facet.rb:207:in `update_errata_status'" - "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.60/app/lib/actions/katello/content_view/publish.rb:120:in `block in finalize'" "/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.7/lib/active_record/relation/delegation.rb:87:in `each'"
Environment
- RedHat Satellite 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.