Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1695811 - Upgrade from 6.3 to 6.4.3 snap 1 failed at katello:upgrades:3.6:import_product_content
Summary: Upgrade from 6.3 to 6.4.3 snap 1 failed at katello:upgrades:3.6:import_produc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.4.2
Hardware: All
OS: All
high
urgent
Target Milestone: 6.4.3
Assignee: satellite6-bugs
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-03 18:46 UTC by Nikhil Kathole
Modified: 2019-10-30 17:14 UTC (History)
8 users (show)

Fixed In Version: tfm-rubygem-katello-3.7.0.55-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-30 16:35:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4095781 0 Upgrade None Satellite upgrade to 6.4.3 failed with `NoMethodError: undefined method `import_product_content' for Katello::Glue::Cand... 2019-04-30 13:51:00 UTC
Red Hat Product Errata RHBA-2019:0913 0 None None None 2019-04-30 16:35:32 UTC

Description Nikhil Kathole 2019-04-03 18:46:46 UTC
Description of problem: 

Upgrade from 6.3 to 6.4.3 snap 1 failed at katello:upgrades:3.6:import_product_content

Upgrade Step: import_product_content (this may take a while) ...
 /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
 /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
 /usr/share/foreman/lib/core_extensions.rb:182: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::ERRATA_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: previous definition of ERRATA_STATUS_MAP was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::TRACE_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: previous definition of TRACE_STATUS_MAP was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SUBSCRIPTION_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: previous definition of SUBSCRIPTION_STATUS_MAP was here
 rake aborted!
 NoMethodError: undefined method `import_product_content' for Katello::Glue::Candlepin::Product:Module
 Did you mean?  import_from_cp
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/content.rb:41:in `block (2 levels) in import_all'
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/content.rb:35:in `block in import_all'
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/app/models/katello/content.rb:34:in `import_all'
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.54/lib/katello/tasks/upgrades/3.6/import_product_content.rake:8:in `block (4 levels) in <top (required)>'
 /opt/rh/rh-ruby24/root/usr/share/gems/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
 Tasks: TOP => katello:upgrades:3.6:import_product_content
 (See full trace by running task with --trace)
 foreman-rake katello:upgrades:3.6:import_product_content failed! Check the output for error!
 Upgrade step import_product_content failed. Check logs for more information.
                                       [FAIL]
 Failed executing LANG=en_US.utf-8 satellite-installer --upgrade, exit status 1
 --------------------------------------------------------------------------------
 Scenario [Migration scripts to Satellite 6.4] failed.


Version-Release number of selected component (if applicable):
Satellite 6.4.3 snap 1


How reproducible:
always

Steps to Reproduce:
1. foreman-maintain upgrade run --target-version 6.4 -y

Actual results:
Upgrade failed with error:

NoMethodError: undefined method `import_product_content' for Katello::Glue::Candlepin::Product:Module
Did you mean?  import_from_cp


Expected results:
Successful upgrade.

Additional info:

Comment 8 Nikhil Kathole 2019-04-09 13:55:52 UTC
VERIFIED

Version tested:
Satellite 6.4.3 snap 2

Upgrade Step: import_product_content (this may take a while) ...
 /usr/share/foreman/lib/foreman.rb:8: warning: already initialized constant Foreman::UUID_REGEXP
 /usr/share/foreman/lib/foreman.rb:8: warning: previous definition of UUID_REGEXP was here
 /usr/share/foreman/lib/core_extensions.rb:182: warning: already initialized constant ActiveSupport::MessageEncryptor::DEFAULT_CIPHER
 /opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/message_encryptor.rb:22: warning: previous definition of DEFAULT_CIPHER was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::ERRATA_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/content_facet_host_extensions.rb:7: warning: previous definition of ERRATA_STATUS_MAP was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: already initialized constant Katello::Concerns::ContentFacetHostExtensions::TRACE_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/content_facet_host_extensions.rb:14: warning: previous definition of TRACE_STATUS_MAP was here
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: already initialized constant Katello::Concerns::SubscriptionFacetHostExtensions::SUBSCRIPTION_STATUS_MAP
 /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0.55/app/models/katello/concerns/subscription_facet_host_extensions.rb:13: warning: previous definition of SUBSCRIPTION_STATUS_MAP was here
 foreman-rake katello:upgrades:3.6:import_product_content finished successfully!

Comment 14 errata-xmlrpc 2019-04-30 16:35:30 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, 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-2019:0913


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