Bug 824333 - Cli register using –serverurl option displays 'tuple' object has no attribute 'port'
Summary: Cli register using –serverurl option displays 'tuple' object has no attribute...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2012-05-23 09:54 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2013-01-08 03:52:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

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


Note You need to log in before you can comment on or make changes to this bug.