aboutsummaryrefslogtreecommitdiffstats
path: root/opera_launch.sh
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-02 10:51:10 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-03-02 11:25:51 +0800
commitdf06f21dc792b1c17219d9d9d59e29184e1868bb (patch)
tree44782ee7f40d72e5a89dfd69e827fdcc723557e7 /opera_launch.sh
parentcce77461244bce9cd3f58c480ff895a4a9fb3837 (diff)
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 <huangxiangyu5@huawei.com>
Diffstat (limited to 'opera_launch.sh')
-rwxr-xr-xopera_launch.sh8
1 files changed, 6 insertions, 2 deletions
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