Bug 824333

Summary: Cli register using –serverurl option displays 'tuple' object has no attribute 'port'
Product: Red Hat Enterprise Linux 5 Reporter: spandey
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: awood, cduryee, jmolet, jsefler, kbanerje, lmiksik, skallesh, spandey
Target Milestone: rcKeywords: QA-Closed
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 03:52:46 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: 771748    

Description spandey 2012-05-23 09:54:59 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
3/3

Prerequisites : 
Rhel5.9 with following rpm 
subscription-manager-migration-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-migration-data-1.11.1.1-1.git.2.c7fbafe.el5
subscription-manager-gnome-1.0.2-1.git.2.2b23e6e.el5
subscription-manager-firstboot-1.0.2-1.git.2.2b23e6e.el5
python-rhsm-1.0.1-1.git.1.e4fc11c.el5

Steps to repro : 
Login to client console and execute following command on console 

subscription-manager register --serverurl 192.168.122.226:8443/candlepin --org admin
subscription-manager register --serverurl http://192.168.122.226:8443/candlepin --org admin

Expected Result: 
command should prompt for user/password

Actual Result : 
[root@localhost ~]# subscription-manager register --serverurl 192.168.122.226:8443/candlepin --org admin
'tuple' object has no attribute 'port'
[root@localhost ~]# subscription-manager register --serverurl http://192.168.122.226:8443/candlepin --org admin
'tuple' object has no attribute 'port'

rhsm.log output 

[root@localhost ~]# tail -f /var/log/rhsm/rhsm.log 
    return managercli.CLI().main()
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 1951, in main
    return cmd.main()
  File "/usr/share/rhsm/subscription_manager/managercli.py", line 312, in main
    (self.server_hostname,
  File "/usr/share/rhsm/subscription_manager/utils.py", line 74, in parse_server_info
    DEFAULT_PREFIX)
  File "/usr/share/rhsm/subscription_manager/utils.py", line 180, in parse_url
    if result.port is not None:
AttributeError: 'tuple' object has no attribute 'port

Comment 1 spandey 2012-05-23 10:00:28 UTC
This issue i got with "http://download.eng.pnq.redhat.com/pub/rhel/nightly/RHEL5.9-Server-20120516.0.n/tree-i386/ " build

Comment 2 spandey 2012-05-23 11:54:44 UTC
getting same erro  while gui registration, and registration process failed

Comment 3 Chris Duryee 2012-05-24 12:54:02 UTC
4f0d60d138 master 1.0.3+

Comment 4 spandey 2012-06-12 09:37:11 UTC
Verified Using following setup 

subscription-manager-gui-1.0.3-1.git.30.db0f648.el5
subscription-manager-migration-1.0.3-1.git.30.db0f648.el5
subscription-manager-migration-data-1.11.1.1-1.git.2.c7fbafe.el5
subscription-manager-firstboot-1.0.3-1.git.30.db0f648.el5
subscription-manager-1.0.3-1.git.30.db0f648.el5

Working fine 
[root@localhost ~]# subscription-manager register --serverurl 10.65.193.186:8443/candlepin --u testuser1 --password password --org admin
The system has been registered with id: 0ffb1547-78d2-4766-84bb-1326ab6eaf25

resolving defect as verified

Comment 6 errata-xmlrpc 2013-01-08 03:52:46 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.

http://rhn.redhat.com/errata/RHBA-2013-0033.html