the local vairable physical_network should be alloc.physical_network

Bug #1091664 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Gary Kotton
Folsom
Fix Released
High
Gary Kotton

Bug Description

root@controller:~# quantum-server --config-file /etc/quantum/quantum.conf --log-file /var/log/quantum/server.log --config-file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --config-file /etc/quantum/plugins/restproxy/restproxy.ini
Traceback (most recent call last):
  File "/usr/bin/quantum-server", line 26, in <module>
    server()
  File "/usr/lib/python2.7/dist-packages/quantum/server/__init__.py", line 40, in main
    quantum_service = service.serve_wsgi(service.QuantumApiService)
  File "/usr/lib/python2.7/dist-packages/quantum/service.py", line 83, in serve_wsgi
    service.start()
  File "/usr/lib/python2.7/dist-packages/quantum/service.py", line 42, in start
    self.wsgi_app = _run_wsgi(self.app_name)
  File "/usr/lib/python2.7/dist-packages/quantum/service.py", line 89, in _run_wsgi
    app = config.load_paste_app(app_name)
  File "/usr/lib/python2.7/dist-packages/quantum/common/config.py", line 133, in load_paste_app
    app = deploy.loadapp("config:%s" % config_path, name=app_name)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
    **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory
    app = loader.get_app(app_name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
    name=name, global_conf=global_conf).create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
    **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/quantum/auth.py", line 61, in pipeline_factory
    app = loader.get_app(pipeline[-1])
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
    name=name, global_conf=global_conf).create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/quantum/api/v2/router.py", line 67, in factory
    return cls(**local_config)
  File "/usr/lib/python2.7/dist-packages/quantum/api/v2/router.py", line 71, in __init__
    plugin = manager.QuantumManager.get_plugin()
  File "/usr/lib/python2.7/dist-packages/quantum/manager.py", line 65, in get_plugin
    cls._instance = cls()
  File "/usr/lib/python2.7/dist-packages/quantum/manager.py", line 60, in __init__
    self.plugin = plugin_klass()
  File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 197, in __init__
    ovs_db_v2.sync_vlan_allocations(self.network_vlan_ranges)
  File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_db_v2.py", line 112, in sync_vlan_allocations
    (alloc.vlan_id, physical_network))
UnboundLocalError: local variable 'physical_network' referenced before assignment

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/18310

Changed in quantum:
assignee: nobody → Gary Kotton (garyk)
status: New → In Progress
Gary Kotton (garyk)
tags: added: folsom-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/18310
Committed: http://github.com/openstack/quantum/commit/71a747251a08df1f322ba0c8d34f588a9ec188c8
Submitter: Jenkins
Branch: master

commit 71a747251a08df1f322ba0c8d34f588a9ec188c8
Author: Gary Kotton <email address hidden>
Date: Tue Dec 18 13:40:38 2012 +0000

    Fix log message for unreferenced variable

    Fixed bug 1091664

    Change-Id: I83110fd8d05d8a5168cbc21ce78c3c44d01c7ae1

Changed in quantum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/18575

Gary Kotton (garyk)
Changed in quantum:
importance: Undecided → High
milestone: none → grizzly-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (stable/folsom)

Reviewed: https://review.openstack.org/18575
Committed: http://github.com/openstack/quantum/commit/88261ce272e25828b30eb7a0b16b2c18ad4f9903
Submitter: Jenkins
Branch: stable/folsom

commit 88261ce272e25828b30eb7a0b16b2c18ad4f9903
Author: Gary Kotton <email address hidden>
Date: Tue Dec 18 13:40:38 2012 +0000

    Fix log message for unreferenced variable

    Fixed bug 1091664

    Change-Id: I83110fd8d05d8a5168cbc21ce78c3c44d01c7ae1

tags: added: in-stable-folsom
Gary Kotton (garyk)
tags: removed: folsom-backport-potential
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Mark McLoughlin (markmc)
tags: removed: in-stable-folsom
Thierry Carrez (ttx)
Changed in quantum:
milestone: grizzly-2 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.