Bug 1339782

Summary: running virt-who while a guest has a temporary subscription gives undefined method `[]=' for nil:NilClass
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Subscription ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED WORKSFORME QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, cwelton, erik-fedora
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-12-12 15:00:12 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:

Description Tom McKay 2016-05-25 20:50:36 UTC
To reproduce...

1. assign a temporary guest subscription to a VM that has not yet been reported by virt-who
2. run virt-who

app [D] message received from subscriptions queue 
app [D] message subject: entitlement.deleted
app [D] Setting current user thread-local variable to foreman_admin
foreman-tasks/action undefined method `import_data' for nil:NilClass (NoMethodError)
 | /home/vagrant/code/katello/app/lib/actions/candlepin/import_pool_handler.rb:48:in `import_or_remove_pool'
 | /home/vagrant/code/katello/app/lib/actions/candlepin/import_pool_handler.rb:35:in `handle'
 | /home/vagrant/code/katello/app/lib/actions/candlepin/listen_on_candlepin_events.rb:189:in `on_event'