Bug 1892599 - foreman-rake katello:reimport fails
Summary: foreman-rake katello:reimport fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Infrastructure
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.8.1
Assignee: Chris Roberts
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-29 09:52 UTC by Tomer Brisker
Modified: 2020-11-23 17:14 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-katello-3.16.0.13-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-23 17:13:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31110 0 High Closed foreman-rake katello:reimport fails 2021-02-01 11:14:36 UTC
Red Hat Product Errata RHBA-2020:5180 0 None None None 2020-11-23 17:14:05 UTC

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


Note You need to log in before you can comment on or make changes to this bug.