octavia/releasenotes/notes/fix-driver-agent-graceful-shutdown-daff9ffaccb09a9e.yaml
Gregory Thiemonge e33414dba6 Fix driver-agent cleanup
The cleanup function (that handles graceful shutdown) of the Octavia
driver-agent didn't work properly, the threads that were spawned for
stopping the Unix listeners were stuck (deadlock), so the threads leaked
and the join functions in the caller didn't return.

Now the code uses a thread for handling the connections, and the
shutdown function is called from the process.

Story 2010052
Task 45468

Change-Id: Ida33a1a24eab2706902b1ce3cca704d51fa6a599
(cherry picked from commit 51eef0d6d7)
(cherry picked from commit 1a1c5d421f)
2022-07-22 08:55:42 +02:00

8 lines
263 B
YAML

---
fixes:
- |
Fix the shutdown of the driver-agent, the process might have been stuck
while waiting for threads to finish. Systemd would have killed the process
after a timeout, but some children processes might have leaked on the
controllers.