Actions
Bug #28767
closedInstaller can fail at apipie:cache:index step due to race condition with plugin role loading`
Description
The error we see in nightly test runs transiently:
[ WARN 2020-01-14T16:32:53 main] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: [ WARN 2020-01-14T16:32:53 main] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: Caused by: [ WARN 2020-01-14T16:32:53 main] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_roles_on_name" [ WARN 2020-01-14T16:32:53 main] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: DETAIL: Key (name)=(Tasks Manager) already exists. [ WARN 2020-01-14T16:32:53 main] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]/returns: /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:603:in `async_exec'
Actions