integration: Add debugging information
In case of debugging a failure having the last stack errors the nova instances list and the alarm list help. This change adds them. Change-Id: Ic3f51533341f4fe2b44c5b6dbe0538ef3a53cc91
This commit is contained in:
parent
40be122a8b
commit
d858f0f67b
@ -52,6 +52,20 @@ set +e
|
||||
|
||||
sudo -E -H -u ${STACK_USER:-${USER}} tox -eintegration
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [ $EXIT_CODE -ne 0 ] ; then
|
||||
heat stack-show integration_test
|
||||
ceilometer alarm-list
|
||||
openstack server list
|
||||
|
||||
# TODO(sileht): replace by gnocchiclient when available
|
||||
curl -s -X GET -H 'Content-Type: application/json' -H "X-Auth-Token: $ADMIN_TOKEN" $GNOCCHI_SERVICE_URL/v1/resource/instance | python -m "json.tool"
|
||||
for instance_id in $(openstack server list -f value -c ID); do
|
||||
output=$(curl -s -X GET -H 'Content-Type: application/json' -H "X-Auth-Token: $ADMIN_TOKEN" $GNOCCHI_SERVICE_URL/v1/resource/instance/$instance_id)
|
||||
echo $output | python -m "json.tool" || echo -e "\n$output"
|
||||
done
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
# Collect and parse result
|
||||
|
Loading…
x
Reference in New Issue
Block a user