]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
LBaaS: Fix incorrect pool status change
authorEugene Nikanorov <enikanorov@mirantis.com>
Tue, 22 Oct 2013 13:49:00 +0000 (17:49 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Fri, 25 Oct 2013 10:48:14 +0000 (14:48 +0400)
commitc9b6c15d5de4d5ee326d7a870c2b2668f7909efa
treebc6334fa362d046063262cf65d72fe4ea663340e
parent84a847429ad47f093bbdfa8d454653fc2def0284
LBaaS: Fix incorrect pool status change

Avoid incorrect status change when deleting the pool.
We can check for the conditions prior putting the pool
to PENDING_DELETE state, in case delete conditions are met
it is safe to change the state to PENDING_DELETE.
Also, change create_vip and update_vip operations to respect
PENDING_DELETE and avoid race conditions.

Change-Id: I9f526901eb85bdb83cf4ff8131460eb592c900f8
Closes-Bug: #1242338
neutron/db/loadbalancer/loadbalancer_db.py
neutron/services/loadbalancer/plugin.py
neutron/tests/unit/db/loadbalancer/test_db_loadbalancer.py