aboutsummaryrefslogtreecommitdiffstats
path: root/ci/deploy.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-13 19:21:26 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-13 18:25:45 +0000
commit069c9252e2850ab13a47cc252d1f9e0e410b9305 (patch)
treea4ae255084b1f327348260a98464ea2b23e2ed6a /ci/deploy.sh
parentff434739425a9c30186c54318ae05431a9493196 (diff)
ci/deploy.sh: Add installation succesful message
Change-Id: Id366854c4ccb3b835f4a54ddea924a3a2cc30c7d Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 3479e81a8bfa1ae15084100f2b3872ca8f1ed752)
Diffstat (limited to 'ci/deploy.sh')
-rwxr-xr-xci/deploy.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index f6c3591d2..9b28d4bf9 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -218,12 +218,12 @@ do
done
if [[ "$(sudo whoami)" != 'root' ]]; then
- notify "This script requires sudo rights\n" 1>&2
+ notify "[ERROR] This script requires sudo rights\n" 1>&2
exit 1
fi
if ! virsh list >/dev/null 2>&1; then
- notify "This script requires hypervisor access\n" 1>&2
+ notify "[ERROR] This script requires hypervisor access\n" 1>&2
exit 1
fi
@@ -357,10 +357,10 @@ notify "[NOTE] Using bridges: ${OPNFV_BRIDGES[*]}\n" 2
# Infra setup
if [ ${DRY_RUN} -eq 1 ]; then
- notify "Dry run, skipping all deployment tasks\n" 2 1>&2
+ notify "[NOTE] Dry run, skipping all deployment tasks\n" 2 1>&2
exit 0
elif [ ${USE_EXISTING_INFRA} -eq 1 ]; then
- notify "Use existing infra\n" 2 1>&2
+ notify "[NOTE] Use existing infra\n" 2 1>&2
check_connection
else
generate_ssh_key
@@ -375,11 +375,12 @@ else
fi
# Openstack cluster setup
+set +x
if [ ${INFRA_CREATION_ONLY} -eq 1 ] || [ ${NO_DEPLOY_ENVIRONMENT} -eq 1 ]; then
- notify "Skip openstack cluster setup\n" 2
+ notify "[NOTE] Skip openstack cluster setup\n" 2
else
for state in "${cluster_states[@]}"; do
- notify "STATE: ${state}\n" 2
+ notify "[STATE] Applying state: ${state}\n" 2
# shellcheck disable=SC2086,2029
ssh ${SSH_OPTS} "${SSH_SALT}" \
sudo "/root/fuel/mcp/config/states/${state} || true"
@@ -390,6 +391,8 @@ fi
popd > /dev/null
+notify "\n[DONE] MCP: Openstack installation finished succesfully!\n\n" 2
+
#
# END of main
##############################################################################