]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve error handling when nvp and quantum are out of sync
authorAaron Rosen <arosen@nicira.com>
Sun, 17 Feb 2013 00:26:14 +0000 (16:26 -0800)
committerAaron Rosen <arosen@nicira.com>
Mon, 18 Feb 2013 02:41:33 +0000 (18:41 -0800)
commitf9aba49e05af6f69a6fca8b61c2e7a14d9b78e11
tree0c3c0fae98fc5910d71809d13987e88b7ca873a7
parent21ce1ab17f1c2f3b1017b75a8d3f8f8a3f9e939f
Improve error handling when nvp and quantum are out of sync

Previouly when nvp and quantum were out of sync an exception would
be raised notifying the user of this. This patch changes the behavior so that
now when  elements are found in the quantum db but not in NVP they are
put into error state. In addition there error state elements are now able
to be deleted if not found in nvp.

This patch also removes outdated doc strings that seem to keep being adding.

Fixes bug 1127643

Change-Id: I3e79ab7a284e61623cd63fefc3755746b8e4dfd7
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
quantum/plugins/nicira/nicira_nvp_plugin/common/exceptions.py
quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py
quantum/tests/unit/nicira/fake_nvpapiclient.py
quantum/tests/unit/nicira/test_nicira_plugin.py