CommandError: An error occurred during rendering

Bug #1615763 reported by Eric K
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned
congress
Confirmed
Low
Unassigned
devstack
Invalid
Undecided
Unassigned

Bug Description

Repeatedly seeing the following error during devstack setup in tempest tests in Congress (for example: http://logs.openstack.org/57/356157/4/check/gate-congress-dsvm-api/70474ca/logs/devstack-early.txt.gz [also attached]). Any idea whether it's a horizon bug or devstack bug or user error on Congress side? Thanks so much!

2016-08-22 04:09:07.389 | 1658 static files copied to '/opt/stack/new/horizon/static'.
2016-08-22 04:09:09.017 | Found 'compress' tags in:
2016-08-22 04:09:09.017 | /opt/stack/new/horizon/openstack_dashboard/templates/horizon/_conf.html
2016-08-22 04:09:09.017 | /opt/stack/new/horizon/openstack_dashboard/templates/horizon/_scripts.html
2016-08-22 04:09:09.017 | /opt/stack/new/congress/congress_dashboard/templates/admin/base.html
2016-08-22 04:09:09.017 | /opt/stack/new/horizon/openstack_dashboard/templates/_stylesheets.html
2016-08-22 04:09:09.017 | /opt/stack/new/congress/congress_dashboard/templates/admin/_scripts.html
2016-08-22 04:09:09.875 | Compressing... CommandError: An error occurred during rendering /opt/stack/new/congress/congress_dashboard/templates/admin/base.html: 'horizon/lib/jquery-ui/ui/jquery-ui.css' could not be found in the COMPRESS_ROOT '/opt/stack/new/horizon/static' or with staticfiles.
2016-08-22 04:09:09.957 | exit_trap: cleaning up child processes
2016-08-22 04:09:09.957 | ./stack.sh: line 486: kill: (15777) - No such process+ unset GREP_OPTIONS

Revision history for this message
Eric K (ekcs) wrote :
affects: horizon → congress
affects: congress → horizon
Eric K (ekcs)
Changed in congress:
importance: Undecided → Critical
Eric K (ekcs)
Changed in congress:
importance: Critical → High
Revision history for this message
Eric K (ekcs) wrote :

Lowering priority in Congress because work-around in place.
https://github.com/openstack/congress/commit/28812457c083ad149e843a7d36a71bbd0c079f7d

Changed in congress:
importance: High → Low
Changed in horizon:
status: New → Incomplete
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

'<link href='{{ STATIC_URL }}horizon/lib/jquery-ui/ui/jquery-ui.css' type='text/css' media='screen' rel='stylesheet' />'

should be

'<link href='{{ STATIC_URL }}horizon/lib/jquery-ui/jquery-ui.css' type='text/css' media='screen' rel='stylesheet' />'

This is because legacy versions had the 'ui/' directory, but later versions dropped it. We actually have a workaround in Horizon for this at https://github.com/openstack/horizon/blob/348069364cf217217af6436e455ee04587bfd26b/openstack_dashboard/utils/settings.py#L243

My advice would just be to add the original compress line back to your template, and drop the 'ui/' part. You can see where the files are by pulling Horizon, running 'python manage.py collectstatic' and viewing the 'static/' dir in your horizon root.

Changed in horizon:
status: Incomplete → Invalid
Anusha (anusha-iiitm)
Changed in devstack:
status: New → Invalid
Changed in congress:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/367292

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on congress (master)

Change abandoned by Anusha Ramineni (<email address hidden>) on branch: master
Review: https://review.openstack.org/367292
Reason: not working

Anusha (anusha-iiitm)
Changed in congress:
assignee: Anusha (anusha-iiitm) → nobody
Eric K (ekcs)
Changed in congress:
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.