add worlddump at moments of success to compare in failures

We still have an intermittent connectivity problem in grenade, doing
dumps during normal runs at points of success might help us figure out
what went horribly wrong.

Change-Id: I835071d04d3fa463a9c710c80850ae35f40f7aa5
This commit is contained in:
Sean Dague 2015-06-22 14:07:55 -04:00
parent 634345b08a
commit 818c69bb7a
3 changed files with 9 additions and 1 deletions

View File

@ -100,7 +100,8 @@ function resources {
local resource=$dir/resources.sh
if [[ -e $resource ]]; then
# NOTE(sdague): we might need to set topdir differently?
TOP_DIR=$BASE_DEVSTACK_DIR $resource $phase || die $LINENO "Failed to run ``$resource $phase``"
TOP_DIR=$BASE_DEVSTACK_DIR LOGDIR=$LOGDIR \
$resource $phase || die $LINENO "Failed to run ``$resource $phase``"
fi
done
}

View File

@ -92,6 +92,9 @@ function create {
resource_save nova nova_server_float $id
openstack ip floating add $ip $NOVA_SERVER
# NOTE(sdague): for debugging when things go wrong, so we have a
# before and an after
worlddump
}
function verify {

View File

@ -145,6 +145,10 @@ function create {
break
fi
done
# NOTE(sdague): for debugging when things go wrong, so we have a
# before and an after
worlddump
}
function verify {