Reindexing of foreman database fails with error`could not create unique index "index_katello_installed_packages_on_nvrea"`after the in-place OS upgrade of Satellite 6.11 to RHEL 8

Solution Verified - Updated -

Issue

  • After performing the in-place OS upgrade of the Red Hat Satellite 6.11 server from RHEL 7 to 8, the attempt of reindexing all the databases as per the upgrade guide, runs into one or both of the following errors:

    Reindexing katello_installed_packages
    ERROR:  could not create unique index "index_katello_installed_packages_on_nvrea"
    DETAIL:  Key (nvrea)=(openblas-threads64-0.3.15-6.el8.x86_64) is duplicated. 
    

Environment

  • Red Hat Satellite 6.11

    • Being converted from RHEL 7 to RHEL 8 or being migrated to RHEL 8.

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