add exception details for provide_snapshot when RuntimeErro
Change-Id: I80b0ec7fc7ffeee964b4660060e7023da7bb6dc9
This commit is contained in:
parent
749d94a6f0
commit
d08298f0c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue