[Bug 2077107] Re: set heartbeat_in_pthread default to True if eventlet.wsgi is imported

James Page 2077107 at bugs.launchpad.net
Mon Sep 23 13:34:59 UTC 2024


** Also affects: python-oslo.messaging (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: python-oslo.messaging (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: python-oslo.messaging (Ubuntu Oracular)
   Importance: Undecided
       Status: New

** Also affects: python-oslo.messaging (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Also affects: cloud-archive
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/caracal
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/yoga
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/dalmation
   Importance: Undecided
       Status: New

** Also affects: cloud-archive/antelope
   Importance: Undecided
       Status: New

-- 
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