Avoid loading plugin multiple times
Bug #804237 reported by
Salvatore Orlando
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Salvatore Orlando | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
The API currently loads the plugin multiple times.
Plugin is loaded when the controller is initialized (quantum.
This happens because a distinct instance of QuantumManager is created for each controller. We should have a single instance of QuantumManager, and then pass it to all the controllers.
It would be good to provide this fix as plugins might have instance variables which will end up having different values in the two controllers.
Related branches
lp:~salvatore-orlando/neutron/bug804237
- Brad Hall (community): Approve
- Somik Behera: Approve (netstack-core)
- dan wendlandt: Pending requested
-
Diff: 261 lines (+29/-34)5 files modifiedquantum/api/__init__.py (+8/-7)
quantum/api/api_common.py (+2/-6)
quantum/api/networks.py (+7/-7)
quantum/api/ports.py (+10/-10)
quantum/manager.py (+2/-4)
Changed in quantum: | |
assignee: | nobody → Salvatore Orlando (salvatore-orlando) |
Changed in quantum: | |
status: | New → In Progress |
Changed in quantum: | |
status: | In Progress → Fix Committed |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
Good to know. This could definitely be a problem.