In some cases when firewall is created and then deleted in short
period of time, there could be a race condition of firewall status
changes. Agent may change firewall status from PENDING_DELETE to ACTIVE
because the agent has just set it up on the backend.
Delete request then is not properly served and firewall remains in ERROR
state and can't be deleted at all.
To fix this changing status from PENDING_DELETE is not allowed.
Deleting firewall in ERROR state is allowed.
Reviewed: https:/ /review. openstack. org/98956 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=58e6bb58931 86517edafe1a4d5 1710c1362bc9cc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 58e6bb589318651 7edafe1a4d51710 c1362bc9cc
Author: Eugene Nikanorov <email address hidden>
Date: Tue Jun 10 07:55:40 2014 +0400
Fix race condition with firewall deletion
In some cases when firewall is created and then deleted in short
period of time, there could be a race condition of firewall status
changes. Agent may change firewall status from PENDING_DELETE to ACTIVE
because the agent has just set it up on the backend.
Delete request then is not properly served and firewall remains in ERROR
state and can't be deleted at all.
To fix this changing status from PENDING_DELETE is not allowed.
Deleting firewall in ERROR state is allowed.
Change-Id: Iec3cfcb1e03b33 dda8e1f10ca51bd 9b61fa8030d
Closes-Bug: #1328162