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 - Upgrade: [E] undefined method `import_data' for nil:NilClass (NoMethodError)
Summary: Upgrade: [E] undefined method `import_data' for nil:NilClass (NoMethodError)
Keywords:
Status: CLOSED DUPLICATE of bug 1340252
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks: 1335807
TreeView+ depends on / blocked
 
Reported: 2016-06-03 07:13 UTC by Sachin Ghai
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-06 13:29:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
complete exception (12.11 KB, text/plain)
2016-06-03 07:15 UTC, Sachin Ghai
no flags Details
foreman-debug logs (1.10 MB, application/x-xz)
2016-06-03 07:22 UTC, Sachin Ghai
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1340252 0 unspecified CLOSED removing a vdc subscription causes candlepin listener to fail as the guest subs are removed too 2021-02-22 00:41:40 UTC

Internal Links: 1340252

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 ***


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