← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2065459] [NEW] ovn-octvia-provider: RuntimeError: cannot join current thread

 

Public bug reported:

The Python garbage collector can run in any thread, and sometimes that
thread will be the same thread where shutdown() tries to cal
thread.join(). This prevents the rest of the cleanup.

Exception ignored in: <function OvnProviderDriver.__del__ at 0x7f5639307af0>
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/driver.py", line 44, in __del__
    self._ovn_helper.shutdown()
  File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/helper.py", line 126, in shutdown
    self.ovn_nbdb.stop()
  File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/ovsdb/impl_idl_ovn.py", line 276, in stop
    if not self.conn.stop(timeout=config.get_ovn_ovsdb_timeout()):
  File "/usr/lib/python3.9/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 131, in stop
    self.thread.join(timeout)
  File "/usr/lib64/python3.9/threading.py", line 1057, in join
    raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: ovn-octavia-provider

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2065459

Title:
  ovn-octvia-provider: RuntimeError: cannot join current thread

Status in neutron:
  New

Bug description:
  The Python garbage collector can run in any thread, and sometimes that
  thread will be the same thread where shutdown() tries to cal
  thread.join(). This prevents the rest of the cleanup.

  Exception ignored in: <function OvnProviderDriver.__del__ at 0x7f5639307af0>
  Traceback (most recent call last):
    File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/driver.py", line 44, in __del__
      self._ovn_helper.shutdown()
    File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/helper.py", line 126, in shutdown
      self.ovn_nbdb.stop()
    File "/usr/lib/python3.9/site-packages/ovn_octavia_provider/ovsdb/impl_idl_ovn.py", line 276, in stop
      if not self.conn.stop(timeout=config.get_ovn_ovsdb_timeout()):
    File "/usr/lib/python3.9/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 131, in stop
      self.thread.join(timeout)
    File "/usr/lib64/python3.9/threading.py", line 1057, in join
      raise RuntimeError("cannot join current thread")
  RuntimeError: cannot join current thread

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



Follow ups