This was fixed with commit c9b6c15d5de4d5ee326d7a870c2b2668f7909efa

** Changed in: neutron
       Status: In Progress => Opinion

** Changed in: neutron
       Status: Opinion => Fix Committed

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1192086

Title:
  lbaas plugin should check if the pool is in use by a vip before
  calling the driver and ask it to delete the pool

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  See 
https://github.com/openstack/quantum/blob/master/quantum/services/loadbalancer/plugin.py#L114
      
  The flow:
  1)    The pool record is marked under pending delete
  2)    The driver gets the pool and remove it from device
  a.    The driver manage to remove it from device and now calls 
https://github.com/openstack/quantum/blob/master/quantum/services/loadbalancer/plugin.py#L110
  _delete_db_pool() --- if the pool is in use by a vip, an exception will be 
thrown form 
https://github.com/openstack/quantum/blob/master/quantum/db/loadbalancer/loadbalancer_db.py#L525

  
  How to fix:
  In the plugin code, add :
     vip = context.session.query(Vip).filter_by(pool_id=id).first()
          if vip:
              raise loadbalancer.PoolInUse(pool_id=id)
  to the delete_pool code

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1192086/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to