From: Divyang Patel Date: Fri, 15 Mar 2019 05:10:51 +0000 (+1100) Subject: Fix cherrypy import failure due to more-itertools X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F82366%2F2;p=ccsdk%2Fdistribution.git Fix cherrypy import failure due to more-itertools more-itertools version 6.0.0 is incompatible with python-2.7 importing cherrypy failes due to this. Changed startAnsibleServ.sh to explicitly install 'more-itertools' version 5.0.0 Also added 'apt-get update' before installing software-properties-common package which failed earlier to install. Container starts without problem after these changes Change-Id: I030ad54bb004056846f15eebf6ae0e8b5c4ae004 Issue-ID: CCSDK-1166 Signed-off-by: Divyang Patel --- diff --git a/ansible-server/src/main/scripts/startAnsibleServer.sh b/ansible-server/src/main/scripts/startAnsibleServer.sh index dd6f2a36..9fe0b79e 100644 --- a/ansible-server/src/main/scripts/startAnsibleServer.sh +++ b/ansible-server/src/main/scripts/startAnsibleServer.sh @@ -3,10 +3,12 @@ exec &> >(tee -a "/var/log/ansible-server.log") if [ ! -f /tmp/.ansible-server-installed ] then + pip install 'more-itertools==5.0.0' pip install PyMySQL pip install 'cherrypy<18.0.0' pip install requests + apt-get update apt-get -y install software-properties-common apt-add-repository -y ppa:ansible/ansible apt-get -y install ansible