Bug 847750

Summary: Migration with enable proxy displays traceback
Product: Red Hat Enterprise Linux 5 Reporter: spandey
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.9CC: awood, jsefler, kbanerje, 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:58:45 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-08-13 12:36:32 UTC
Description of problem:


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


How reproducible:
2/2

Prerequisite: 
Rhel5.9 with following subscription-manager rpm 

subscription-manager-firstboot-1.0.13-1.git.14.28f8917.el5
subscription-manager-migration-data-1.11.2.3-1.git.0.861f9ba.el5
subscription-manager-1.0.13-1.git.14.28f8917.el5
subscription-manager-migration-1.0.13-1.git.14.28f8917.el5
subscription-manager-gui-1.0.13-1.git.14.28f8917.el5

[root@dhcp193-75 ~]# cat /etc/sysconfig/rhn/up2date | grep Proxy
enableProxyAuth[comment]=To use an authenticated proxy or not
enableProxyAuth=0
enableProxy[comment]=Use a HTTP Proxy
enableProxy=1
httpProxy[comment]=HTTP proxy in host:port format, e.g. squid.redhat.com:3128
httpProxy=

steps to verify : 
Register client to “serverURL=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC
”
start migration process 

Expected result : 

Actual Result : 
[root@dhcp193-75 ~]# rhn-migrate-classic-to-rhsm
RHN Username: stage_test_12
Password: 
System Engine Username: test123
Password: 
Traceback (most recent call last):
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 650, in ?
    main()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 615, in main
    transferHttpProxySettings()
  File "/usr/sbin/rhn-migrate-classic-to-rhsm", line 382, in transferHttpProxySettings
    proxyHost, proxyPort = httpProxy.split(':')
ValueError: need more than 1 value to unpack

Comment 1 Alex Wood 2012-08-21 19:27:08 UTC
commit d8ea6d2a31d08cb65a59a31f3b1aa221e74cc9bc
Refs: <origin/awood/847750>, awood/847750, subscription-manager-1.0.14-1-3-gd8e~
Author:     Alex Wood <awood>
AuthorDate: Fri Aug 17 16:09:10 2012 -0400
Commit:     Alex Wood <awood>
CommitDate: Fri Aug 17 16:10:09 2012 -0400

    847750: Handle bad proxy values in migration script.

Comment 2 RHEL Program Management 2012-08-21 19:38:36 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 spandey 2012-09-04 07:52:27 UTC
Verified using following rpm 

subscription-manager-migration-1.0.17-1.el5
subscription-manager-1.0.17-1.el5
subscription-manager-gui-1.0.17-1.el5
subscription-manager-firstboot-1.0.17-1.el5
subscription-manager-migration-data-1.11.2.4-1.el5


[root@dhcp193-75 ~]# rhn-migrate-classic-to-rhsm --serverurl 10.65.201.170/katello/api
Red Hat account: stage_test_12
Password: 
System Engine Username: admin
Password: 
Unable to read RHN proxy settings.


Working fine resolving defect as verified

Comment 6 errata-xmlrpc 2013-01-08 03:58:45 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