Bug 1076492
| Summary: | rhsm-debug command fails to execute when used with proxy details | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | redakkan |
| 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: | 2014-03-14 15:30:17 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: | 863175 | ||
This is working for me.... [root@jsefler-7 ~]# rhsm-debug system --no-archive --proxy=auto-services.usersys.redhat.com:3128 --proxyuser=redhat --proxypassword=redhat Wrote: /tmp/rhsm-debug-system-20140314-438558 Please review the validity of your --proxy=proxyservername:3128 Also verify that you are passing the --proxypassword. Comment 0 shows that you passed option --proxy twice without a --proxypassword. Retested My mistake, works with --proxypassword ;closing it as not a bug [root@hp-ml350egen8-01 tmp]# rhsm-debug system --no-archive --proxy=auto-services.usersys.redhat.com:3128 --proxyuser=redhat --proxypassword=redhat Wrote: /tmp/rhsm-debug-system-20140314-911365 |
Description of problem: Version-Release number of selected component (if applicable): subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.5-1 subscription-manager: 1.10.14-2.git.0.47d79a8.el7 python-rhsm: 1.10.12-1.git.1.c60e119.el How reproducible: 3/3 Steps to Reproduce: 1.Execute rhsm-debug system command with proxy details ex: [root@hp-ml350egen8-01 tmp]# rhsm-debug system --no-archive --proxy=proxyservername:3128 --proxyuser=****** --proxy=***** Actual results: [root@hp-ml350egen8-01 tmp]# rhsm-debug system --no-archive --proxy=proxyservername:3128 --proxyuser=****** --proxy=***** Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information. Expected results: should get successfully executed , and tar file should get created Additional info: ----rhsm-log--- 2014-03-14 08:42:18,796 [DEBUG] rhsm-debug @plugins.py:519 - loaded plugin modules: [] 2014-03-14 08:42:18,797 [DEBUG] rhsm-debug @plugins.py:520 - loaded plugins: {} 2014-03-14 08:42:18,798 [DEBUG] rhsm-debug @profile.py:97 - Loading current RPM profile. 2014-03-14 08:42:18,858 [DEBUG] rhsmcertd-worker @profile.py:97 - Loading current RPM profile. 2014-03-14 08:42:18,968 [INFO] rhsm-debug @managercli.py:288 - Client Versions: {'python-rhsm': '1.10.12-1.git.1.c60e119.el7', 'subscription-manager': '1.10.14-2.git.0.47d79a8.el7'} 2014-03-14 08:42:18,968 [INFO] rhsm-debug @connection.py:663 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False 2014-03-14 08:42:18,969 [INFO] rhsm-debug @connection.py:674 - Connection Built: host: 10.70.35.226, port: 8443, handler: /candlepin 2014-03-14 08:42:18,969 [INFO] rhsm-debug @connection.py:670 - Using no auth 2014-03-14 08:42:18,969 [INFO] rhsm-debug @connection.py:674 - Connection Built: host: 10.70.35.226, port: 8443, handler: /candlepin 2014-03-14 08:42:18,994 [DEBUG] rhsm-debug @connection.py:418 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-ca.pem, candlepin-stage.pem, redhat-uep.pem 2014-03-14 08:42:18,994 [DEBUG] rhsm-debug @connection.py:435 - Using proxy: redhat:3128 2014-03-14 08:42:18,994 [DEBUG] rhsm-debug @connection.py:450 - Making request: GET https://10.70.35.226:8443/candlepin/ 2014-03-14 08:42:19,005 [INFO] rhsmcertd-worker @connection.py:663 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False 2014-03-14 08:42:19,006 [INFO] rhsmcertd-worker @connection.py:674 - Connection Built: host: 10.70.35.226, port: 8443, handler: /candlepin 2014-03-14 08:42:19,006 [DEBUG] rhsmcertd-worker @identity.py:130 - Loading consumer info from identity certificates. 2014-03-14 08:42:19,007 [DEBUG] rhsmcertd-worker @plugins.py:519 - loaded plugin modules: [] 2014-03-14 08:42:19,008 [DEBUG] rhsmcertd-worker @plugins.py:520 - loaded plugins: {} 2014-03-14 08:42:19,008 [ERROR] rhsm-debug @utils.py:222 - Error while checking server version: [Errno -2] Name or service not known 2014-03-14 08:42:19,008 [ERROR] rhsm-debug @utils.py:224 - [Errno -2] Name or service not known Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/utils.py", line 202, in get_server_versions if cp.supports_resource("status"): File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 700, in supports_resource self._load_supported_resources() File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 687, in _load_supported_resources resources_list = self.conn.request_get("/") File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 554, in request_get return self._request("GET", method) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 457, in _request conn.request(request_type, handler, body=body, headers=headers) File "/usr/lib64/python2.7/httplib.py", line 973, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.7/httplib.py", line 1007, in _send_request self.endheaders(body) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 202, in endheaders httpslib.HTTPSConnection.endheaders(self) File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders self._send_output(message_body) File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output self.send(msg) File "/usr/lib64/python2.7/httplib.py", line 791, in send self.connect() File "/usr/lib64/python2.7/site-packages/M2Crypto/httpslib.py", line 195, in connect HTTPConnection.connect(self) File "/usr/lib64/python2.7/httplib.py", line 772, in connect self.timeout, self.source_address) File "/usr/lib64/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known 2014-03-14 08:42:19,010 [INFO] rhsm-debug @managercli.py:299 - Server Versions: {'candlepin': 'Unknown', 'server-type': 'Red Hat Subscription Management'} 2014-03-14 08:42:19,010 [DEBUG] rhsmcertd-worker @connection.py:418 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-ca.pem, candlepin-stage.pem, redhat-uep.pem 2014-03-14 08:42:19,010 [DEBUG] rhsm-debug @identity.py:130 - Loading consumer info from identity certificates. 2014-03-14 08:42:19,010 [DEBUG] rhsmcertd-worker @connection.py:450 - Making request: GET /candlepin/consumers/9ca28fae-0e91-4753-8041-2b53fadfe437/certificates/serials 2014-03-14 08:42:19,013 [DEBUG] rhsm-debug @connection.py:418 - Loaded CA certificates from /etc/rhsm/ca/: candlepin-ca.pem, candlepin-stage.pem, redhat-uep.pem 2014-03-14 08:42:19,014 [DEBUG] rhsm-debug @connection.py:435 - Using proxy: redhat:3128 2014-03-14 08:42:19,014 [DEBUG] rhsm-debug @connection.py:450 - Making request: GET https://10.70.35.226:8443/candlepin/consumers/9ca28fae-0e91-4753-8041-2b53fadfe437/owner 2014-03-14 08:42:19,026 [ERROR] rhsm-debug @managercli.py:156 - Unable to create zip file of system information: [Errno -2] Name or service not known 2014-03-14 08:42:19,027 [ERROR] rhsm-debug @managercli.py:157 - [Errno -2] Name or service not known Traceback (most recent call last): File "/usr/share/rhsm/rhsm_debug/debug_commands.py", line 91, in _do_command owner = self.cp.getOwner(consumer.uuid) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 863, in getOwner return self.conn.request_get(method) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 554, in request_get return self._request("GET", method) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 457, in _request conn.request(request_type, handler, body=body, headers=headers) File "/usr/lib64/python2.7/httplib.py", line 973, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.7/httplib.py", line 1007, in _send_request self.endheaders(body) File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 202, in endheaders httpslib.HTTPSConnection.endheaders(self) File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders self._send_output(message_body) File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output self.send(msg) File "/usr/lib64/python2.7/httplib.py", line 791, in send self.connect() File "/usr/lib64/python2.7/site-packages/M2Crypto/httpslib.py", line 195, in connect HTTPConnection.connect(self) File "/usr/lib64/python2.7/httplib.py", line 772, in connect self.timeout, self.source_address) File "/usr/lib64/python2.7/socket.py", line 553, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): gaierror: [Errno -2] Name or service not known 2014-03-14 08:42:20,530 [DEBUG] rhsmcertd-worker @connection.py:473 - Response: status=200, requestUuid=411d2c54-f3f4-4cd9-80d7-d03e2676ab45 2014-03-14 08:42:20,532 [INFO] rhsmcertd-worker @certlib.py:245 - certs updated: