[rhn-users] Yum, rhn and an apache proxy : problems

Benoit Guguin liste at alixen.fr
Thu Nov 29 11:04:32 UTC 2007


Well, I've found

It's a bug in the crypto lib of python.  It doesn't add the HOST in the 
headers of the HTTP/1.1 ...

In the file /usr/lib/python2.4/site-packages/M2Crypto/httpslib.py , add at the 
line 165 :
        msg = msg + "Host: %s:%d\r\n" % (self._real_host, self._real_port)

cheers



Le Thursday 29 November 2007 11:11:48 Benoit Guguin, vous avez écrit :
> Hi,
>
> I have some truble  to  use yum through  an apache 1.3 proxy.
>
> -- When I try to update my system :
> yum update
> Loading "installonlyn" plugin
> Loading "rhnplugin" plugin
> Setting up Update Process
> Setting up repositories
> Error: Cannot open/read repomd.xml file for repository: rhel-i386-server-5
>
>
> -- In the log file /var/log/up2date, all seems to go well :
> [Thu Nov 29 11:03:24 2007] up2date logging into up2date server
> [Thu Nov 29 11:03:25 2007] up2date successfully retrieved authentication
> token from up2date server
>
>
> -- In the apache 1.3 proxy log files, seems to go wrong :
> "CONNECT xmlrpc.rhn.redhat.com:443 HTTP/1.1" 200 -
> "CONNECT xmlrpc.rhn.redhat.com:443 HTTP/1.1" 200 -
> CONNECT xmlrpc.rhn.redhat.com:443 HTTP/1.1" 400 307
>
> So I've got two good response (for the authentification I suppose) and one
> bad
>
> I've tried to modify python in order to add a userAgent ... but doesn't
> change anything.
>
> I've tried to use local variable (http_proxy and https_proxy) in place of
> the configuration in yum ... but didn't change anything ...
>
>
> In the other hand, all rhn_* commands work greats ... rhn_check works
> without problems and the information is up to date in rhn.redhat.com ...
>
>
>
> Any idea ?
> thank you in avance.
>
>
>
>
> Well



-- 
Guguin Benoit
Société Alixen 20 rue Jean Rostand 91 400 Orsay Cedex France
Tel :  01 60 19 72 31, Fax : 01 69 41 78 54






More information about the rhn-users mailing list