This programming error is coming from set_port_status_down() call, needs to be fixed
2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event [req-b9172e0c-1fa0-4ade-8705-a13c11b8f568 - - - - -] Unexpected exception in notify_loop: UnboundLocalError: local variable 'mac' referenced before assignment 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event Traceback (most recent call last): 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event File "/usr/lib/python2.7/site-packages/ovsdbapp/event.py", line 137, in notify_loop 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event match.run(event, row, updates) 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event File "/usr/lib/python2.7/site-packages/networking_ovn/ovsdb/ovsdb_monitor.py", line 235, in run 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event self.driver.set_port_status_down(row.name) 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 801, in set_port_status_down 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event self._update_dnat_entry_if_needed(port_id, False) 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event File "/usr/lib/python2.7/site-packages/networking_ovn/ml2/mech_driver.py", line 746, in _update_dnat_entry_if_needed 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event LOG.debug("Clearing up external_mac of port %s", port_id, mac) 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event UnboundLocalError: local variable 'mac' referenced before assignment 2019-02-14 19:06:01.991 32 ERROR ovsdbapp.event
Reviewed: https:/ /review. openstack. org/637172 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=a61907e6e28 51b2e5c33793a72 7838b5ca00d330
Committed: https:/
Submitter: Zuul
Branch: master
commit a61907e6e2851b2 e5c33793a727838 b5ca00d330
Author: Daniel Alvarez <email address hidden>
Date: Fri Feb 15 12:52:06 2019 +0100
Fix unbound "mac" variable
There's a DEBUG trace which is using a non existent variable in
that scope and that caused a failure when DEBUG level was enabled.
Closes-Bug: #1816031 bb3f4ad46a7fee3 b2fac325790
Change-Id: I6c77623bd199bc
Signed-off-by: Daniel Alvarez <email address hidden>
Co-Authored-By: Lucas Alvares Gomes <email address hidden>