]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NVP plugin:fix delete sec group when backend is out of sync
authorSalvatore Orlando <salv.orlando@gmail.com>
Fri, 15 Nov 2013 11:06:19 +0000 (03:06 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:17 +0000 (15:20 +0800)
commit6b1d4982edbda569ff02ed405077d564719a15b8
tree88044783c091766fd91c63a30906c13bba9d6469
parenta939c82141b5ded61121e1200291e8a99b603aa7
NVP plugin:fix delete sec group when backend is out of sync

If a security group does not exist on the NVP backend, an error
should not be raised on deletion of the security group.

This patch changes the plugin behavior by deleting the record
from the database and just logging that the security group
was not found on the NVP backend.

Closes-Bug: #1251422

Change-Id: Ib8adf7a830ff336655fd83ad4118cde641adf284
neutron/plugins/nicira/NeutronPlugin.py
neutron/plugins/nicira/nvplib.py
neutron/tests/unit/nicira/test_nicira_plugin.py