Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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: VERIFIED
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Upgrades
Version: 6.4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high vote
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-04-09 13:55 UTC (History)
3 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:
Target Upstream Version:


Attachments (Terms of Use)

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!


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