aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2018-01-10 02:42:56 +0000
committerJingLu5 <lvjing5@huawei.com>2018-01-11 02:02:48 +0000
commitefd9c7372f4abd5cd868039cd8673681e2f38043 (patch)
tree508d1a145ecbd3df73e7cbedb0ccc083c40bf174
parentc191b305790b4528868725db82d1af6c0d95e22b (diff)
pyOpenSSL missing: cause 'git review' failed
JIRA: YARDSTICK-905 In the latest Yardstick container, when use git review to upload patches, an Attribute Error will cause failure. root@a80081a4dccd:/home/opnfv/repos/yardstick# git review Traceback (most recent call last): File "/usr/bin/git-review", line 6, in <module> from git_review.cmd import main File "/usr/lib/python2.7/dist-packages/git_review/cmd.py", line 32, in <module> import requests File "/usr/local/lib/python2.7/dist-packages/requests/_init_.py", line 52, in <module> from .packages.urllib3.contrib import pyopenssl File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 46, in <module> import OpenSSL.SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/_init_.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module> SSL_ST_INIT = _lib.SSL_ST_INIT AttributeError: 'module' object has no attribute 'SSL_ST_INIT' pyOpenSSL is required. Change-Id: I88a4916c9c2dfcdee45320f6b1a37eaae0803671 Signed-off-by: JingLu5 <lvjing5@huawei.com>
-rw-r--r--docker/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index b1eb50592..2ee5b4c06 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -26,7 +26,7 @@ ENV YARDSTICK_REPO_DIR="${REPOS_DIR}/yardstick" \
RUN apt-get update && apt-get install -y git python-setuptools python-pip && apt-get -y autoremove && apt-get clean
RUN easy_install -U setuptools==30.0.0
-RUN pip install appdirs==1.4.0
+RUN pip install appdirs==1.4.0 pyopenssl==17.5.0
RUN mkdir -p ${REPOS_DIR}