Upgrade to Red Hat Satellite 6.12 fails on db:migrate step to apply the RemoveDrpmFromIgnorableContent migration
Issue
-
Upgrade to Red Hat Satellite 6.12 fails on the
db:migrate
step.2022-11-23 16:01:03 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2022-11-23 16:01:52 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2022-11-23 16:01:52 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]
-
Manual execution of the
db:migrate
action shows the following error trace.# foreman-rake db:migrate --trace --verbose ... ... ** Execute db:migrate == 20220228173251 RemoveDrpmFromIgnorableContent: migrating =================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: Validation failed: Ignorable content Invalid value specified for ignorable content. Permissible values srpm ... ... /usr/share/gems/gems/katello-4.5.0.20/db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb:5:in `block in up' /usr/share/gems/gems/katello-4.5.0.20/db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb:3:in `each' /usr/share/gems/gems/katello-4.5.0.20/db/migrate/20220228173251_remove_drpm_from_ignorable_content.rb:3:in `up' ... ...
Environment
- Red Hat Satellite 6.12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.