Hide Forgot
Description of problem: At some circumstances (not clear by the time of filing this bug), the upgrade to 6.3 can fail with the following error in migrate_foreman step; [DEBUG 2018-02-24 10:05:07 main] API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache. [DEBUG 2018-02-24 10:05:22 main] rake aborted! [DEBUG 2018-02-24 10:05:22 main] can't modify frozen Array [DEBUG 2018-02-24 10:05:22 main] /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58/lib/katello/engine.rb:147:in `block in <class:Engine>' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!' [DEBUG 2018-02-24 10:05:22 main] /opt/rh/rh-ror42/root/usr/share/gems/gems/railties- Version-Release number of selected component (if applicable): 6.3.0 How reproducible: Reproduced at one user, works locally or with other users
I was only able to reproduce, when moving the 'katello.paths' to happen after `sooner_routes_load` initializer. The possible fix should be patching katello package to enforce `:before => :sooner_routes_load` for the initializer. The difference could be caused by some non-standard plugin being present in the system.
Created attachment 1401245 [details] A possible patch to mitigate the issue To apply: cd /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.58 patch -p1 < ~/katello.patch Run foreman-rake db:migrate and continue with the upgrade, if successful
Created redmine issue http://projects.theforeman.org/issues/22743 from this bug
Fix proposed upstream https://github.com/Katello/katello/pull/7217
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/22743 has been resolved.
Build : Satellite 6.3.1 snap1 Did a no-break satellite upgrade testing and the fix is present in satellite at /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5.*/lib/katello/engine.rb The Upgrade was Successful from 6.2.14 to 6.3.1 and also from 6.3.0 to 6.3.1 Marking the BZ to Verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:1126