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 1335148

Summary: api call made by virt-who attempts to update facts of hypervisor
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Content ManagementAssignee: Tom McKay <tomckay>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: abalakht, bbuckingham, bkearney, cwelton, hsun, shihliu, sreber
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.34-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 10:59:57 UTC Type: ---
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: 1115190    

Description Tom McKay 2016-05-11 12:35:12 UTC
virt-who error output
<pre>
ERROR: Error in communication with subscription manager, trying to recover:
Traceback (most recent call last):
  File "/usr/share/virt-who/virt-who.py", line 194, in _send
    self.subscriptionManager.sendVirtGuests(virtualGuests)
</pre>

katello log
<pre>
2016-05-11T08:18:18 [katello/cp_proxy] [E] NoMethodError: undefined method `[]=' for nil:NilClass
 | /home/vagrant/code/katello/app/models/katello/host/subscription_facet.rb:75:in `update_facts'
 | /home/vagrant/code/katello/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:246:in `block in facts'
 | /home/vagrant/code/foreman/app/models/concerns/foreman/thread_session.rb:72:in `as'
</pre>

Comment 1 Tom McKay 2016-05-11 12:35:16 UTC
Created from redmine issue http://projects.theforeman.org/issues/15002

Comment 2 Tom McKay 2016-05-11 12:35:19 UTC
Upstream bug assigned to tomckay

Comment 3 Tom McKay 2016-05-11 12:37:58 UTC
Introduced, I think, by fix for #1328513. This bz should be aligned with that one for release purposes.

https://bugzilla.redhat.com/show_bug.cgi?id=1328513

Comment 5 Bryan Kearney 2016-05-12 14:17:28 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15002 has been closed

Comment 6 Tom McKay 2016-05-20 12:47:58 UTC
This is apparently needed in 6.2 and blocks virt-who.

Comment 9 Tom McKay 2016-05-24 16:36:38 UTC
*** Bug 1337398 has been marked as a duplicate of this bug. ***

Comment 10 Eko 2016-05-27 08:49:58 UTC
Verified!
can't reproduce this issue with Satellite-6.2.0-RHEL-6-20160525.0

Comment 11 Bryan Kearney 2016-07-27 10:59:57 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-2016:1501