Output some debug info when pingtest fails

Dump out the status of some services and resources when the ping
test fails.  This might help determine where the problem is.

Change-Id: I70225e987a669e896150aef30ab617f4d92faf3e
This commit is contained in:
Ben Nemec 2016-01-28 18:32:26 +00:00 committed by James Slagle
parent b9dcbef5e7
commit 8a61913937
1 changed files with 7 additions and 0 deletions

View File

@ -565,10 +565,17 @@ function overcloud_pingtest {
log "Overcloud pingtest, SUCCESS"
else
ping -c 1 $vm1_ip || :
nova show Server1 || :
nova service-list || :
neutron agent-list || :
nova console-log Server1 || :
log "Overloud pingtest, FAIL"
exitval=1
fi
else
heat stack-show tenant-stack || :
heat event-list tenant-stack || :
heat resource-list -n 5 tenant-stack || :
log "Overcloud pingtest, failed to create heat stack, trying cleanup"
exitval=1
fi