← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1343177] [NEW] Lack of singleton guarantee

 

Public bug reported:

The current neutron's code require a singleton in some case, e.g., some class requires to be singleton.
However, there is no mechanism to guarantee this.
For example, in neutron.manager.NeutronManager class, the comments say "The caller should make sure that NeutronManager is a singleton".
This kind of implementation is not only unsafe to assure the protection, but also make the caller to handler unnecessary efforts.

** Affects: neutron
     Importance: Undecided
     Assignee: Baohua Yang (yangbaohua)
         Status: Confirmed

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

** Changed in: neutron
     Assignee: (unassigned) => Baohua Yang (yangbaohua)

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

Title:
  Lack of singleton guarantee

Status in OpenStack Neutron (virtual network service):
  Confirmed

Bug description:
  The current neutron's code require a singleton in some case, e.g., some class requires to be singleton.
  However, there is no mechanism to guarantee this.
  For example, in neutron.manager.NeutronManager class, the comments say "The caller should make sure that NeutronManager is a singleton".
  This kind of implementation is not only unsafe to assure the protection, but also make the caller to handler unnecessary efforts.

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


Follow ups

References