From df06f21dc792b1c17219d9d9d59e29184e1868bb Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 2 Mar 2017 10:51:10 +0800 Subject: fix no precise image bug 1. add precise image name 2. release caches before install open-o and before install juju 3. remove known_hosts on jump host Change-Id: I7d1957c53c1b957718622d3f90c2a86966f1ec23 Signed-off-by: Harry Huang --- opera_launch.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'opera_launch.sh') diff --git a/opera_launch.sh b/opera_launch.sh index ebbe63d..750ace2 100755 --- a/opera_launch.sh +++ b/opera_launch.sh @@ -36,6 +36,8 @@ source ${JUJU_DIR}/juju_connect.sh mkdir -p $WORK_DIR if [[ "$DEPLOY_FIRST_TIME" == "true" ]]; then + sudo rm -f /root/.ssh/known_hosts + sudo rm -f /root/.ssh/known_hosts.old package_prepare network_prepare generate_compass_openrc @@ -43,6 +45,8 @@ fi source $WORK_DIR/admin-openrc.sh +sudo sync && sudo sysctl -w vm.drop_caches=3 + if [[ "$DEPLOY_OPENO" == "true" ]]; then if ! openo_download_iso; then log_error "openo_download_iso failed" @@ -60,6 +64,8 @@ if [[ "$DEPLOY_OPENO" == "true" ]]; then fi fi +sudo sync && sudo sysctl -w vm.drop_caches=3 + if [[ "$DEPLOY_JUJU" == "true" ]]; then juju_env_prepare @@ -72,9 +78,7 @@ if [[ "$DEPLOY_JUJU" == "true" ]]; then log_error "launch_juju failed" exit 1 fi -fi -if [[ "$DEPLOY_OPENO" == "true" && "$DEPLOY_JUJU" == "true" ]]; then connect_juju_and_openo fi -- cgit 1.2.3-korg