Bug 1343160

Summary: Subscription-manager commands sporadically hang, requiring rhsmcertd to be restarted
Product: Red Hat Enterprise Linux 7 Reporter: Rich Jerrido <rjerrido>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: awood, bcourt, csnyder, egolov, jsefler, pcfe, redakkan, rjerrido, skallesh, vanhoof, vrjain
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-11 18:25:41 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:

Description Rich Jerrido 2016-06-06 16:23:40 UTC
Description of problem:
Occasionally subscription-manager commands hang, and the only way to enable a successful run of subscription-manager is to restart the rhsmcertd

Version-Release number of selected component (if applicable):
subscription-manager-1.15.9-15.el7.x86_64

How reproducible:
~50%

Steps to Reproduce:
In my instance, the following steps caused the issue. 
1. install satellite 6's consumer RPM
2. run subscription-manager register. 
3.

Actual results:

the 'subscription-manager register' command hangs. 


Expected results:

subscription-manager commands complete without hanging. 

Additional info:

There are other, non Satellite 6 related instances where this happens, as shown below:

https://access.redhat.com/solutions/2202931
https://access.redhat.com/solutions/2110281
https://access.redhat.com/solutions/1754373
https://access.redhat.com/solutions/1342823

This leads me to believe the issue is not Satellite 6 specific.

Comment 4 Evgeni Golov 2016-06-06 20:08:28 UTC
I've also hit this a couple of times when subscribing RHEL6 (6.3-6.5, with rhsm/sub-man bits from 6.7) guests to Satellite 6.1.

Comment 7 Chris Snyder 2016-06-10 19:02:03 UTC
The PR below should fix this issue, in short, by providing a default timeout to all SSL connections.

PR: https://github.com/candlepin/python-rhsm/pull/170

Comment 8 Alex Wood 2016-06-15 14:29:53 UTC
Hopefully the addition of a socket timeout (3 minutes by default, but configurable via the server_timeout variable) will address this issue, but it's difficult to say given the lack of specifics in the bug report.

Comment 15 Barnaby Court 2017-01-11 18:25:41 UTC

*** This bug has been marked as a duplicate of bug 1346417 ***