Skip to content

[stable/bobcat] Check heartbeat_in_pthread for nova WSGI apps - #1442

Open
xtrusia wants to merge 1 commit into
openstack-charmers:stable/bobcatfrom
xtrusia:lp2073260-wsgi-heartbeat-stable-bobcat
Open

xtrusia wants to merge 1 commit into
openstack-charmers:stable/bobcatfrom
xtrusia:lp2073260-wsgi-heartbeat-stable-bobcat

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.

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.

Related-Bug: #2073260
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
(cherry picked from commit c83e7ac)
openstackadmin pushed a commit to openstack/charm-nova-cloud-controller that referenced this pull request Nov 5, 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.

Backport note: the release check is dropped because this branch only
covers releases after Train and before 2026.1, and its charmhelpers
does not know 'gazpacho'.

Closes-Bug: #2073260
Func-Test-PR: openstack-charmers/zaza-openstack-tests#1442
Change-Id: I40323261b05c97ba3fdadf8a948208eb5b36e761
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
(cherry picked from commit b9e727a)
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.

1 participant