[Bug 2155160] Re: heat-api.conf references nonexistent WSGI script /usr/bin/heat-api
Launchpad Bug Tracker
2155160 at bugs.launchpad.net
Mon Jun 15 15:52:42 UTC 2026
This bug was fixed in the package heat - 1:26.0.0-0ubuntu2
---------------
heat (1:26.0.0-0ubuntu2) stonking; urgency=medium
* d/heat-api.conf: Point WSGIScriptAlias at the installed
heat-wsgi-api script. (LP: #2155160)
* d/tests/heat-wsgi: Check that enabled Apache vhosts reference installed
WSGI scripts.
-- Guillaume Boutry <guillaume.boutry at canonical.com> Fri, 05 Jun 2026
10:18:52 +0200
** Changed in: heat (Ubuntu Stonking)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to heat in Ubuntu.
https://bugs.launchpad.net/bugs/2155160
Title:
heat-api.conf references nonexistent WSGI script /usr/bin/heat-api
Status in Ubuntu Cloud Archive flamingo series:
New
Status in Ubuntu Cloud Archive gazpacho series:
New
Status in heat package in Ubuntu:
Fix Released
Status in heat source package in Questing:
New
Status in heat source package in Resolute:
New
Status in heat source package in Stonking:
Fix Released
Bug description:
Summary:
When heat-api runs under Apache/mod_wsgi (heat ≥ 25.0.0), Apache is unable to start the heat-api vhost because the WSGI script path in debian/heat-api.conf is wrong. Every heat-api request returns a 500 error, and the Apache error log shows:
"Target WSGI script not found or unable to stat: /usr/bin/heat-api"
Root cause:
The bug was introduced in heat 1:25.0.0~rc1-0ubuntu3 (questing, 2025-09-26) when the heat-api service was migrated from a systemd daemon to Apache/mod_wsgi. The new vhost file debian/heat-api.conf contains:
"WSGIScriptAlias / /usr/bin/heat-api"
However, no heat package installs /usr/bin/heat-api. The actual WSGI
entry-point script, installed by python3-heat, is /usr/bin/heat-wsgi-
api. The sibling vhost file debian/heat-api-cfn.conf is correct
(/usr/bin/heat-wsgi-api-cfn), making this a straightforward typo in
heat-api.conf.
Reproduction:
- Install heat-api on questing or resolute
- a2ensite heat-api && systemctl restart apache2
- curl -i http://localhost:8004/ -> HTTP 500
- grep "heat-api" /var/log/apache2/heat_api_error.log -> Target WSGI script not found or unable to stat: /usr/bin/heat-api
After applying the sed one-liner s|WSGIScriptAlias / /usr/bin/heat-
api$|WSGIScriptAlias / /usr/bin/heat-wsgi-api| to the installed conf
file and restarting apache2, the heat-api endpoint responds normally.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/flamingo/+bug/2155160/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list