neutron-server crashes when running on an empty database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Aaron Rosen |
Bug Description
operation:
$ mysql
> create database neutron_ml2 character set utf8;
> exit
$ neutron-server --config-file /etc/neutron/
error:
2014-02-28 15:02:46.550 TRACE neutron ProgrammingError: (ProgrammingError) (1146, "Table 'neutron_
investigation:
This problem introduced by https:/
Not that this problem does not occur if nuetron-db-manage is run before running neutron-server since ml2_vlan_
I did skip running neutron-db-manage usually and it was no problem. Is it prohibited now ?
description: | updated |
Changed in neutron: | |
milestone: | none → icehouse-3 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-3 → 2014.1 |
--- a/neutron/ plugins/ ml2/plugin. py plugins/ ml2/plugin. py db_base_ plugin_ v2.NeutronDbPlu ginV2,
+++ b/neutron/
@@ -98,10 +98,10 @@ class Ml2Plugin(
return self._aliases
def __init__(self):
self. type_manager = managers. TypeManager( )
self. mechanism_ manager = managers. MechanismManage r()
self. type_manager. initialize( )
self. mechanism_ manager. initialize( )
+ super(Ml2Plugin, self).__init__()
# First load drivers, then initialize DB, then initialize drivers
- db.initialize()
# bulk support depends on the underlying drivers
-----
This is a part of https:/ /review. openstack. org/#/c/ 74896/
db.initialize() should not be removed or super(Ml2Plugin ,self). __init_ _() should be called at this point. manager. initialize( ).
Note that the error occurs in self.type_