← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1403958] Re: api_extensions_path duplicates cause problems

 

IMO that is configuration problem and it doesn't make much sense to fix
it.

** Changed in: neutron
       Status: New => Opinion

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

Title:
  api_extensions_path duplicates cause problems

Status in OpenStack Neutron (virtual network service):
  Opinion

Bug description:
  When creating api extensions for neutron you need to add the path to
  the extensions to the api_extensions_path param in
  /etc/neutron/neutron.conf.

  The __path__ of neutron.extensions is appended to that, so if one user
  if not careful and adds the __path__ of neutron.extensions to the list
  himself, all the extensions in that path will be imported twice.

  When some extensions are loaded twice errors will occur. For example,
  when the L3 extension is loaded twice, super(L3, self) will crash with
  the following error: TypeError: super(type, obj): obj must be an
  instance or subtype of type. That happens because id(L3) changes when
  the 'l3.py' file is imported the second time and super checks if
  isinstance(self, L3), which will return False.

  To reproduce this bug set api_extensions_path to the __path__ of
  neutron.extensions and restart neutron-server. Check
  /var/log/neutron/server.log for the trace.

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


References