Check if snapshot is deleted cleanly.
Check if snapshot is deleted cleanly.

This patch added a check in delete_snapshot to make sure the
snapshot is deleted cleanly.  Without this check, if someone
tries to delete the source volume immediately after the snapshot
deletion, it will fail with error that the volume still has
snapshot.

Closes-Bug: #1286699

Change-Id: Idf4508025b403fa572584e5204b3891375fed6c6

Datera/cinder,duhzecca/cinder,Datera/cinder,sasukeh/cinder,julianwang/cinder,scottdangelo/RemoveVolumeMangerLocks,redhat-openstack/cinder,dims/cinder,Hybrid-Cloud/cinder,tlakshman26/cinder-https-changes,rakeshmi/cinder,CloudServer/cinder,cloudbase/cinder,Akrog/cinder,NetApp/cinder,scality/cinder,Accelerite/cinder,eharney/cinder,j-griffith/cinder,petrutlucian94/cinder,cloudbase/cinder,alex8866/cinder,Thingee/cinder,Thingee/cinder,leilihh/cinder,apporc/cinder,bswartz/cinder,NeCTAR-RC/cinder,bswartz/cinder,mahak/cinder,github-borat/cinder,tlakshman26/cinder-https-changes,potsmaster/cinder,manojhirway/ExistingImagesOnNFS,abusse/cinder,Hybrid-Cloud/cinder,saeki-masaki/cinder,Thingee/cinder,Nexenta/cinder,manojhirway/ExistingImagesOnNFS,alex8866/cinder,spring-week-topos/cinder-week,mahak/cinder,rakeshmi/cinder,blueboxgroup/cinder,scottdangelo/RemoveVolumeMangerLocks,nexusriot/cinder,takeshineshiro/cinder,Nexenta/cinder,Accelerite/cinder,ge0rgi/cinder,spring-week-topos/cinder-week,phenoxim/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,phenoxim/cinder,potsmaster/cinder,j-griffith/cinder,tlakshman26/cinder-new-branch,blueboxgroup/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,abusse/cinder,Paul-Ezell/cinder-1,winndows/cinder,openstack/cinder,winndows/cinder,saeki-masaki/cinder,tlakshman26/cinder-new-branch,hguemar/cinder,eharney/cinder,nikesh-mahalka/cinder,NeCTAR-RC/cinder,takeshineshiro/cinder,hguemar/cinder,sasukeh/cinder,openstack/cinder,Paul-Ezell/cinder-1,JioCloud/cinder,redhat-openstack/cinder,Akrog/cinder,NetApp/cinder,apporc/cinder,duhzecca/cinder,julianwang/cinder,dims/cinder,scality/cinder,github-borat/cinder,petrutlucian94/cinder,nexusriot/cinder,leilihh/cinder,CloudServer/cinder,JioCloud/cinder,nikesh-mahalka/cinder