** Description changed:

+ [ 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`
+    `apt install openstack-dashboard python3-heat-dashboard`
  
  2. Observe `openstack-dashboard` postinst running `collectstatic` and
-    `compress` after both packages are staged.
- 
+    `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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155142

Title:
  python3-heat-dashboard misses template generator static assets

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/gazpacho/+bug/2155142/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to