← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1282303] [NEW] all plugins should call __init__ in db_base_plugin for db.configure

 

Public bug reported:

Currently each plugin calls db.configure() within the plugin's __init__
class or defines an initialize() method that's sole job is to call this
method. Instead we should just call the super method of the
db_base_plugin so that it calls this for us automatically.

Note: the only reason why I'm making this change is that I want to add
something to the __init__() class of the db_base_plugin that's needed
for the nova-event-callback blueprint and adding it in the base class of
init looks to be the best place.

** Affects: neutron
     Importance: Medium
     Assignee: Aaron Rosen (arosen)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Aaron Rosen (arosen)

** Changed in: neutron
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1282303

Title:
  all plugins should call __init__ in db_base_plugin for db.configure

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Currently each plugin calls db.configure() within the plugin's
  __init__ class or defines an initialize() method that's sole job is to
  call this method. Instead we should just call the super method of the
  db_base_plugin so that it calls this for us automatically.

  Note: the only reason why I'm making this change is that I want to add
  something to the __init__() class of the db_base_plugin that's needed
  for the nova-event-callback blueprint and adding it in the base class
  of init looks to be the best place.

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


Follow ups

References