In Katello 4.1 upgrade, installer failed with exit status 6 in the db:migrate stage.
Description of problem: In the Katello 4.1 upgrade, installer failed with exit status 6 in the db:migrate stage.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Upgrade to Katello 4.1 with a Katello server that has a repository with an arch of something other than 'noarch' and whose content has a url without '$basearch' in it. Meeting those criteria triggers the migration bug.
stage.the/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 
foreman-rake-db:migrate failed in the installer
foreman-rake-db:migrate should be completed successfully.