Promoting content view failed with "NoMethodError: undefined method `get_status' for nil:NilClass"

Solution Verified - Updated -

Issue

Promoting a Content View ends with a warning as below:

Error:

NoMethodError

undefined method `get_status' for nil:NilClass
---
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.26/app/models/katello/host/content_facet.rb:230:in
  `update_errata_status'"
- "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.16.0.26/app/lib/actions/katello/content_view/promote_to_environment.rb:50:in
  `block in finalize'"

Environment

Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In