[Bug 2155142] Re: python3-heat-dashboard misses template generator static assets
Launchpad Bug Tracker
2155142 at bugs.launchpad.net
Thu Sep 17 18:55:41 UTC 2026
This bug was fixed in the package heat-dashboard - 15.0.0-0ubuntu1.1
---------------
heat-dashboard (15.0.0-0ubuntu1.1) resolute; urgency=medium
* d/p/restore-manifest-package-data.patch: force include static
assets. (LP: #2155142)
* d/control: add missing python3 dependency.
-- Guillaume Boutry <guillaume.boutry at canonical.com> Wed, 12 Aug 2026
10:55:00 +0200
** Changed in: heat-dashboard (Ubuntu Resolute)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/2155142
Title:
python3-heat-dashboard misses template generator static assets
Status in Ubuntu Cloud Archive gazpacho series:
Fix Committed
Status in OpenStack Snap:
Triaged
Status in OpenStack Snap 2026.1 series:
Triaged
Status in heat-dashboard package in Ubuntu:
Fix Released
Status in heat-dashboard source package in Resolute:
Fix Released
Status in heat-dashboard source package in Stonking:
Fix Released
Bug description:
[ Impact ]
* The Resolute `python3-heat-dashboard` package can omit templates and static
files from the installed `heat_dashboard` module. Heat panels in Horizon may
then show missing-template errors, missing assets, or broken styling and
JavaScript.
* This prevents users from reliably using the Heat Dashboard panels.
* The upload restores package-data declarations for the required HTML, SCSS,
CSS, JavaScript, image, and JSON files. It also corrects the Python runtime
dependency generated for `heat-dashboard-common`.
[ Test Plan ]
* Use a disposable Resolute system. Before enabling `resolute-proposed`,
install `python3-heat-dashboard` and `heat-dashboard-common`, then record
the installed versions and packaged non-Python files:
sudo apt update
sudo apt install python3-heat-dashboard heat-dashboard-common
dpkg-query -W -f='${Package} ${Version}\n' python3-heat-dashboard heat-dashboard-common
dpkg -L python3-heat-dashboard | grep '/heat_dashboard/.*\(html\|scss\|css\|js\|svg\|png\|json\)$'
* On a configured Horizon deployment, open **Project > Orchestration > Stacks**
and Template Generator. Record missing-template errors, asset 404s, or
missing styling and JavaScript functionality.
* Enable `resolute-proposed`, install the candidate versions of both packages,
and confirm APT selected the proposed build.
* Confirm the candidate contains representative panel assets:
PACKAGE_ROOT=/usr/lib/python3/dist-packages/heat_dashboard
test -f "$PACKAGE_ROOT/content/stacks/templates/stacks/index.html"
test -f "$PACKAGE_ROOT/static/dashboard/project/heat_dashboard/template_generator/css/hotgen-main.scss"
test -f "$PACKAGE_ROOT/static/dashboard/project/heat_dashboard/template_generator/js/components/template-generator.module.js"
* Run the deployment's normal Horizon static-asset collection and reload its
web service. Recheck the two Heat panels and one unrelated Horizon panel.
Confirm pages render, assets load, and Template Generator JavaScript works.
[ Where problems could occur ]
* An incomplete or incorrectly located manifest entry would still leave Django
templates or static assets absent. The symptoms would be missing templates,
asset 404s, unstyled panels, or non-working JavaScript.
* The recursive package-data rule may include unexpected files. Package-size
growth, file collisions on upgrade, or a failure in Horizon static collection
would indicate a regression.
`python3-heat-dashboard` 15.0.0-0ubuntu1 installs Horizon enabled
files that reference Heat template generator static assets, but the
binary package does not include those assets.
This breaks `openstack-dashboard` package configuration when
`openstack-dashboard` and `python3-heat-dashboard` are installed
together in the same apt transaction.
## Affected Packages
- Source package: `heat-dashboard`
- Binary package: `python3-heat-dashboard`
- Version: `15.0.0-0ubuntu1`
- Ubuntu series observed: `resolute`
- Related package: `openstack-dashboard` `4:25.7.1-0ubuntu1`
## Steps to Reproduce
1. In a clean resolute environment, install both packages in one transaction:
`apt install openstack-dashboard python3-heat-dashboard`
2. Observe `openstack-dashboard` postinst running `collectstatic` and
`compress` after both packages are staged.
## Error observed
CommandError: An error occurred during rendering horizon/_scripts.html:
'dashboard/project/heat_dashboard/template_generator/js/components/template-generator.module.js' could not be found in the COMPRESS_ROOT '/var/lib/openstack-dashboard/static' or with staticfiles.
Can also be reproduced when running autopkgtests for heat-dashboard.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/gazpacho/+bug/2155142/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list