Extract CommonDBMixin into a separate module

Bug #1340145 reported by Eugene Nikanorov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Wishlist
Eugene Nikanorov

Bug Description

Several service plugins are inheritig from CommonDBMixin which has a few utulity methods.

Right now CommonDBMixin resides in db_base_plugin_v2.py so those plugins require to import it.
In some cases it is undesirable and can lead to cycles in imports,
so CommonDBMixin needs to be extracted into a different module

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/105709
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=cbd89e75d34c048c15c52dc828b1df7443c540d6
Submitter: Jenkins
Branch: master

commit cbd89e75d34c048c15c52dc828b1df7443c540d6
Author: Eugene Nikanorov <email address hidden>
Date: Wed Jul 9 14:47:01 2014 +0400

    Extract CommonDBMixin to a separate file

    db_base_plugin_v2 imports too much modules that are not necessary
    usually, so extract CommonDBMixin in different file.
    Plus using db_base_plugin_v2 for some types of modules can lead to
    cycles in imports, this refactoring should resolve the issue.

    Closes-Bug: #1340145
    Change-Id: Idb027d7c5cee2d5bc7598f805c56c55fd4aca048

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.