The virt-who fails to report guests and hosts mapping on Subscription Asset Manager with error 'undefined local variable or method `hypervisor''

Solution Unverified - Updated -

Issue

  • The virt-who fails to report guests and hosts mapping with error as below,
# less /var/log/rhsm/rhsm.log
[ERROR]  @virt-who.py:206 - Error in communication with subscription manager, trying to recover:
Traceback (most recent call last):
  File "/usr/share/virt-who/virt-who.py", line 190, in _send
    result = self.subscriptionManager.hypervisorCheckIn(self.options.esx_owner, self.options.esx_env, virtualGuests)
  File "/usr/share/virt-who/subscriptionmanager.py", line 92, in hypervisorCheckIn
    return self.connection.hypervisorCheckIn(owner, env, mapping)
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 678, in hypervisorCheckIn
    return self.conn.request_post(url, host_guest_mapping)
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 484, in request_post
    return self._request("POST", method, params)
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 443, in _request
    self.validateResponse(result)
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 468, in validateResponse
    raise RestlibException(response['status'], error_msg)
RestlibException: undefined local variable or method `hypervisor' for #<Class:0x000000053cbb58>
2013-09-04 05:49:11,252 [DEBUG]  @subscriptionmanager.py:89 - Sending update in hosts-to-guests mapping: {806dd54d-c637-e011-8bb1-ef6d3f96e567: [42341b36-0580-a5a7-e479-4ef57441201c, 4234417e-61f3-8acf-0ad5-384b1a56a7ff]}

Environment

  • Red Hat Enterprise Linux(RHEL)
  • Subscription Asset Manager(SAM)
  • VMware ESX

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content