Bug 671138
| Summary: | subscription-manager tracebacks when receiving a 104 from candlepin | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.1 | CC: | jesusr, msechres |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-20 21:04:12 UTC | Type: | --- |
| 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: | 639436 | ||
This actually works as intended. The cli and gui both show the error but not the stack trace. The stack trace is limited to the log file which is intended. And since this is truly an exceptional case, the client handled this correctly. I am closing this bug as NOTABUG. |
Description of problem: Not sure what is causing this nor how to reproduce this, but currently while testing against the IT QA candlepin test environment, we are getting 104 errors and tracebacks. If there is a way to catch this error on the client side and better recover from this error, that would be great. Also important is that the IT environment not get in this state. [root@jsefler-betaqa-1 ~]# grep hostname /etc/rhsm/rhsm.conf # Server hostname: hostname=subscriptions.rhn.webqa.redhat.com proxy_hostname= [root@jsefler-betaqa-1 ~]# subscription-manager register --username=jsefler-qabetauser-1 --password=redhat (104, 'Connection reset by peer') [root@jsefler-betaqa-1 ~]# tail -f /var/log/rhsm/rhsm.log 2011-01-20 07:48:51,053 [INFO] __init__() @connection.py:300 - Connection Established: host: subscriptions.rhn.webqa.redhat.com, port: 443, handler: /subscription 2011-01-20 07:48:51,142 [DEBUG] __init__() @certlib.py:649 - Sorting product and entitlement cert status for: 2011-01-20 07:48:51.141962 2011-01-20 07:48:51,158 [DEBUG] _populate_all_products() @certlib.py:667 - Installed product IDs: ['133', '132', '136', '135', '134'] 2011-01-20 07:48:51,159 [DEBUG] __init__() @certlib.py:658 - valid entitled products: [] 2011-01-20 07:48:51,159 [DEBUG] __init__() @certlib.py:659 - expired entitled products: [] 2011-01-20 07:48:51,161 [INFO] _request() @connection.py:146 - loading ca pem certificates from: /etc/rhsm/ca/ 2011-01-20 07:48:51,162 [INFO] _load_ca_certificates() @connection.py:133 - loading ca certificate '/etc/rhsm/ca/candlepin-stage.pem' 2011-01-20 07:48:51,163 [INFO] _load_ca_certificates() @connection.py:133 - loading ca certificate '/etc/rhsm/ca/fakamai-cp1.pem' 2011-01-20 07:48:51,163 [INFO] _load_ca_certificates() @connection.py:133 - loading ca certificate '/etc/rhsm/ca/redhat-uep.pem' 2011-01-20 07:48:51,164 [INFO] _request() @connection.py:148 - work in insecure mode ?:False 2011-01-20 07:49:15,691 [ERROR] handle_exception() @managercli.py:44 - Error during registration: (104, 'Connection reset by peer') 2011-01-20 07:49:15,692 [ERROR] handle_exception() @managercli.py:45 - (104, 'Connection reset by peer') Traceback (most recent call last): File "/usr/share/rhsm/managercli.py", line 347, in _do_command facts=self.facts.get_facts()) File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 322, in registerConsumer return self.conn.request_post('/consumers/', params) File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 202, in request_post return self._request("POST", method, params) File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 168, in _request headers=self.headers) File "/usr/lib64/python2.6/httplib.py", line 910, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.6/httplib.py", line 947, in _send_request self.endheaders() File "/usr/lib64/python2.6/httplib.py", line 904, in endheaders self._send_output() File "/usr/lib64/python2.6/httplib.py", line 776, in _send_output self.send(msg) File "/usr/lib64/python2.6/httplib.py", line 735, in send self.connect() File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 50, in connect self.sock.connect((self.host, self.port)) File "/usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py", line 185, in connect ret = self.connect_ssl() File "/usr/lib64/python2.6/site-packages/M2Crypto/SSL/Connection.py", line 178, in connect_ssl return m2.ssl_connect(self.ssl, self._timeout) SSLError: (104, 'Connection reset by peer')