python-rhsm crashes when calling method hypervisorCheckIn with empty host_guest_mapping dictionary. Traceback (most recent call last): File "./virt-who.py", line 193, in _send result = self.subscriptionManager.hypervisorCheckIn(self.options.owner, self.options.env, virtualGuests) File "/home/radek/vAgent/virt-who/subscriptionmanager.py", line 92, in hypervisorCheckIn return self.connection.hypervisorCheckIn(owner, env, mapping) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 590, in hypervisorCheckIn return self.conn.request_post(url, host_guest_mapping) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 403, in request_post return self._request("POST", method, params) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 362, in _request self.validateResponse(result) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 387, in validateResponse raise RestlibException(response['status'], error_msg) RestlibException: Runtime Error java.io.EOFException: No content to map to Object due to end of input at org.codehaus.jackson.map.ObjectMapper._initForReading:2,766 python-rhsm-1.0.6-1.el5
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
commit fae4fbcb5d67f167f6115a79bfaf68a3a6976b2b Author: Michael Stead <mstead> AuthorDate: Tue Oct 9 12:20:10 2012 -0300 Commit: Michael Stead <mstead> CommitDate: Tue Oct 9 13:36:25 2012 -0300
Verified the issue, the result is pass. Moving the bug to Verified. version: python-rhsm-1.0.10-1.el5.x86_64.rpm candlepin-0.7.2-1.fc16 virt-who-0.7-4.el5 subscription-manager-1.0.14-1.el5 1. prepare one virt-who OS, that installed the latest python-rhsm [root@localhost rhsm]# rpm -Uvh python-rhsm-1.0.10-1.el5.x86_64.rpm Preparing... ########################################### [100%] 1:python-rhsm ########################################### [100%] 2. connect the virt-who to Vcenter that has no host on it. 3. start virt-who service [root@localhost rhsm]# >/var/log/rhsm/rhsm.log [root@localhost rhsm]# service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: [ OK ] [root@localhost rhsm]# tail -f /var/log/rhsm/rhsm.log 2012-10-07 16:24:23,849 [WARNING] @virt-who.py:413 - Listening for events is not available in VDSM or ESX mode 2012-10-07 16:24:31,742 [DEBUG] @virt-who.py:428 - Virt-who is running in esx mode 2012-10-07 16:24:31,742 [DEBUG] @virt-who.py:435 - Starting infinite loop with 3600 seconds interval and event handling 2012-10-07 16:24:31,795 [DEBUG] @subscriptionmanager.py:89 - Sending update in hosts-to-guests mapping: {}
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. http://rhn.redhat.com/errata/RHBA-2013-0039.html