Skip to content

Commit

Permalink
fix(LinstorSR): ensure we can skip coalesces if device path can't be …
Browse files Browse the repository at this point in the history
…fetched

Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur committed Dec 11, 2023
1 parent bd9f4bc commit 9a0fa9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,12 @@ def _doCoalesce(self):
def _activateChain(self):
vdi = self
while vdi:
p = self.sr._linstor.get_device_path(vdi.uuid)
try:
p = self.sr._linstor.get_device_path(vdi.uuid)
except Exception as e:
# Use SMException to skip coalesce.
# Otherwise the GC is stopped...
raise util.SMException(str(e))
vdi = vdi.parent

def _setHidden(self, hidden=True):
Expand Down

0 comments on commit 9a0fa9b

Please sign in to comment.