[Spacewalk-list] rhn-clone-errata.py thru a squid proxy

Eric linux_4_u at yahoo.com
Wed Apr 21 12:48:30 UTC 2010


Thanks for the quick response Colin.

If I specify:
/usr/local/sbin/rhn-clone-errata.py -s spacewalk.local -l swadmin -p secret -x webprox1:3128 -v -u -c rhel-i386-server-5

I receive the error
rhn-clone-errata.py: error: no such option: -x

To clarify, I am using Andy Speagle's script, which I believe is the latest one.

Thanks,

-Eric





________________________________
From: Colin Coe <colin.coe at gmail.com>
To: Eric <linux_4_u at yahoo.com>; spacewalk-list at redhat.com
Sent: Tue, April 20, 2010 6:12:47 PM
Subject: Re: [Spacewalk-list] rhn-clone-errata.py thru a squid proxy

Does it work if you specify '-x webprox1.local:3128'?

CC


On Wed, Apr 21, 2010 at 3:47 AM, Eric <linux_4_u at yahoo.com> wrote:

Hello,
>
>>I am having issues with the script rhn-clone-errata.py using a forwarding proxy.
>>I tried setting the environment variables
>>http_proxy=http://webprox1.local:3128
>>https_proxy=http://webprox1.local:3128
>
>>Then I run the rhn-clone-errata.py script on the server running spacewalk as follows:
>>        export
>>       /usr/local/sbin/rhn-clone-errata.py -s spacewalk.local -l swadmin -p secret -v -u -c rhel-i386-server-5
>
>>The issue is that the server which spacewalk is running on is firewalled from the Internet, but it has access
>>via a squid proxy.
>
>>I tried the following to no avail: http://www.mail-archive.com/spacewalk-devel@redhat.com/msg01974.html
>
>
>>Traceback (most recent call last):
>>  File "/usr/local/sbin/rhn-clone-errata.py", line 586, in ?
>>    main()
>>  File "/usr/local/sbin/rhn-clone-errata.py", line 502, in main
>>    myRHN = RHNServer(svrRHN,userRHN,passRHN)
>>  File "/usr/local/sbin/rhn-clone-errata.py", line 69, in __init__
>>    self.rhnSession = self.rhnLogin(self.login,self.password,0)
>>  File "/usr/local/sbin/rhn-clone-errata.py", line 73, in rhnLogin
>>    rhnSession=self.server.auth.login(login,password)
>>  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
>>    return self.__send(self.__name, args)
>>  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
>>    verbose=self.__verbose
>>  File "/usr/lib/python2.4/xmlrpclib.py", line 1129, in request
>>    self.send_content(h, request_body)
>>  File "/usr/lib/python2.4/xmlrpclib.py", line 1243, in send_content
>>    connection.endheaders()
>>  File "/usr/lib/python2.4/httplib.py", line 798, in endheaders
>>    self._send_output()
>>  File "/usr/lib/python2.4/httplib.py", line 679, in _send_output
>>    self.send(msg)
>>  File "/usr/lib/python2.4/httplib.py", line 646, in send
>>    self.connect()
>>  File "/usr/lib/python2.4/httplib.py", line 1072, in connect
>>    sock.connect((self.host, self.port))
>>  File "<string>", line 1, in connect
>>socket.error: (110, 'Connection timed out')
>
>>Thanks,
>
>>-Eric
>
>
>
>
>
>>_______________________________________________
>>Spacewalk-list mailing list
>Spacewalk-list at redhat.com
>https://www.redhat.com/mailman/listinfo/spacewalk-list
>


-- 
RHCE#805007969328369



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100421/39531fdc/attachment.htm>


More information about the Spacewalk-list mailing list