Skip to content
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

fix race in share network delete #236

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

Conversation

Carthaca
Copy link
Collaborator

We iterate over the share network subnets, send rpc calls to delete
their share servers and then remove the share network subnet and the
share network from the db by using soft delete.

The info from those models is still required to deallocate the
network in the driver, e.g. the neutron plugin needs the neutron
net info.

We don't want the API layer of share network delete to be blocked
waiting for share server deletion, instead we look at the soft deleted
data in the manager handling the share server deletion.
This usually happens shortly after the soft deletion was done, so we
should still be able to find the entries.

Change-Id: I1f23b9e93316cabb7bd32be7bb9b63dbd4eb889f

We iterate over the share network subnets, send rpc calls to delete
their share servers and then remove the share network subnet and the
share network from the db by using soft delete.

The info from those models is still required to deallocate the
network in the driver, e.g. the neutron plugin needs the neutron
net info.

We don't want the API layer of share network delete to be blocked
waiting for share server deletion, instead we look at the soft deleted
data in the manager handling the share server deletion.
This usually happens shortly after the soft deletion was done, so we
should still be able to find the entries.

Change-Id: I1f23b9e93316cabb7bd32be7bb9b63dbd4eb889f
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.

2 participants