From 527284528f0f3e0db371ab9f5a97dafef460872c Mon Sep 17 00:00:00 2001 From: Evgeny Sikachev Date: Thu, 22 Dec 2016 10:36:08 +0400 Subject: [PATCH] Added installing of pymysql We need to use pymysql for python3 and as a result of changing config - for python2. Change-Id: I3421f17f53f470ace945c800de9d197908fb3b10 --- config/nodepool/scripts/prepare_node.sh | 2 +- slave-scripts/gate-sahara.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/nodepool/scripts/prepare_node.sh b/config/nodepool/scripts/prepare_node.sh index 2ae05b25..c21875ec 100755 --- a/config/nodepool/scripts/prepare_node.sh +++ b/config/nodepool/scripts/prepare_node.sh @@ -35,7 +35,7 @@ APT_PACKAGES+=" gettext" # Glance-client is required for diskimage-integration jobs PIP_PACKAGES="python-glanceclient" # Requirements for Sahara -PIP_PACKAGES+=" mysql-python" +PIP_PACKAGES+=" mysql-python pymysql" # Requirements for dib-jobs PIP_PACKAGES+=" python-openstackclient" PIP_PACKAGES+=" pip==8.1.1 tox" diff --git a/slave-scripts/gate-sahara.sh b/slave-scripts/gate-sahara.sh index d53cdae3..8d91a4e5 100755 --- a/slave-scripts/gate-sahara.sh +++ b/slave-scripts/gate-sahara.sh @@ -48,7 +48,6 @@ case $(echo $JOB_NAME | awk -F '-' '{ print $NF }') in python3) sudo apt install python3-pip python3-dev -y sudo pip3 $pip_cmd - sudo pip3 install pymysql ;; *) sudo pip $pip_cmd