From 7899d00c6f46f9d3b65c9284a8f70f4998e2415e Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 10 Feb 2016 21:31:48 +0800 Subject: [PATCH] Trap error exit in deploy aio script This make sure the check_failure called whenever the script exits unexpectedly. TrivialFix Change-Id: If38e9ad42810deec48afd3f8b57387ae6ffd926c --- tools/deploy_aio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deploy_aio.sh b/tools/deploy_aio.sh index 7faad99b46..0b80c6ccfe 100755 --- a/tools/deploy_aio.sh +++ b/tools/deploy_aio.sh @@ -19,6 +19,8 @@ function check_failure { fi } +trap check_failure EXIT + # Populate globals.yml cat << EOF > /etc/kolla/globals.yml --- @@ -36,6 +38,4 @@ ip l a fake_interface type dummy # Actually do the deployment tools/kolla-ansible -vvv deploy -check_failure - # TODO(SamYaple): Actually do functional testing of OpenStack