Actions
Bug #38234
openpost-hook 'rake upgrade:run' fails
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
I see the post-hook that runs rake upgrade:run
fail reliably.
It happens when it runs the katello:correct_repositories
-task (if the task has to start-tasks on one or more repositories):
2025-02-21T15:00:09 [W|app|] Failed upgrade task: katello:correct_repositories 2025-02-21T15:00:09 [I|app|] Backtrace for 'Failed upgrade task: katello:correct_repositories' error (RuntimeError): The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer | /usr/share/gems/gems/dynflow-1.9.0/lib/dynflow/rails.rb:79:in `world' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:20:in `trigger' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:26:in `block in trigger_task' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:46:in `block in rails_safe_trigger_task' | /usr/share/gems/gems/activesupport-7.0.8.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares' | /usr/share/gems/gems/activesupport-7.0.8.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:45:in `rails_safe_trigger_task' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:24:in `trigger_task' | /usr/share/gems/gems/foreman-tasks-10.0.2/lib/foreman_tasks.rb:55:in `sync_task' | /usr/share/gems/gems/katello-4.16.0.pre.master/lib/katello/tasks/repository.rake:109:in `handle_missing_repo' | /usr/share/gems/gems/katello-4.16.0.pre.master/lib/katello/tasks/repository.rake:42:in `block (3 levels) in <top (required)>' ...
The task can still be run manually with foreman-rake katello:correct_repositories COMMIT=true
No data to display
Actions