Skip to content

Commit

Permalink
fix(LinstorSR): fix bad exception reference during snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur authored and Nambrok committed May 7, 2024
1 parent 5d16c65 commit e093164
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/LinstorSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2500,17 +2500,17 @@ def _snapshot(self, snap_type, cbtlog=None, cbt_consistency=None):
self.session.xenapi.VDI.set_sm_config(
vdi_ref, active_vdi.sm_config
)
except Exception:
except Exception as e:
util.logException('Failed to snapshot!')
try:
self.sr._handle_interrupted_clone(
active_uuid, clone_info, force_undo=True
)
self.sr._journaler.remove(LinstorJournaler.CLONE, active_uuid)
except Exception as e:
except Exception as clean_error:
util.SMlog(
'WARNING: Failed to clean up failed snapshot: {}'
.format(e)
.format(clean_error)
)
raise xs_errors.XenError('VDIClone', opterr=str(e))

Expand Down

0 comments on commit e093164

Please sign in to comment.