Plugin gets loaded twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Salvatore Orlando | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
I believe there was bug earlier which resolved something similar, but I am still seeing this in the latest build (plugin loads exactly twice):
2011-08-25 23:42:54 DEBUG [quantum.service] *******
2011-08-25 23:42:54 DEBUG [quantum.service] Configuration options gathered from config file:
2011-08-25 23:42:54 DEBUG [quantum.service] /root/sw/
2011-08-25 23:42:54 DEBUG [quantum.service] =======
2011-08-25 23:42:54 DEBUG [quantum.service] / quantumversions
2011-08-25 23:42:54 DEBUG [quantum.service] /v1.0 quantumapi
2011-08-25 23:42:54 DEBUG [quantum.service] api_extensions_path extensions
2011-08-25 23:42:54 DEBUG [quantum.service] bind_host 0.0.0.0
2011-08-25 23:42:54 DEBUG [quantum.service] bind_port 9696
2011-08-25 23:42:54 DEBUG [quantum.service] debug True
2011-08-25 23:42:54 DEBUG [quantum.service] verbose True
2011-08-25 23:42:54 DEBUG [quantum.service] *******
2011-08-25 23:42:54 INFO [quantum.service] Using paste.deploy config at: /root/sw/
2011-08-25 23:42:54 DEBUG [quantum.manager] Plugin location:
2011-08-25 23:42:55 DEBUG [quantum.manager] Successfully imported Quantum plug-in.All compatibility tests passed
2011-08-25 23:42:55 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True
2011-08-25 23:42:55 DEBUG [quantum.manager] Plugin location:
2011-08-25 23:42:55 DEBUG [quantum.manager] Successfully imported Quantum plug-in.All compatibility tests passed
2011-08-25 23:42:55 INFO [quantum.
2011-08-25 23:42:55 INFO [quantum.
2011-08-25 23:42:55 DEBUG [quantum.
2011-08-25 23:42:55 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True
2011-08-25 23:42:55 DEBUG [eventlet.
Related branches
- dan wendlandt: Approve
- Somik Behera: Approve (netstack-core)
- Sumit Naiksatam: Approve
-
Diff: 119 lines (+9/-11)8 files modifiedetc/quantum.conf (+1/-1)
quantum/api/__init__.py (+2/-4)
quantum/common/extensions.py (+1/-1)
quantum/manager.py (+1/-1)
quantum/plugins/cisco/tests/unit/test_cisco_extension.py (+1/-1)
tests/unit/client_tools/stubs.py (+1/-1)
tests/unit/test_api.py (+1/-1)
tests/unit/test_cli.py (+1/-1)
Changed in quantum: | |
milestone: | none → diablo-rbp |
Changed in quantum: | |
status: | In Progress → Fix Committed |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
Thanks for reporting this bug.
This is definitely a regression. The root cause is the extension framework, as the following line:
ext_mgr = PluginAwareExte nsionManager( extensions_ path,
QuantumMana ger().get_ plugin( ))
not only invokes the class method get_plugin but also creates an instance of QuantumManager, whose constructor load the plugin.
The fix is very trivial.
A branch has been attached and proposed for merge.