add exception details for provide_snapshot when RuntimeErro

Change-Id: I80b0ec7fc7ffeee964b4660060e7023da7bb6dc9
This commit is contained in:
gecong1973 2020-10-09 20:25:17 -07:00
parent 749d94a6f0
commit d08298f0c2
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,8 @@ class OSClientManager(object):
except RuntimeError:
LOG.info("Delete snapshot in error state " + snapshot.id)
self.get_cinder().volume_snapshots.delete(snapshot)
raise
raise Exception("Delete snapshot in error"
" state " + snapshot.id)
except Exception as e:
LOG.exception(e)
return snapshot