← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1185080] Re: Unnecessary checks for MultipleResultsFound in db_base_plugin_v2 and other db plugins

 

** 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/1185080

Title:
  Unnecessary checks for MultipleResultsFound in db_base_plugin_v2 and
  other db plugins

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

Bug description:
  Several methods of QuantumDbPluginV2 like:
  * _get_network
  * _get_subnet
  * _get_port
  etc
  are checking for exc.MultipleResultsFound exception to be raised from query.one() call.
  All of those methods are querying objects using their id which is model PK for all of the models, so such exception is never thrown.

  Some other plugins have that as well.

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