Bug 1892599

Summary: foreman-rake katello:reimport fails
Product: Red Hat Satellite Reporter: Tomer Brisker <tbrisker>
Component: InfrastructureAssignee: Chris Roberts <chrobert>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: egolov, inecas, pcreech
Target Milestone: 6.8.1Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.16.0.13-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-23 17:13:53 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 Tomer Brisker 2020-10-29 09:52:14 UTC
If i try to execute foreman-rake katello:reimport it fails with the following message.

<pre>
#> foreman-rake katello:reimport
Rubocop not loaded.
Rubocop not loaded.
{:services=>
  {:pulp=>{:status=>"ok", :duration_ms=>"332"},
   :pulp_auth=>{:status=>"ok", :duration_ms=>"202"},
   :candlepin=>{:status=>"ok", :duration_ms=>"736"},
   :candlepin_auth=>{:status=>"ok", :duration_ms=>"102"},
   :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=>"FAIL", :message=>"Not running", :duration_ms=>"8"},
   :candlepin_events=>
    {:status=>"ok", :message=>"0 Processed, 0 Failed", :duration_ms=>"0"}},
 :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.16.1.2/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:reimport => katello:check_ping
(See full trace by running task with --trace)

</pre>

Comment 1 Tomer Brisker 2020-10-29 09:52:19 UTC
Created from redmine issue https://projects.theforeman.org/issues/31110

Comment 2 Tomer Brisker 2020-10-29 09:52:22 UTC
Upstream bug assigned to chrobert

Comment 6 Lukas Pramuk 2020-11-11 23:03:49 UTC
VERIFIED.

@Satellite 6.8.1 Snap1
tfm-rubygem-katello-3.16.0.13-1.el7sat.noarch

by the following manual reproducer:

# foreman-rake katello:reimport
Importing Katello::Subscription
Importing Katello::Pool
Importing Katello::ContentViewPuppetEnvironment
Importing Katello::Content
Importing Katello::DockerManifest
Importing Katello::DockerManifestList
Importing Katello::DockerTag
Importing Katello::FileUnit
Importing Katello::OstreeBranch
Importing Katello::PuppetModule
Importing Katello::Rpm
Importing Katello::ModuleStream
Importing Katello::Erratum
Importing Katello::PackageGroup
Importing Katello::YumMetadataFile
Importing Katello::Srpm
Importing Activation Key Subscriptions
Importing Linked Repositories

>>> rake task katello:reimport runs successfully

Comment 11 errata-xmlrpc 2020-11-23 17:13:53 UTC
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 (Satellite 6.8.1 Async Bug Fix Update), 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-2020:5180