Skip to content

[SAP] Improve parallel creation from snapshot/volume #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: stable/wallaby-m3
Choose a base branch
from

Conversation

leust
Copy link

@leust leust commented May 29, 2025

The source volume/snapshot was locked while the new volume was creating, preventing other volumes from being created in parallel from the same source. This was to prevent the source from being deleted while the volume is being created from it.

We move that lock from the manager upper to the API layer until the volume reaches the 'creating' state, then the lock is released.

The delete_snapshot / delete_volume will check the DB if there are volumes creating from it before proceeding with the deletion.

The caveat is that, if a volume is stuck in 'creating', it will still prevent the source from being deleted.

Change-Id: I8be26242474a2b4eba676978b533f8cad40e292b

The source volume/snapshot was locked while the new volume was
creating, preventing other volumes from being created in parallel
from the same source. This was to prevent the source from being
deleted while the volume is being created from it.

We move that lock from the manager upper to the API layer until the
volume reaches the 'creating' state, then the lock is released.

The delete_snapshot / delete_volume will check the DB if there are
volumes creating from it before proceeding with the deletion.

The caveat is that, if a volume is stuck in 'creating', it will
still prevent the source from being deleted.

Change-Id: I8be26242474a2b4eba676978b533f8cad40e292b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant