Set INTROSPECT_NODES before calling register-nodes

The register-nodes in tripleo.sh is expecting INTROSPECT_NODES to be
set in order to actually introspect the nodes. This sets it, then unsets
after the --register-nodes call so that it doesn't leak anywhere.

Change-Id: I6f39a19f51ad94c9ad541856083991d98ee63a52
Closes-Bug: #1659931
This commit is contained in:
Brad P. Crochet 2017-01-27 14:42:44 -05:00
parent 88906199a1
commit f1c9600b25
1 changed files with 5 additions and 0 deletions

View File

@ -211,7 +211,12 @@ if [ "$OSINFRA" = "0" ]; then
record_metric "tripleo.overcloud.${TOCI_JOBTYPE}.image.size_mb" "$OVERCLOUD_IMAGE_MB"
start_metric "tripleo.register.nodes.seconds"
if [ $INTROSPECT == 1 ]; then
export INTROSPECT_NODES=1
fi
$TRIPLEO_ROOT/tripleo-ci/scripts/tripleo.sh --register-nodes
# We don't want to keep this set for further calls to tripleo.sh
unset INTROSPECT_NODES
stop_metric "tripleo.register.nodes.seconds"
if [ $INTROSPECT == 1 ] ; then