[Bug 2077107] Re: set heartbeat_in_pthread default to True if eventlet.wsgi is imported
Ural Tunaboyu
2077107 at bugs.launchpad.net
Thu Jul 10 20:14:45 UTC 2025
Ubuntu 24.10 (Oracular Oriole) has reached end of life, so this bug will
not be fixed for that specific release.
** Changed in: python-oslo.messaging (Ubuntu Oracular)
Status: New => Won't Fix
--
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 dalmatian series:
New
Status in Ubuntu Cloud Archive yoga series:
New
Status in oslo.messaging:
Won't Fix
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:
Won't Fix
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