]> 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)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 7 Feb 2014 10:19:30 +0000 (02:19 -0800)
commited83265bb794d38f6f66d9e5182a9abc6b82ed53
tree73f251dc6a95ea60b41ad81733e2191fc930fc81
parent260a9f5935499f44e9160040c4b7018cfc3f08f8
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