From c98e2683b290258eda15ffd1b02bcd907af47248 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Wed, 23 Aug 2017 16:28:04 +0200 Subject: ci/deploy.sh, states: bash debug, continue on err Since we don't `set -e` in state files, applying each state will always succeed unless the last instruction in the state fails. Make this uniform by always succeeding in applying the state. While at it, enable bash debugging logs, for better readability of deploy log files. Change-Id: I3cf4886f6d73c6fd1380df1a4e1413334bec1701 Signed-off-by: Alexandru Avadanii --- mcp/config/states/dpdk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mcp/config/states/dpdk') diff --git a/mcp/config/states/dpdk b/mcp/config/states/dpdk index 8834d47c1..c6cd2a5a8 100755 --- a/mcp/config/states/dpdk +++ b/mcp/config/states/dpdk @@ -1,3 +1,6 @@ +#!/bin/bash +set -x + salt -I 'nova:compute' system.reboot while true; do salt -I 'nova:compute' test.ping | fgrep -q 'Not connected' || break; done salt -I 'nova:compute' state.sls linux.network.dpdk -- cgit 1.2.3-korg