Skip to content

Check heartbeat_in_pthread for nova WSGI apps - #1440

Open
xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:lp2073260-wsgi-heartbeat
Open

xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:lp2073260-wsgi-heartbeat

Conversation

@xtrusia

@xtrusia xtrusia commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

nova-cloud-controller renders
/etc/nova/mod_wsgi.conf.d/oslo-messaging-rabbit.conf so that only the nova API WSGI apps run with heartbeat_in_pthread = True.

Check the rendered value from Train up to 2025.2.

Related-Bug: #2073260

nova-cloud-controller renders
/etc/nova/mod_wsgi.conf.d/oslo-messaging-rabbit.conf so that only the
nova API WSGI apps run with heartbeat_in_pthread = True. Check the
rendered value from Train, where oslo.messaging added the option,
up to 2025.2.

Related-Bug: #2073260
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
openstackadmin pushed a commit to openstack/charm-nova-cloud-controller that referenced this pull request Nov 3, 2026
Since oslo.messaging defaults heartbeat_in_pthread to False, nova API
services under Apache mod_wsgi send AMQP heartbeats from green threads.
Render /etc/nova/mod_wsgi.conf.d/oslo-messaging-rabbit.conf with
heartbeat_in_pthread = True so only the WSGI apps pick it up.

This only applies from Train, where oslo.messaging added the option,
up to 2025.2. From 2026.1 these apps use native threading and their own
prog name, so the file is not needed there.

Closes-Bug: #2073260
Func-Test-PR: openstack-charmers/zaza-openstack-tests#1440
Change-Id: I40323261b05c97ba3fdadf8a948208eb5b36e761
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
openstackadmin pushed a commit to openstack/openstack that referenced this pull request Nov 3, 2026
* Update charm-nova-cloud-controller from branch 'master'
  to dd4cf82a80d9be1628edd25f338dce0d23e520bf
  - Merge "Enable heartbeat_in_pthread for nova WSGI apps"
  - Enable heartbeat_in_pthread for nova WSGI apps
    
    Since oslo.messaging defaults heartbeat_in_pthread to False, nova API
    services under Apache mod_wsgi send AMQP heartbeats from green threads.
    Render /etc/nova/mod_wsgi.conf.d/oslo-messaging-rabbit.conf with
    heartbeat_in_pthread = True so only the WSGI apps pick it up.
    
    This only applies from Train, where oslo.messaging added the option,
    up to 2025.2. From 2026.1 these apps use native threading and their own
    prog name, so the file is not needed there.
    
    Closes-Bug: #2073260
    Func-Test-PR: openstack-charmers/zaza-openstack-tests#1440
    Change-Id: I40323261b05c97ba3fdadf8a948208eb5b36e761
    Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants