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: Iec3cfcb1e03b33dda8e1f10ca51bd9b61fa8030d
Closes-Bug: #1328162
(cherry picked from commit 58e6bb5893186517edafe1a4d51710c1362bc9cc)
Reviewed: https:/ /review. openstack. org/99200 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d5d345b975c bbfd27fbc215dac fa9fbb5c1f8046
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit d5d345b975cbbfd 27fbc215dacfa9f bb5c1f8046
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 7edafe1a4d51710 c1362bc9cc)
Closes-Bug: #1328162
(cherry picked from commit 58e6bb589318651