incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rudiger Wolf <Rudiger.W...@ThroughputFocus.com>
Subject [libcloud] Suggestions on how to use libcloud through corporate ISA proxy?
Date Fri, 10 Sep 2010 10:28:17 GMT
Hi

Any tips on using libcloud through ISA proxy?
Works fine when I am at home on direct connection.

I am using kick.py to drive libcloud
http://www.h1tman.com/2010/08/libcloud-python-example-kick-py/

with ntlm to deal with corporate ISA based firewall
http://cntlm.sourceforge.net/

On Ubuntu 10.10 Maverick beta

and get

$ printenv | grep proxy
http_proxy=http://localhost:9090
https_proxy=http://localhost:9090

$ python kick.py username key 3 2 servername  LAMP
Traceback (most recent call last):
   File "kick.py", line 47, in <module>
     conn = Driver(RACKSPACE_USER, RACKSPACE_KEY)
   File "/usr/local/lib/python2.6/dist-packages/libcloud/base.py", line 
563, in __init__
     self.connection.connect()
   File "/usr/local/lib/python2.6/dist-packages/libcloud/base.py", line 
371, in connect
     host = host or self.host
   File 
"/usr/local/lib/python2.6/dist-packages/libcloud/drivers/rackspace.py", 
line 92, in host
     'X-Auth-Key': self.key
   File "/usr/lib/python2.6/httplib.py", line 914, in request
     self._send_request(method, url, body, headers)
   File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
     self.endheaders()
   File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
     self._send_output()
   File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
     self.send(msg)
   File "/usr/lib/python2.6/httplib.py", line 739, in send
     self.connect()
   File "/usr/lib/python2.6/httplib.py", line 1112, in connect
     sock = socket.create_connection((self.host, self.port), self.timeout)
   File "/usr/lib/python2.6/socket.py", line 561, in create_connection
     raise error, msg
socket.error: [Errno 111] Connection refused


Any suggestions?

Thanks
Rudiger Wolf

Mime
View raw message