[Bug 2077107] Re: set heartbeat_in_pthread default to True if eventlet.wsgi is imported
Arnaud Morin
2077107 at bugs.launchpad.net
Tue Oct 1 07:21:52 UTC 2024
Hello,
We are running heartbeat_in_pthread=True on our local OpenStack (stein,
antelope, whatever) for both wsgi AND nova-compute (but also neutron
wsgi and neutron agents).
To make sure that this works as expected, you will need the latest
changes that were introduced regarding this:
https://review.opendev.org/c/openstack/oslo.messaging/+/894731
https://review.opendev.org/c/openstack/oslo.messaging/+/875615
https://review.opendev.org/c/openstack/oslo.messaging/+/876318
Do you have all of this?
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-oslo.messaging in Ubuntu.
https://bugs.launchpad.net/bugs/2077107
Title:
set heartbeat_in_pthread default to True if eventlet.wsgi is imported
Status in Ubuntu Cloud Archive:
New
Status in Ubuntu Cloud Archive antelope series:
New
Status in Ubuntu Cloud Archive caracal series:
New
Status in Ubuntu Cloud Archive dalmation series:
New
Status in Ubuntu Cloud Archive yoga series:
New
Status in oslo.messaging:
In Progress
Status in python-oslo.messaging package in Ubuntu:
New
Status in python-oslo.messaging source package in Jammy:
New
Status in python-oslo.messaging source package in Noble:
New
Status in python-oslo.messaging source package in Oracular:
New
Bug description:
The fix for https://bugs.launchpad.net/oslo.messaging/+bug/1934937
made heartbeat_in_pthread configurable again with a default of False
so that by default wsgi services will not use pthreads. This will
inevitably result in a behaviour change but also fixes non-wsgi
services that were broken by the default of True. When considering the
backport we were confronted by a new challenge in that users who run a
mix of wsgi and non-wsgi services on the same host that share the same
config file cannot configure them differently and therefore there is
no way to satisfy both cases with the correct config for
heartbeat_in_pthread. Having done a bit of digging into Openstack code
and checking some running services e.g. comparing nova-api (which runs
under apache) and nova-scheduler, it seems that services running as
wsgi import eventlet.wsgi whereas non-wsgi do not so the proposal here
is to have oslo.messaging set default of heartbeat_in_pthread
dynamically based on whether or not this module is imported.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/2077107/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list