Comment 0 for bug 1728088

Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

Apparently there's a race in the _wait_for_metadata_provisioned_if_needed() method (networking_ovn/ml2/mech_driver.py module).

Sometimes tempest runs fails with:

Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-packages/ovsdbapp/event.py", line 117, in notify_loop
     match.run(event, row, updates)
   File "/opt/stack/new/networking-ovn/networking_ovn/ovsdb/ovsdb_monitor.py", line 113, in run
     self.driver.set_port_status_up(row.name)
   File "/opt/stack/new/networking-ovn/networking_ovn/ml2/mech_driver.py", line 602, in set_port_status_up
     self._wait_for_metadata_provisioned_if_needed(port_id)
   File "/opt/stack/new/networking-ovn/networking_ovn/ml2/mech_driver.py", line 671, in _wait_for_metadata_provisioned_if_needed
     self._sb_ovn.get_logical_port_chassis_and_datapath(port_id))
 'NoneType' object is not iterable

It seems that by the time the _wait_for_metadata_provisioned_if_needed() is called the logical port doesn't exist yet (or maybe the IDLs cache is not up to date?).

Full error logs: http://paste.openstack.org/show/624840/