Project

General

Profile

Actions

Bug #10484

closed

When configuring virt-who 0.12 with rhsm_username and rhsm_password with Satellite 6, virt-who fails with a traceback.

Added by Thomas McKay almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1211090
Description of problem:

When configuring virt-who 0.12 to report to a Satellite 6.0.8 instance, using the rhsm_username & rhsm_password, virt-who fails with a traceback.

Version-Release number of selected component (if applicable):

virt-who-0.12-2.el6_6sat.noarch

foreman-1.6.0.53-1.el6sat.noarch
foreman-compute-1.6.0.53-1.el6sat.noarch
foreman-discovery-image-6.5-20140620.2.el6sat.noarch
foreman-gce-1.6.0.53-1.el6sat.noarch
foreman-libvirt-1.6.0.53-1.el6sat.noarch
foreman-ovirt-1.6.0.53-1.el6sat.noarch
foreman-postgresql-1.6.0.53-1.el6sat.noarch
foreman-proxy-1.6.0.33-1.el6sat.noarch
foreman-selinux-1.6.0.14-1.el6sat.noarch
foreman-vmware-1.6.0.53-1.el6sat.noarch
katello-1.5.0-30.el6sat.noarch
katello-certs-tools-1.5.6-1.el6sat.noarch
katello-default-ca-1.0-1.noarch
katello-installer-0.0.67-1.el6sat.noarch
katello-server-ca-1.0-1.noarch
pulp-katello-0.3-4.el6sat.noarch
pulp-nodes-common-2.4.4-1.el6sat.noarch
pulp-nodes-parent-2.4.4-1.el6sat.noarch
pulp-puppet-plugins-2.4.4-1.el6sat.noarch
pulp-puppet-tools-2.4.4-1.el6sat.noarch
pulp-rpm-plugins-2.4.4-1.1.el6sat.noarch
pulp-selinux-2.4.4-1.el6sat.noarch
pulp-server-2.4.4-1.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Register a RHEL instance to Satellite 6.0.8. Install virt-who-0.12-2.el6_6sat.noarch
2. Creating /etc/virt-who.d/vsphere with the following contents:

[vsphere]
type=esx
server=vmware.example.com
username=
password=<redacted?
owner=Default Organization
env=Library
rhsm_username=admin
rhsm_password=<redacted>

3. (re)start virt-who

Actual results:

virt-who fails with the following traceback and no host-guest mapping is reported to Satellite 6:

2015-04-12 23:37:07,555 [ERROR] @virtwho.py:107 - Error in communication with subscription manager:
Traceback (most recent call last):
File "/usr/share/virt-who/virtwho.py", line 100, in send
self._sendGuestAssociation(report)
File "/usr/share/virt-who/virtwho.py", line 117, in _sendGuestAssociation
result = manager.hypervisorCheckIn(report.config, report.association, report.config.type)
File "/usr/share/virt-who/manager/subscriptionmanager/subscriptionmanager.py", line 133, in hypervisorCheckIn
return self.connection.hypervisorCheckIn(config.owner, config.env, mapping)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 754, in hypervisorCheckIn
return self.conn.request_post(url, host_guest_mapping)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 553, in request_post
return self._request("POST", method, params)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 478, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 520, in validateResponse
raise RestlibException(response['status'], error_msg)
RestlibException: undefined method `admin?' for nil:NilClass

Expected results:
virt-who reports host/guest mapping using the rhsm_* directives without traceback.

Additional info:

Actions #1

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5223 added
  • Pull request deleted ()
Actions #2

Updated by Thomas McKay almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release set to 31
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF