Skip to content

Commit

Permalink
drivers/lightos: extend_volume quit retry if volume not found
Browse files Browse the repository at this point in the history
  • Loading branch information
yogev-lb committed Jan 14, 2022
1 parent 69abb64 commit 89d1c55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cinder/volume/drivers/lightos/lightos.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ def extend_volume(self, volume, size):
finished = self._extend_volume(volume, size)
if finished:
break
except exception.VolumeNotFound as e:
raise e
except Exception as e:
# bail out if the time out elapsed...
if time.time() >= end:
Expand Down

0 comments on commit 89d1c55

Please sign in to comment.