From: David Blaisonneau Date: Thu, 24 Mar 2016 15:49:34 +0000 (+0100) Subject: joid: auto-remove google client api to avoid installer crash X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=17190fc75ee01f98949114a574ae095cda22e51a;p=joid.git joid: auto-remove google client api to avoid installer crash Change-Id: I91da8a738f8163d1fe2b451b47150e6f4cae50be Signed-off-by: David Blaisonneau (cherry picked from commit 1b6a7d8ce677376eec16fb226d2eb30881f1cf76) --- diff --git a/ci/02-maasdeploy.sh b/ci/02-maasdeploy.sh index ddc7f2e0..4d948dcb 100755 --- a/ci/02-maasdeploy.sh +++ b/ci/02-maasdeploy.sh @@ -37,7 +37,7 @@ esac sed --i "s@/home/ubuntu@$HOME@g" ./deployment.yaml sed --i "s@qemu+ssh://ubuntu@qemu+ssh://$USER@g" ./deployment.yaml -#make sure no password asked during the deployment. +#make sure no password asked during the deployment. echo "$USER ALL=(ALL) NOPASSWD:ALL" > 90-joid-init @@ -73,9 +73,15 @@ sudo apt-add-repository ppa:juju/stable -y sudo apt-add-repository ppa:maas/stable -y sudo apt-add-repository cloud-archive:liberty -y sudo apt-get update -y -sudo apt-get dist-upgrade -y +sudo apt-get dist-upgrade -y sudo apt-get install openssh-server git maas-deployer juju juju-deployer maas-cli python-pip python-openstackclient gsutil -y +# To avoid problem between apiclient/maas_client and apiclient from google +# we remove the package google-api-python-client from yardstick installer +if [ $(pip list |grep google-api-python-client |wc -l) == 1 ]; then + sudo pip uninstall google-api-python-client +fi + sudo pip install shyaml juju init -f @@ -226,4 +232,3 @@ echo " .... MAAS deployment finished successfully ...." #echo "... Deployment of opnfv release Started ...." #python deploy.py $maas_ip -