greenlet.error: cannot switch to a different thread

Bug #2043661 reported by Gregory Thiemonge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
New
Undecided
Unassigned

Bug Description

Originally reported in the Octavia project: https://bugs.launchpad.net/octavia/+bug/2039346

The infamous "cannot switch to a different thread" error started to reappear on master at the beginning of the C cycle (around Oct 10 in Octavia) in various projects

Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: Traceback (most recent call last):
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: File "/opt/stack/data/venv/lib/python3.10/site-packages/eventlet/hubs/hub.py", line 476, in fire_timers
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: timer()
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: File "/opt/stack/data/venv/lib/python3.10/site-packages/eventlet/hubs/timer.py", line 59, in __call__
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: cb(*args, **kw)
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: File "/opt/stack/data/venv/lib/python3.10/site-packages/eventlet/semaphore.py", line 147, in _do_acquire
Oct 13 14:45:31.309590 np0035492616 octavia-worker[100077]: waiter.switch()
Oct 13 14:45:31.310105 np0035492616 octavia-worker[100077]: greenlet.error: cannot switch to a different thread

a quick search in opensearch shows that in the last 7 days, this error has occurred in cinder, nova, octavia, oslo.messaging and devstack jobs.

it happens randomly in Octavia, it makes the jobs fail, and we cannot reproduce it locally in our devel env.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.