All Hosts page displays the error "comparison of NilClass with String failed"

Solution Verified - Updated -

Issue

  • Showing all Hosts fails with 'comparison of NilClass with String failed' error.
  • Sending some OpenSCAP reports previously.
  • Failed to delete host with the following error:
Could not delete the host:
  PG::ForeignKeyViolation: ERROR:  update or delete on table "hosts" violates foreign key constraint "host_status_hosts_host_id_fk" on table "host_status"
  DETAIL:  Key (id)=(host_status_id) is still referenced from table "host_status".

Environment

  • Red Hat Satellite 6.9.3 (probably other releases affected as well)

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content