Upgrade to Red Hat Satellite 6.11 fails with message 'PG::UniqueViolation: ERROR: could not create unique index "index_insights_rules_on_rule_id"'
Issue
Red Hat Satellite upgradeto6.11from Satellite6.10fails with below error
2023-01-10 08:59:05 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-
rake-db:migrate]/returns:
2023-01-10 08:59:05 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-
rake-db:migrate]/returns: PG::UniqueViolation: ERROR: could not create unique index
"index_insights_rules_on_rule_id"
2023-01-10 08:59:05 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-
rake-db:migrate]/returns: DETAIL: Key (rule_id)=
(crashkernel_reservation_value|CRASHKERNEL_RECOMMENDED_VALUE_V2) is duplicated.
2023-01-10 08:59:05 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-
rake-db:migrate]/returns: /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-
6.0.4.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:92:in `async_exec'
Environment
- Red Hat Satellite 6.10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.