[lxc-users] Getting the LXD rest api to play nice?

Tycho Andersen tycho.andersen at canonical.com
Wed May 20 00:28:22 UTC 2015


Hi Kevin,

On Tue, May 19, 2015 at 04:04:11PM -0700, Kevin LaTona wrote:
> 
> Here is the last bits of test….. best I know from requests docs this should work to get some kind of a response.
> 
> So far no matter how I try to connect to my LDX rest server I can't get past a ping… so at least it's running at some level is a start.
> 
> 
> Any thoughts or ideas much appreciated from anyone.
> 
> 
> import requests
> 
> # r = requests.get('https://192.168.0.50:8443/')
> # requests.exceptions.SSLError: [Errno 1] _ssl.c:503: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
> 
> # r = requests.get('https://192.168.0.50:8443/1.0/', verify=True)
> # requests.exceptions.SSLError: [Errno 1] _ssl.c:503: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
> 
> 
> # r = requests.get('https://192.168.0.50:8443/1.0/',verify=False)
> # requests.exceptions.SSLError: [Errno 1] _ssl.c:503: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

LXD requires TLS 1.2, it looks like perhaps the build of ssl your
python-requests is linked against doesn't provide it.

Tycho

> print(r.text)
> 
> 
> 
> Thanks
> -Kevin
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list