Bug 755258

Summary: using a proxy server encounters an... Error during registration: int argument required
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED DUPLICATE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8CC: bkearney, jmolet, skallesh, spandey
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-21 15:18:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031    

Description John Sefler 2011-11-20 05:25:10 UTC
Description of problem:
When using the proxy options during subscription-manager registration, I am encountering a traceback stating "int argument required"


Version-Release number of selected component (if applicable):
[root@tyan-gt24-10 ~]# rpm -q subscription-manager
subscription-manager-0.98.3-1.el5
[root@tyan-gt24-10 ~]# rpm -q python-rhsm
python-rhsm-0.98.3-1.el5


How reproducible:


Steps to Reproduce:
[root@tyan-gt24-10 ~]# grep hostname /etc/rhsm/rhsm.conf 
# Server hostname:
hostname=subscription.rhn.stage.redhat.com
proxy_hostname=
[root@tyan-gt24-10 ~]# subscription-manager register --username=stage_test_12 --password=redhat --proxy=auto-services.usersys.redhat.com:3128 --proxyuser=redhat --proxypassword=redhat
int argument required

^^^
EXPECTED A NEW CONSUMER TO BE REGISTERED



Additional info:

[root@tyan-gt24-10 ~]# tail -f /var/log/rhsm/rhsm.log
2011-11-20 00:13:45,109 [INFO]  @connection.py:350 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2011-11-20 00:13:45,110 [INFO]  @connection.py:363 - Connection Built: host: subscription.rhn.stage.redhat.com, port: 443, handler: /subscription
2011-11-20 00:13:45,298 [INFO]  @connection.py:342 - Using basic authentication as: stage_test_12
2011-11-20 00:13:45,299 [INFO]  @connection.py:363 - Connection Built: host: subscription.rhn.stage.redhat.com, port: 443, handler: /subscription
2011-11-20 00:13:45,301 [DEBUG]  @connection.py:188 - Loading CA PEM certificates from: /etc/rhsm/ca/
2011-11-20 00:13:45,301 [DEBUG]  @connection.py:171 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2011-11-20 00:13:45,302 [DEBUG]  @connection.py:171 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2011-11-20 00:13:45,303 [DEBUG]  @connection.py:194 - Using proxy: auto-services.usersys.redhat.com:3128
2011-11-20 00:13:45,304 [DEBUG]  @connection.py:209 - Making request: GET https://subscription.rhn.stage.redhat.com:443/subscription/users/stage_test_12/owners
2011-11-20 00:13:45,388 [ERROR]  @managercli.py:95 - Error during registration: int argument required
2011-11-20 00:13:45,388 [ERROR]  @managercli.py:96 - int argument required
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 628, in _do_command
    owner_key = self._determine_owner_key(admin_cp)
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 707, in _determine_owner_key
    owners = cp.getOwnerList(self.username)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 489, in getOwnerList
    return self.conn.request_get(method)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 255, in request_get
    return self._request("GET", method)
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 215, in _request
    conn.request(request_type, handler, body=body, headers=headers)
  File "/usr/lib/python2.4/httplib.py", line 810, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.4/httplib.py", line 833, in _send_request
    self.endheaders()
  File "/usr/lib/python2.4/site-packages/rhsm/connection.py", line 105, in endheaders
    httpslib.HTTPSConnection.endheaders(self)
  File "/usr/lib/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib/python2.4/httplib.py", line 652, in send
    self.connect()
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line 155, in connect
    self.sock.sendall(self._get_connect_msg())
  File "/usr/lib/python2.4/site-packages/M2Crypto/httpslib.py", line 169, in _get_connect_msg
    msg = "CONNECT %s:%d HTTP/1.1\r\n" % (self._real_host, self._real_port)
TypeError: int argument required

Comment 2 James Bowes 2011-11-21 15:18:44 UTC

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