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 1276241 - virt-who show "RestlibException: undefined method `inject' for nil:NilClass" when unregister rhevh to satellite
Summary: virt-who show "RestlibException: undefined method `inject' for nil:NilClass" ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Other
Version: 6.0.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
: 1252338 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-29 08:30 UTC by Liushihui
Modified: 2019-10-10 10:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:52:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Liushihui 2015-10-29 08:30:55 UTC
Description of problem:
when virt-who run at rhevm mode, unregister rhevh to satellite, virt-who will show "RestlibException: undefined method `inject' for nil:NilClass" in the process of reloading.

Version-Release number of selected component (if applicable):
subscription-manager-1.15.9-14.el7.x86_64
python-rhsm-1.15.4-5.el7.x86_64
virt-who-0.14-9.el7.noarch
vdsm-4.17.8-1.el7ev.noarch
Satellite-6.1.0-RHEL-7-20151027.0

How reproducible:
Always

Steps to Reproduce:
1. Register rhevh to satellite6.1, configure virt-who run at rhevm mode
[root@hp-z220-06 ~]# cat /etc/sysconfig/virt-who  | grep -v ^# | grep -v ^$
VIRTWHO_DEBUG=1
VIRTWHO_INTERVAL=5
VIRTWHO_RHEVM=1
VIRTWHO_RHEVM_OWNER=Default_Organization
VIRTWHO_RHEVM_ENV=Library
VIRTWHO_RHEVM_SERVER=https://10.66.79.8:443
VIRTWHO_RHEVM_USERNAME=admin@internal
VIRTWHO_RHEVM_PASSWORD=redhat
2. Start virt-who service, virt-who send h/g mapping to satellite
3. Unregister rhevh, then check virt-who's log
[root@hp-z220-06 ~]# subscription-manager  unregister
System has been unregistered.
[root@hp-z220-06 ~]# tail -f /var/log/rhsm/rhsm.log
2015-10-29 08:26:25,695 [WARNING]  @virtwho.py:357 - virt-who reload
2015-10-29 08:26:25,695 [DEBUG] subscription-manager:20497 @utils.py:284 - Restarted virt-who
2015-10-29 08:26:28,150 [ERROR]  @subscriptionmanager.py:171 - Communication with server failed:
Traceback (most recent call last):
  File "/usr/share/virt-who/manager/subscriptionmanager/subscriptionmanager.py", line 167, in hypervisorCheckIn
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 903, in hypervisorCheckIn
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 647, in request_post
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 564, in _request
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in validateResponse
RestlibException: undefined method `inject' for nil:NilClass
2015-10-29 08:26:28,150 [ERROR]  @virtwho.py:177 - Unable to send data: Communication with subscription manager failed with code 500: undefined method `inject' for nil:NilClass

Actual results:
It will show "RestlibException" when virt-who communicate with subscription manager.

Expected results:
vit-who shouldn't show "RestlibException" when communicate with subscription manager 

Additional info:
If virt-who run at vdsm mode, it hasn't this problem when unregister rhevh.

Comment 2 Radek Novacek 2015-11-03 07:40:23 UTC
Restlib exception suggest that is error is a server side issue. I'll switch this to the candlepin for investigation.

Any ideas what could cause this exception?

Comment 3 Barnaby Court 2016-03-01 21:33:11 UTC
This appears to be an error in the katello proxy between virt-who and candlepin. See the error about "nil:NilClass" in the description.

Comment 5 Bryan Kearney 2016-05-26 15:30:35 UTC
*** Bug 1252338 has been marked as a duplicate of this bug. ***

Comment 7 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 8 Bryan Kearney 2016-07-26 15:39:15 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 10 Eko 2016-07-27 05:42:59 UTC
verified with Satellite-6.2.0-RHEL-7-20160725.0

to rhevm mode, after unregister virt-who host, it will show following info as expected:
SubscriptionManagerUnregisteredError: Unable to read certificate, system is not registered or you are not root

Comment 11 Bryan Kearney 2016-07-27 11:52:15 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


Note You need to log in before you can comment on or make changes to this bug.