Bug 754366 - Registration using proxy option is failed with error "int argument required"
Summary: Registration using proxy option is failed with error "int argument required"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Devan Goodwin
QA Contact: IDM QE LIST
URL:
Whiteboard:
: 755258 (view as bug list)
Depends On:
Blocks: 715031 758797
TreeView+ depends on / blocked
 
Reported: 2011-11-16 09:46 UTC by yu zheng
Modified: 2012-02-21 06:42 UTC (History)
5 users (show)

Fixed In Version: 0.98.5-1.el5
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2012-02-21 06:42:52 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0154 0 normal SHIPPED_LIVE subscription-manager bug fix update 2012-02-20 15:06:04 UTC

Description yu zheng 2011-11-16 09:46:22 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager-gnome-0.98.2-1.el5
subscription-manager-0.98.2-1.el5
subscription-manager-firstboot-0.98.2-1.el5
python-rhsm-0.98.2-1.el5

How reproducible:
always

Steps to Reproduce:
1.Register to stage evn using a proxy.
[root@localhost ~]# subscription-manager register --username=stage_test_12 --password=redhat --proxy=squid.corp.redhat.com:3128
  
Actual results:
An error msg "int argument required" displays.

Expected results:
Registration should succeed and a consumerid should display.

Comment 1 Devan Goodwin 2011-11-18 18:47:28 UTC
Dupe of https://bugzilla.redhat.com/show_bug.cgi?id=694870 from 5.7, but the fix did not make it to master, which 5.8 was rebased off of.

Cherry picked the appropriate commit into python-rhsm.git master: 74cd6bbf493cb8907412075e4eae307b264a0631

Will appear in python-rhsm-0.98.4-1

Comment 2 James Bowes 2011-11-21 15:18:44 UTC
*** Bug 755258 has been marked as a duplicate of this bug. ***

Comment 3 Shwetha Kallesh 2011-11-29 09:32:01 UTC
Moving bug to verified..

RPM used:
[root@tiger facts]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.98.3-1.el5
subscription-manager-0.98.3-1.el5
subscription-manager-gnome-0.98.3-1.el5
subscription-manager-migration-data-1.4-1.el5
subscription-manager-debuginfo-0.98.3-1.el5
subscription-manager-migration-0.98.3-1.el5

Steps to verify:

[root@tiger facts]# subscription-manager register --username=stage_test_12 --password=redhat --proxy=squid.corp.redhat.com:3128

The system has been registered with id: c456e74f-7b71-4d3c-b6c7-6ecf2dd9dbc6

Comment 4 Keqin Hong 2011-11-29 10:09:01 UTC
(In reply to comment #3)
> Moving bug to verified..
> 
> RPM used:
> [root@tiger facts]# rpm -qa | grep subscription-manager
> subscription-manager-firstboot-0.98.3-1.el5
> subscription-manager-0.98.3-1.el5
> subscription-manager-gnome-0.98.3-1.el5
> subscription-manager-migration-data-1.4-1.el5
> subscription-manager-debuginfo-0.98.3-1.el5
> subscription-manager-migration-0.98.3-1.el5

Shwetha,
What's version of python-rhsm you tested on?
According to our tests, it's not been fixed on 0.98.3-1.el5.
Comment 1 also mentioned it will be fixed on 0.98.4-1

Regards,
Keqin

Comment 5 John Sefler 2011-11-29 17:35:48 UTC
Re-Verifying fix with continuous integration git builds of python-rhsm and subscription-manager....

[root@jsefler-onprem-5server ~]# rpm -q subscription-manager
subscription-manager-0.98.3-1.git.16.14460bc.el5_7
[root@jsefler-onprem-5server ~]# rpm -q python-rhsm
python-rhsm-0.98.3-1.git.2.74cd6bb.el5_7


[root@jsefler-onprem-5server ~]# subscription-manager register --username=stage_test_12 --password redhat --proxy=auto-services.usersys.redhat.com:3128 --proxyuser=redhat --proxypassword=redhat
The system has been registered with id: 6f43e278-f941-462b-ad17-de463625e8cb 

^^^ VERIFIED.. THOSE ARE THE EXPECTED RESULTS


[root@jsefler-onprem-5server ~]# tail -1000 /var/log/rhsm/rhsm.log | grep proxy
2011-11-29 11:57:51,273 [DEBUG]  @connection.py:206 - Using proxy: auto-services.usersys.redhat.com:3128
2011-11-29 11:57:52,597 [DEBUG]  @connection.py:206 - Using proxy: auto-services.usersys.redhat.com:3128
2011-11-29 11:57:54,078 [DEBUG]  @connection.py:206 - Using proxy: auto-services.usersys.redhat.com:3128
[root@jsefler-onprem-5server ~]# 

[root@auto-services ~]# hostname
auto-services.usersys.redhat.com
[root@auto-services ~]# tail -f  /var/log/squid/access.log
1322600270.262   1050 10.16.120.152 TCP_MISS/200 7346 CONNECT subscription.rhn.stage.redhat.com:443 redhat DIRECT/10.24.127.49 -
1322600271.931   1452 10.16.120.152 TCP_MISS/200 12734 CONNECT subscription.rhn.stage.redhat.com:443 redhat DIRECT/10.24.127.49 -
1322600272.443    488 10.16.120.152 TCP_MISS/200 7267 CONNECT subscription.rhn.stage.redhat.com:443 redhat DIRECT/10.24.127.49 -

^^^ VERIFIED.. TRAFFIC WAS ROUTED THROUGH THE PROXY


As stated in comment 1, this verified fix will appear in python-rhsm-0.98.4-1

Comment 6 William Poteat 2012-01-23 15:04:49 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 7 errata-xmlrpc 2012-02-21 06:42:52 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-2012-0154.html


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