Bug 1770044
| Summary: | foreman-rake katello:reimport fails with 'NoMethodError: undefined method `pulp2_service_class' for nil:NilClass' | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | matt jia <mjia> | |
| Component: | Content Management | Assignee: | Samir Jha <sajha> | |
| Status: | CLOSED ERRATA | QA Contact: | Lai <ltran> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 6.6.0 | CC: | ehelms, jalviso, janarula, ktordeur, mmccune, momran, pcreech, vsedmik | |
| Target Milestone: | 6.7.0 | Keywords: | Regression, Triaged | |
| Target Release: | Unused | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | rubygem-katello-3.14.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1771555 1791880 (view as bug list) | Environment: | ||
| Last Closed: | 2020-04-14 13:26:24 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
Created redmine issue http://projects.theforeman.org/issues/28223 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28223 has been resolved. Steps to retest: run `foreman-rake katello:reimport` Expected: # foreman-rake katello:reimport Importing Katello::Erratum Importing Katello::PackageGroup Importing Katello::PuppetModule Importing Katello::Rpm Importing Katello::Srpm Importing Katello::ModuleStream Importing Katello::YumMetadataFile Importing Katello::FileUnit Importing Katello::Subscription Importing Katello::Pool Importing Katello::DockerManifest Importing Katello::DockerManifestList Importing Katello::DockerTag Importing Katello::ContentViewPuppetEnvironment Importing Katello::Content Importing Katello::OstreeBranch Importing Activation Key Subscriptions Actual: # foreman-rake katello:reimport Importing Katello::Erratum Importing Katello::PackageGroup Importing Katello::PuppetModule Importing Katello::Rpm Importing Katello::Srpm Importing Katello::ModuleStream Importing Katello::YumMetadataFile Importing Katello::FileUnit Importing Katello::Subscription Importing Katello::Pool Importing Katello::DockerManifest Importing Katello::DockerManifestList Importing Katello::DockerTag Importing Katello::ContentViewPuppetEnvironment Importing Katello::Content Importing Katello::OstreeBranch Importing Activation Key Subscriptions Tested on 6.7.0_07 Marking issue as 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/RHSA-2020:1454 |
Description of problem: foreman-rake katello:reimport no longer works. Version-Release number of selected component (if applicable): 6.6 How reproducible: easy Steps to Reproduce: run `foreman-rake katello:reimport` Actual results: It fails with below traceback: foreman-rake katello:reimport Importing Katello::Erratum Importing Katello::PackageGroup Importing Katello::PuppetModule Importing Katello::Rpm Importing Katello::Srpm Importing Katello::ModuleStream Importing Katello::YumMetadataFile Importing Katello::Deb rake aborted! NoMethodError: undefined method `pulp2_service_class' for nil:NilClass /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/models/katello/concerns/smart_proxy_extensions.rb:180:in `content_service' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/app/models/katello/concerns/pulp_database_unit.rb:61:in `import_all' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/lib/katello/tasks/reimport.rake:41:in `block (3 levels) in <top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/lib/katello/tasks/reimport.rake:39:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/lib/katello/tasks/reimport.rake:39: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 Expected results: It should complete successfully without the error. Additional info: To workaround the issue, comment out below line in /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.12.0.27/lib/katello/tasks/reimport.rake models = [Katello::Erratum, Katello::PackageGroup, Katello::PuppetModule, Katello::Rpm, Katello::Srpm, Katello::ModuleStream, Katello::YumMetadataFile, #Katello::Deb, ...