← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1413111] [NEW] local variable 'existing_floating_ips' referenced before assignment in file agent/l3/agent.py

 

Public bug reported:

can't remember the order to add firewall and router. And then restart
the l3-agent.

an exception emit, will add more info later.

=====================================

2015-01-21 15:32:25.173 ERROR neutron.agent.l3.agent [req-f53cd6a8-094d-45d9-968c-4db962d5ecb4 None 12558d21504946d0a4bc9994409118cd] local variable 'existing_floating_ips' referenced before assignment
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent Traceback (most recent call last):
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/common/utils.py", line 341, in call
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     return func(*args, **kwargs)
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 566, in process_router
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     self._process_external(ri)
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 535, in _process_external
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     try:
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent UnboundLocalError: local variable 'existing_floating_ips' referenced before assignment
2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
    func(*args, **kwargs)
  File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1075, in _process_router_update
    self._process_router_if_compatible(router)
  File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1029, in _process_router_if_compatible
    self._process_added_router(router)
  File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1038, in _process_added_router
    self.process_router(ri)
  File "/opt/stack/neutron/neutron/common/utils.py", line 344, in call
    self.logger(e)
  File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
    six.reraise(self.type_, self.value, self.tb)
  File "/opt/stack/neutron/neutron/common/utils.py", line 341, in call
    return func(*args, **kwargs)
  File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 566, in process_router
    self._process_external(ri)
  File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 535, in _process_external
    try:
UnboundLocalError: local variable 'existing_floating_ips' 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/1413111

Title:
  local variable 'existing_floating_ips' referenced before assignment in
  file agent/l3/agent.py

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  can't remember the order to add firewall and router. And then restart
  the l3-agent.

  an exception emit, will add more info later.

  =====================================

  2015-01-21 15:32:25.173 ERROR neutron.agent.l3.agent [req-f53cd6a8-094d-45d9-968c-4db962d5ecb4 None 12558d21504946d0a4bc9994409118cd] local variable 'existing_floating_ips' referenced before assignment
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent Traceback (most recent call last):
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/common/utils.py", line 341, in call
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     return func(*args, **kwargs)
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 566, in process_router
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     self._process_external(ri)
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent   File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 535, in _process_external
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent     try:
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent UnboundLocalError: local variable 'existing_floating_ips' referenced before assignment
  2015-01-21 15:32:25.173 TRACE neutron.agent.l3.agent 
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 82, in _spawn_n_impl
      func(*args, **kwargs)
    File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1075, in _process_router_update
      self._process_router_if_compatible(router)
    File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1029, in _process_router_if_compatible
      self._process_added_router(router)
    File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 1038, in _process_added_router
      self.process_router(ri)
    File "/opt/stack/neutron/neutron/common/utils.py", line 344, in call
      self.logger(e)
    File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 82, in __exit__
      six.reraise(self.type_, self.value, self.tb)
    File "/opt/stack/neutron/neutron/common/utils.py", line 341, in call
      return func(*args, **kwargs)
    File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 566, in process_router
      self._process_external(ri)
    File "/opt/stack/neutron/neutron/agent/l3/agent.py", line 535, in _process_external
      try:
  UnboundLocalError: local variable 'existing_floating_ips' referenced before assignment

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


Follow ups

References