X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fironic%2Fironic.sh;h=8f46c8ce11e872cb4ad4c5ea48234a831d7be568;hb=6687e9da29833b50b40ae9075b455fd73bf50666;hp=358dbb90d8a62548c1645f9da657699ca807aa97;hpb=3132fc5e4d956ad3181a9ec0c5f234581f8947b1;p=icn.git diff --git a/deploy/ironic/ironic.sh b/deploy/ironic/ironic.sh index 358dbb9..8f46c8c 100755 --- a/deploy/ironic/ironic.sh +++ b/deploy/ironic/ironic.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -eux -o pipefail +set -eEux -o pipefail SCRIPTDIR="$(readlink -f $(dirname ${BASH_SOURCE[0]}))" LIBDIR="$(dirname $(dirname ${SCRIPTDIR}))/env/lib" @@ -9,6 +9,11 @@ source $LIBDIR/common.sh NAMEPREFIX="capm3" +trap err_exit ERR +function err_exit { + kubectl get all -n ${NAMEPREFIX}-system +} + # This may be used to update the in-place Ironic YAML files from the # upstream project. We cannot use the upstream sources directly as # they require an envsubst step before kustomize build.