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