eventlet monkey-patching breaks AMQP heartbeat on uWSGI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Dan Smith | ||
Stein |
In Progress
|
Low
|
sean mooney | ||
Train |
Fix Released
|
Low
|
sean mooney | ||
Ussuri |
Fix Released
|
Low
|
sean mooney |
Bug Description
Stein nova-api running under uWSGI presents an AMQP issue. The first API call that requires RPC creates an AMQP connection and successfully completes. Normally regular heartbeats would be sent from this point on, to maintain the connection. This is not happening. After a few minutes, the AMQP server (rabbitmq, in my case) notices that there have been no heartbeats, and drops the connection. A later nova API call that requires RPC tries to use the old connection, and throws a "connection reset by peer" exception and the API call fails. A mailing-list response suggests that this is affecting mod_wsgi also:
http://
I've discovered that this problem seems to be caused by eventlet monkey-patching, which was introduced in:
https:/
It was later rearranged in:
https:/
but this problem remains.
If I comment out the import of nova.monkey_patch in nova/api/
Seems that eventlet monkey-patching and uWSGI are not getting along for some reason...
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | sean mooney (sean-k-mooney) → Dan Smith (danms) |
Changed in nova: | |
importance: | Undecided → Low |
https:/ /review. opendev. org/#/c/ 647310/ hasn't landed in stable/stein yet, have you tested with it applied?