Project

General

Profile

Actions

Bug #30461

closed

Upgraded Satellite has duplicated katello_pools indexes

Added by Jonathon Turel almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Low
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1858237

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:

  1. 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)

Actions #1

Updated by Jonathon Turel almost 4 years ago

  • Priority changed from High to Low
  • Target version set to Katello 3.16.0
Actions #2

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Jonathon Turel
  • Pull request https://github.com/Katello/katello/pull/8847 added
Actions #3

Updated by Chris Roberts almost 4 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases Katello 3.18.0 added
Actions #5

Updated by Jonathon Turel almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF