Bug 1959888

Summary: `foreman-rake katello:correct_repositories` fails with the error message The Dynflow world was not initialized yet
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Devendra Singh <desingh>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.9.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-12 15:04:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anand Agrawal 2021-05-12 14:08:33 UTC
Description of problem:
foreman-rake katello:correct_repositories
{:services=>
  {:candlepin=>{:status=>"ok", :duration_ms=>"22"},
   :candlepin_auth=>{:status=>"ok", :duration_ms=>"30"},
   :foreman_tasks=>
    {:status=>"FAIL",
     :message=>
      "The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer"},
   :katello_events=>
    {:status=>"ok", :message=>"38 Processed, 0 Failed", :duration_ms=>"0"},
   :candlepin_events=>
    {:status=>"ok", :message=>"71 Processed, 0 Failed", :duration_ms=>"0"},
   :pulp=>{:status=>"ok", :duration_ms=>"78"},
   :pulp_auth=>{:status=>"ok", :duration_ms=>"45"}},
 :status=>"FAIL"}
rake aborted!
Not all the services have been started. Check the status report above and try again.
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.22/lib/katello/tasks/reimport.rake:10:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:correct_repositories => katello:check_ping
(See full trace by running task with --trace)


Version-Release number of selected component (if applicable):

6.9

How reproducible:
Always

Steps to Reproduce:
1. execute the command `foreman-rake katello:correct_repositories`
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anand Agrawal 2021-05-12 15:04:33 UTC

*** This bug has been marked as a duplicate of bug 1959901 ***