commit d08298f0c2b17c8ed4dfcff33acd57bc24cacfc7 Author: gecong1973 Date: Fri Oct 9 20:25:17 2020 -0700 add exception details for provide_snapshot when RuntimeErro Change-Id: I80b0ec7fc7ffeee964b4660060e7023da7bb6dc9 diff --git a/freezer/openstack/osclients.py b/freezer/openstack/osclients.py index 548069f..de13e5a 100644 --- a/freezer/openstack/osclients.py +++ b/freezer/openstack/osclients.py @@ -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