diff --git a/ceilometer/tests/integration/hooks/post_test_hook.sh b/ceilometer/tests/integration/hooks/post_test_hook.sh index 7fb3ede4..ce442293 100755 --- a/ceilometer/tests/integration/hooks/post_test_hook.sh +++ b/ceilometer/tests/integration/hooks/post_test_hook.sh @@ -54,16 +54,29 @@ sudo -E -H -u ${STACK_USER:-${USER}} tox -eintegration EXIT_CODE=$? if [ $EXIT_CODE -ne 0 ] ; then + set +x + echo "* Heat stack:" heat stack-show integration_test + echo "* Alarm list:" ceilometer alarm-list + echo "* Nova instance list:" openstack server list # TODO(sileht): replace by gnocchiclient when available + echo "* Gnocchi instance list:" 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 "* Nova instance detail:" + openstack server show $instance_id + + echo "* Gnocchi measures for instance ${instance_id}:" + output=$(curl -s -X GET -H 'Content-Type: application/json' -H "X-Auth-Token: $ADMIN_TOKEN" $GNOCCHI_SERVICE_URL/v1/resource/instance/$instance_id/metric/cpu_util/measures) echo $output | python -m "json.tool" || echo -e "\n$output" done + + echo "* Unprocessed measures:" + find $GNOCCHI_DATA_DIR/measures + set -x fi set -e