Fix cherrypy import failure due to more-itertools 66/82366/2
authorDivyang Patel <divyang.patel@team.telstra.com>
Fri, 15 Mar 2019 05:10:51 +0000 (16:10 +1100)
committerDivyang Patel <divyang.patel@team.telstra.com>
Mon, 18 Mar 2019 23:59:58 +0000 (23:59 +0000)
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 <divyang.patel@team.telstra.com>
ansible-server/src/main/scripts/startAnsibleServer.sh

index dd6f2a3..9fe0b79 100644 (file)
@@ -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