bugfix sslerror why login 07/50007/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 4 Jan 2018 07:06:50 +0000 (15:06 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 4 Jan 2018 07:06:50 +0000 (15:06 +0800)
SSLError: hostname 'identity.linuxfoundation.org' doesn't match 'c.sni.fastly.net'

Change-Id: I46028f35a6d871b445219335c093037d305a9e7b
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testapi/docker/Dockerfile

index 25deb26..33088c7 100644 (file)
@@ -47,5 +47,11 @@ RUN git clone https://gerrit.opnfv.org/gerrit/releng-testresults /home/releng-te
 
 WORKDIR /home/releng-testresults/testapi
 RUN pip install -r requirements.txt
+
+# bugfix
+# SSLError: hostname 'identity.linuxfoundation.org' doesn't match 'c.sni.fastly.net'
+# hope it is a temprary, try to fix it in upstream python-cas lib
+RUN sed -i '152,152s/)/,\ verify=False)/g' /usr/local/lib/python2.7/dist-packages/cas.py
+
 RUN python setup.py install
 CMD ["bash", "docker/start-server.sh"]