[Openstack] Using Nova client with SSH SOCKS proxy

Dean Troyer dtroyer at gmail.com
Fri May 16 16:17:08 UTC 2014

On Fri, May 16, 2014 at 10:41 AM, Adrian Smith <adrian at 17od.com> wrote:

> To access my controller I need to go through a intermediary box.
> I've created a local SOCKS proxy by ssh'ing to this intermediary with
> the parameters -D 13392.
> I then set the environment variable,
>  export HTTP_PROXY=http://localhost:13392
> But using "nova list" just gives an error,
> $ nova list
> ERROR: HTTPConnectionPool(host='localhost', port=13392): Max retries
> exceeded with url: http://x.x.x.x:5000/v2.0/tokens (Caused by <class
> 'httplib.BadStatusLine'>: '')
> Should this work? Am I doing something wrong?

The nova client lib uses requests/urllib3 for HTTP, they do not support
SOCKS proxies out of the box.  There have been some forks/patches to add
that to requests or urllib3, we have not tested those.



Dean Troyer
dtroyer at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140516/734c90d2/attachment.html>

More information about the Openstack mailing list