Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1342386

Summary: Upgrade: [E] undefined method `import_data' for nil:NilClass (NoMethodError)
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: UpgradesAssignee: Tom McKay <tomckay>
Status: CLOSED DUPLICATE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bkearney, tbrisker, tomckay
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-06 13:29:36 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:
Bug Depends On:    
Bug Blocks: 1335807    
Attachments:
Description Flags
complete exception
none
foreman-debug logs none

Description Sachin Ghai 2016-06-03 07:13:47 UTC
Description of problem:
I got following exception in production.log when sat6.1.9 -> 6.2 GA snap14.2 upgrade was running with installer step:

==> /var/log/foreman/production.log <==
2016-06-03 02:46:14 [foreman-tasks/dynflow] [I] start terminating throttle_limiter...
2016-06-03 02:46:14 [foreman-tasks/dynflow] [I] start terminating client dispatcher...
2016-06-03 02:46:14 [foreman-tasks/dynflow] [I] stop listening for new events...
2016-06-03 02:46:14 [foreman-tasks/dynflow] [I] start terminating clock...
2016-06-03 02:46:24 [foreman-tasks/action] [E] undefined method `import_data' for nil:NilClass (NoMethodError)
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/candlepin/import_pool_handler.rb:48:in `import_or_remove_pool'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/candlepin/import_pool_handler.rb:35:in `handle'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/candlepin/listen_on_candlepin_events.rb:214:in `on_event'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/candlepin/listen_on_candlepin_events.rb:183:in `act_on_event'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.42/app/lib/actions/candlepin/listen_on_candlepin_events.rb:90:in `block in run'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in `block in assigns'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `tap'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `assigns'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in `match_value'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in `block in match?'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `each'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `match?'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in `match'


Please note that upgrade was completed successfully but with above exception in production.log

Version-Release number of selected component (if applicable):

sat6.1.9 -> 6.2 GA snap14.2 upgrade

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
No silent exception should be raised in logs while performing upgrade.


Additional info:

Comment 1 Sachin Ghai 2016-06-03 07:15:11 UTC
Created attachment 1164357 [details]
complete exception

Comment 2 Sachin Ghai 2016-06-03 07:22:08 UTC
Created attachment 1164358 [details]
foreman-debug logs

Comment 4 Sachin Ghai 2016-06-03 08:35:07 UTC
Reproducible version:
-----------------------
upgrade from sat6.1.9 -> sat6.2 GA snap14.1 on rhel7. 
Rpm version is 14.2

satellite-6.2.0-14.2.el7sat.noarch

Comment 5 Tomer Brisker 2016-06-05 14:41:04 UTC
Looks like this should be fixed by the same fix as BZ 1340252 and has to do with guest subs on VDC. 
Assigning to Tom who fixed the other bug to confirm this is indeed the same issue, if it is please close as DUP.

Comment 8 Bryan Kearney 2016-06-06 13:29:36 UTC

*** This bug has been marked as a duplicate of bug 1340252 ***