Description of problem: I upgraded a Satellite from 6.7.2 to 6.8 snap 9.0 and it has duplicate indexes on katello_pools: # su - postgres -c "psql -d foreman -c 'SELECT indrelid::regclass AS TableName,array_agg(indexrelid::regclass) AS Indexes FROM pg_index GROUP BY indrelid,indkey HAVING COUNT(*) > 1;;'" tablename | indexes ---------------+----------------------------------------------------- katello_pools | {index_katello_pools_on_cp_id,index_pools_on_cp_id} (1 row) How reproducible: Deterministic Steps to Reproduce: 1. Upgrade Satellite 2. # su - postgres -c "psql -d foreman -c 'SELECT indrelid::regclass AS TableName,array_agg(indexrelid::regclass) AS Indexes FROM pg_index GROUP BY indrelid,indkey HAVING COUNT(*) > 1;;'" Actual results: Duplicate indexes on katello_pools Expected results: No duplicate indexes (empty output)
I'm not aware of any.
Created redmine issue https://projects.theforeman.org/issues/30461 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30461 has been resolved.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.8 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4366