← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1268962] [NEW] neutron-server fails to start when using linuxbridge with UnboundLocalError

 

Public bug reported:

# neutron-server 
2014-01-14 14:27:52.167 4801 ERROR neutron.common.legacy [-] Skipping unknown group key: firewall_driver
2014-01-14 14:27:52.433 4801 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2014-01-14 14:27:52.433 4801 TRACE neutron.service Traceback (most recent call last):
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 99, in serve_wsgi
2014-01-14 14:27:52.433 4801 TRACE neutron.service     service.start()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 68, in start
2014-01-14 14:27:52.433 4801 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 112, in _run_wsgi
2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = config.load_paste_app(app_name)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/common/config.py", line 144, in load_paste_app
2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = deploy.loadapp("config:%s" % config_path, name=app_name)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return loadobj(APP, uri, name=name, **kw)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return context.create()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-01-14 14:27:52.433 4801 TRACE neutron.service     **context.local_conf)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = loader.get_app(app_name, global_conf=global_conf)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-01-14 14:27:52.433 4801 TRACE neutron.service     name=name, global_conf=global_conf).create()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2014-01-14 14:27:52.433 4801 TRACE neutron.service     **context.local_conf)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/auth.py", line 59, in pipeline_factory
2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = loader.get_app(pipeline[-1])
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2014-01-14 14:27:52.433 4801 TRACE neutron.service     name=name, global_conf=global_conf).create()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return fix_call(context.object, context.global_conf, **context.local_conf)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/api/v2/router.py", line 72, in factory
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return cls(**local_config)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/api/v2/router.py", line 76, in __init__
2014-01-14 14:27:52.433 4801 TRACE neutron.service     plugin = manager.NeutronManager.get_plugin()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 206, in get_plugin
2014-01-14 14:27:52.433 4801 TRACE neutron.service     return cls.get_instance().plugin
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 201, in get_instance
2014-01-14 14:27:52.433 4801 TRACE neutron.service     cls._create_instance()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/openstack/common/lockutils.py", line 247, in inner
2014-01-14 14:27:52.433 4801 TRACE neutron.service     retval = f(*args, **kwargs)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 195, in _create_instance
2014-01-14 14:27:52.433 4801 TRACE neutron.service     cls._instance = cls()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 120, in __init__
2014-01-14 14:27:52.433 4801 TRACE neutron.service     self.plugin = plugin_klass()
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/plugins/linuxbridge/lb_neutron_plugin.py", line 263, in __init__
2014-01-14 14:27:52.433 4801 TRACE neutron.service     db.sync_network_states(self.network_vlan_ranges)
2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/plugins/linuxbridge/db/l2network_db_v2.py", line 91, in sync_network_states
2014-01-14 14:27:52.433 4801 TRACE neutron.service     'physical_network': physical_network})
2014-01-14 14:27:52.433 4801 TRACE neutron.service UnboundLocalError: local variable 'physical_network' referenced before assignment
2014-01-14 14:27:52.433 4801 TRACE neutron.service 
2014-01-14 14:27:52.436 4801 CRITICAL neutron [-] local variable 'physical_network' referenced before assignment

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  neutron-server fails to start when using linuxbridge with
  UnboundLocalError

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  # neutron-server 
  2014-01-14 14:27:52.167 4801 ERROR neutron.common.legacy [-] Skipping unknown group key: firewall_driver
  2014-01-14 14:27:52.433 4801 ERROR neutron.service [-] Unrecoverable error: please check log for details.
  2014-01-14 14:27:52.433 4801 TRACE neutron.service Traceback (most recent call last):
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 99, in serve_wsgi
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     service.start()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 68, in start
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/service.py", line 112, in _run_wsgi
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = config.load_paste_app(app_name)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/common/config.py", line 144, in load_paste_app
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = deploy.loadapp("config:%s" % config_path, name=app_name)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return loadobj(APP, uri, name=name, **kw)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return context.create()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     **context.local_conf)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = loader.get_app(app_name, global_conf=global_conf)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     name=name, global_conf=global_conf).create()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     **context.local_conf)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/auth.py", line 59, in pipeline_factory
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     app = loader.get_app(pipeline[-1])
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     name=name, global_conf=global_conf).create()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return self.object_type.invoke(self)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return fix_call(context.object, context.global_conf, **context.local_conf)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     val = callable(*args, **kw)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/api/v2/router.py", line 72, in factory
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return cls(**local_config)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/api/v2/router.py", line 76, in __init__
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     plugin = manager.NeutronManager.get_plugin()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 206, in get_plugin
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     return cls.get_instance().plugin
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 201, in get_instance
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     cls._create_instance()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/openstack/common/lockutils.py", line 247, in inner
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     retval = f(*args, **kwargs)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 195, in _create_instance
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     cls._instance = cls()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/manager.py", line 120, in __init__
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     self.plugin = plugin_klass()
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/plugins/linuxbridge/lb_neutron_plugin.py", line 263, in __init__
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     db.sync_network_states(self.network_vlan_ranges)
  2014-01-14 14:27:52.433 4801 TRACE neutron.service   File "/usr/lib64/python2.6/site-packages/neutron/plugins/linuxbridge/db/l2network_db_v2.py", line 91, in sync_network_states
  2014-01-14 14:27:52.433 4801 TRACE neutron.service     'physical_network': physical_network})
  2014-01-14 14:27:52.433 4801 TRACE neutron.service UnboundLocalError: local variable 'physical_network' referenced before assignment
  2014-01-14 14:27:52.433 4801 TRACE neutron.service 
  2014-01-14 14:27:52.436 4801 CRITICAL neutron [-] local variable 'physical_network' referenced before assignment

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


Follow ups

References