Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1323020

Summary: Failed to communicate with subscription-manager as "Interrupted system call"
Product: Red Hat Enterprise Linux 6 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Chris Snyder <csnyder>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8CC: ldai, rbalakri, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.18-1.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1339863 (view as bug list) Environment:
Last Closed: 2017-03-21 10:30:09 UTC Type: Bug
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: 1339863    

Description Liushihui 2016-04-01 02:29:13 UTC
Description of problem:
If host/guest mapping info updated, restart virt-who service will result in failed to communicate with subscription-manager.

Version-Release number of selected component (if applicable):
virt-who-0.16-7.el6.noarch
subscription-manager-1.16.8-8.el6.x86_64
python-rhsm-1.16.6-1.el6.x86_64
Satellite-6.1.0-RHEL-6-20160321

How reproducible:
20%

Steps to Reproduce:
1. Register system to satellite6.1
2. Configure virt-who run at rhevm mode and restart virt-who service
[root@hp-dl360g6-01 ~]# cat /etc/sysconfig/virt-who  | grep -v ^# | grep -v ^$
VIRTWHO_DEBUG=1
VIRTWHO_RHEVM=1
VIRTWHO_RHEVM_OWNER=ACME_Corporation
VIRTWHO_RHEVM_ENV=Library
VIRTWHO_RHEVM_SERVER=https://dell-pe1955-01.rhts.eng.bos.redhat.com:443
VIRTWHO_RHEVM_USERNAME=admin@internal
VIRTWHO_RHEVM_PASSWORD=redhat
[root@hp-dl360g6-01 ~]# service virt-who restart
3. In the rhevm webUI,stop vm, then remove host, restart virt-who service and check virt-who's log.
[root@hp-dl360g6-01 ~]# tail -f /var/log/rhsm/rhsm.log
2016-03-31 05:34:27,114 [virtwho.main DEBUG] MainProcess(8258):MainThread @virtwho.py:terminate:359 - virt-who is shutting down
2016-03-31 05:34:27,552 [virtwho.env_cmdline DEBUG] RhevM-1(8265):MainThread @virt.py:run:381 - Virt backend 'env/cmdline' terminated
2016-03-31 05:34:28,117 [virtwho.main ERROR] MainProcess(8258):MainThread @virtwho.py:send:216 - Error in communication with subscription manager:
Traceback (most recent call last):
  File "/usr/share/virt-who/virtwho.py", line 199, in send
    self._sendGuestAssociation(report)
  File "/usr/share/virt-who/virtwho.py", line 226, in _sendGuestAssociation
    manager.hypervisorCheckIn(report, self.options)
  File "/usr/share/virt-who/manager/subscriptionmanager/subscriptionmanager.py", line 163, in hypervisorCheckIn
    is_async = hasattr(self.connection, 'has_capability') and self.connection.has_capability('hypervisors_async')
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 868, in has_capability
    self.capabilities = self._load_manager_capabilities()
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 850, in _load_manager_capabilities
    status = self.getStatus()
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 1335, in getStatus
    return self.conn.request_get(method)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 681, in request_get
    return self._request("GET", method)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 571, in _request
    conn.request(request_type, handler, body=body, headers=headers)
  File "/usr/lib64/python2.6/httplib.py", line 936, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.6/httplib.py", line 973, in _send_request
    self.endheaders()
  File "/usr/lib64/python2.6/httplib.py", line 930, in endheaders
    self._send_output()
  File "/usr/lib64/python2.6/httplib.py", line 802, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.6/httplib.py", line 761, in send
    self.connect()
  File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 73, in connect
    raise error
error: [Errno 4] Interrupted system call
2016-03-31 05:34:28,128 [virtwho.main DEBUG] MainProcess(8258):MainThread @virtwho.py:send_report:168 - Report from "env/cmdline" failed to sent
2016-03-31 05:34:28,130 [virtwho.main DEBUG] MainProcess(8258):MainThread @virtwho.py:<module>:824 - virt-who terminated

Actual results:
Failed to communicate with subscription-manager when stop virt-who service as "Interrupted system call"

Expected results:
It shouldn't show error info when stop virt-who service

Additional info:

Comment 3 Radek Novacek 2016-10-13 08:16:53 UTC
Fixed in virt-who-0.18-1.el6.

Comment 5 Eko 2016-12-07 08:05:57 UTC
verified in virt-who-0.18-1.el6

before remove:
2016-12-07 03:03:55,298 [virtwho.main DEBUG] MainProcess(17625):MainThread @subscriptionmanager.py:hypervisorCheckIn:196 - Host-to-guest mapping: {
    "d66db3d8-4bbb-4aba-b87b-9c0e0fac3ab3": [], 
    "4322a9ff-798d-4e3d-b369-deb5dc678de2": []
}


after remove: 
2016-12-07 03:04:56,320 [virtwho.main DEBUG] MainProcess(17625):MainThread @subscriptionmanager.py:hypervisorCheckIn:196 - Host-to-guest mapping: {
    "d66db3d8-4bbb-4aba-b87b-9c0e0fac3ab3": []
}

Comment 7 errata-xmlrpc 2017-03-21 10:30:09 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://rhn.redhat.com/errata/RHBA-2017-0675.html