Adding code to prevent vip port deletion from port api
When a lbaas port is deleted from the port delete command from
neutron it tries to delete the port but since it is being held
for the vip the database update fails and neutron throws a 500
error
This fix checks if the vip is associated to the port and allows
deletion of the port only if there is no vip associated with the
port
Change-Id: If9f123dedfe86225c52b6d26c76a64e3f5bee15c
Closes-Bug: #1430394
(cherry picked from commit dba6eea593f532b7d7f7b3c1bcd4dee950d6fe18)
Reviewed: https:/ /review. openstack. org/217439 /git.openstack. org/cgit/ openstack/ neutron- lbaas/commit/ ?id=81565481098 16e73a6e12aab1d 7f2358d2c43b99
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 8156548109816e7 3a6e12aab1d7f23 58d2c43b99
Author: Anand Shanmugam <email address hidden>
Date: Tue Apr 21 22:51:56 2015 +0530
Adding code to prevent vip port deletion from port api
When a lbaas port is deleted from the port delete command from
neutron it tries to delete the port but since it is being held
for the vip the database update fails and neutron throws a 500
error
This fix checks if the vip is associated to the port and allows
deletion of the port only if there is no vip associated with the
port
Change-Id: If9f123dedfe862 25c52b6d26c76a6 4e3f5bee15c 7d7f7b3c1bcd4de e950d6fe18)
Closes-Bug: #1430394
(cherry picked from commit dba6eea593f532b