local variable 'existing_floating_ips' referenced before assignment in file agent/l3/agent.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Brian Haley |
Bug Description
step:
1. create the the firewall when there is no outer in this tenant.
2. create a router
3. delete the firewall
4. restart the l3-agent.
an exception emit
=======
2015-01-21 15:32:25.173 ERROR neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
2015-01-21 15:32:25.173 TRACE neutron.
Traceback (most recent call last):
File "/usr/local/
func(*args, **kwargs)
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
self.logger(e)
File "/usr/local/
six.
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
self.
File "/opt/stack/
try:
UnboundLocalError: local variable 'existing_
description: | updated |
tags: | added: l3-ipam-dhcp |
Changed in neutron: | |
importance: | Undecided → High |
Changed in neutron: | |
assignee: | yalei wang (yalei-wang) → Brian Haley (brian-haley) |
Changed in neutron: | |
milestone: | none → kilo-rc1 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-rc1 → 2015.1.0 |
after reviewing the code, defer_apply could return IpTablesApplyEx ception, and that make _process_external in agent/l3/agent.py go directly into L554 except (n_exc. FloatingIpSetup Exception, n_exc.IpTablesA pplyException) :
then " local variable 'existing_ floating_ ips' referenced before assignment "