Skip to content
Snippets Groups Projects
Commit 7899d00c authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Trap error exit in deploy aio script

This make sure the check_failure called whenever the script exits
unexpectedly.

TrivialFix

Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c
parent b479d8db
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,8 @@ function check_failure { ...@@ -19,6 +19,8 @@ function check_failure {
fi fi
} }
trap check_failure EXIT
# Populate globals.yml # Populate globals.yml
cat << EOF > /etc/kolla/globals.yml cat << EOF > /etc/kolla/globals.yml
--- ---
...@@ -36,6 +38,4 @@ ip l a fake_interface type dummy ...@@ -36,6 +38,4 @@ ip l a fake_interface type dummy
# Actually do the deployment # Actually do the deployment
tools/kolla-ansible -vvv deploy tools/kolla-ansible -vvv deploy
check_failure
# TODO(SamYaple): Actually do functional testing of OpenStack # TODO(SamYaple): Actually do functional testing of OpenStack
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment