Catch ssh exception and detach in min scenario
Catch ssh exception and detach in min scenario

The test_minimum_basic test goes through a number of tests however
doesn't do any clean up if a failur occurs.  The master clean-up
routine is ok, but it doesn't account for things like attached volumes.

One issue here is that the ssh_to_server times out do to some other
problem and raises an SSHTimeout exception.  This exception isn't dealt
with, the test dumps out and tries to cleanup by deleting the instance
and the volume, but the volume-delete will fail because it's status is
still in-use.

This exposes another problem, it seems that nova delete will clean up
an instance but fairly regular neglect to detach the volume. This patch
add an addCleanup() call to nova.volume_detach.

Change-Id: I76d19f096d6cb4122eea2e7e5de4eb37b97a4b87
Partial-Bug: #1213215

nunogt/tempest,vmahuli/tempest,rakeshmi/tempest,pczerkas/tempest,NexusIS/tempest,hayderimran7/tempest,akash1808/tempest,neerja28/Tempest,hayderimran7/tempest,bigswitch/tempest,Juraci/tempest,Juniper/tempest,manasi24/jiocloud-tempest-qatempest,Lilywei123/tempest,Mirantis/tempest,queria/my-tempest,nunogt/tempest,xbezdick/tempest,dkalashnik/tempest,tudorvio/tempest,yamt/tempest,queria/my-tempest,CiscoSystems/tempest,alinbalutoiu/tempest,openstack/tempest,jamielennox/tempest,vedujoshi/tempest,afaheem88/tempest,JioCloud/tempest,redhat-cip/tempest,pandeyop/tempest,Tesora/tesora-tempest,FujitsuEnablingSoftwareTechnologyGmbH/tempest,masayukig/tempest,zsoltdudas/lis-tempest,neerja28/Tempest,danielmellado/tempest,jaspreetw/tempest,flyingfish007/tempest,vmahuli/tempest,manasi24/tempest,izadorozhna/tempest,manasi24/tempest,NexusIS/tempest,pczerkas/tempest,cisco-openstack/tempest,Lilywei123/tempest,pandeyop/tempest,rzarzynski/tempest,vedujoshi/tempest,cloudbase/lis-tempest,xbezdick/tempest,izadorozhna/tempest,yamt/tempest,vedujoshi/os_tempest,tonyli71/tempest,eggmaster/tempest,Vaidyanath/tempest,hpcloud-mon/tempest,flyingfish007/tempest,dkalashnik/tempest,tonyli71/tempest,roopali8/tempest,openstack/tempest,FujitsuEnablingSoftwareTechnologyGmbH/tempest,varunarya10/tempest,roopali8/tempest,CiscoSystems/tempest,sebrandon1/tempest,tudorvio/tempest,rakeshmi/tempest,jamielennox/tempest,danielmellado/tempest,LIS/lis-tempest,Tesora/tesora-tempest,eggmaster/tempest,vedujoshi/os_tempest,Juraci/tempest,ntymtsiv/tempest,manasi24/jiocloud-tempest-qatempest,jaspreetw/tempest,ntymtsiv/tempest,bigswitch/tempest,LIS/lis-tempest,Juniper/tempest,masayukig/tempest,zsoltdudas/lis-tempest,cisco-openstack/tempest,afaheem88/tempest_neutron,afaheem88/tempest,Vaidyanath/tempest,ebagdasa/tempest,ebagdasa/tempest,hpcloud-mon/tempest,rzarzynski/tempest,JioCloud/tempest,sebrandon1/tempest,Mirantis/tempest,varunarya10/tempest,redhat-cip/tempest,cloudbase/lis-tempest,afaheem88/tempest_neutron,akash1808/tempest,alinbalutoiu/tempest