[dashboard] TemplateDoesNotExist error after quick deploy application

Bug #1593145 reported by Li Shang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Invalid
High
Unassigned

Bug Description

* Detailed description of the problem and step-by-step instruction on how to reproduce it.
    I have setup an all-in-one stable/mitaka devstack environment on Ubuntu 14.04.1 LTS, which installed master version of murano & murano-dashboard. When I try to quick deploy “Apache HTTP Server” or “Apache Tomcat” apps in the browse page from dashboard, met the Template Does Not Exist error when it try to create environment, the apps were imported during the devstack installation process with official MURANO_APPS repository, the error shown as below, more details please check my attached “murano template does not exist issue 20160616.log”.

* Version: stable/mitaka with Devstack all-in-one installation, master with murano & murano-dashboard.

* Browser Version: Chrome 48.0.2564.116 m

* Output of utilities run:
Some part of Dashborad error logs after launch application:

TemplateDoesNotExist at /murano/7d8fd6e7324d46418b7c6c9152a93ede/services
horizon/common/_detail_header.html
Request Method: GET
Request URL: http://10.104.0.18/dashboard/murano/7d8fd6e7324d46418b7c6c9152a93ede/services
Django Version: 1.8.10
Exception Type: TemplateDoesNotExist
Exception Value:
horizon/common/_detail_header.html
Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/engine.py in find_template, line 146
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/keystone',
 '/opt/stack/swift',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/neutron',
 '/opt/stack/neutron-lbaas',
 '/opt/stack/nova',
 '/opt/stack/heat',
 '/opt/stack/magnum',
 '/opt/stack/python-magnumclient',
 '/opt/stack/ceilometer',
 '/opt/stack/murano',
 '/opt/stack/murano-dashboard',
 '/opt/stack/ironic',
 '/opt/stack/horizon',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/opt/stack/horizon/openstack_dashboard']
Server time: Thu, 16 Jun 2016 07:32:10 +0000
Template-loader postmortem

Django tried loading these templates, in this order:
Using loader horizon.themes.ThemeTemplateLoader:
/opt/stack/horizon/openstack_dashboard/themes/default/templates/horizon/common/_detail_header.html (File does not exist)
Using loader django.template.loaders.cached.Loader:
Error during template rendering

In template /opt/stack/murano-dashboard/muranodashboard/templates/services/index.html, error at line 10
horizon/common/_detail_header.html
1 {% extends 'murano_base.html' %}
2 {% load i18n %}
3 {% load static %}
4 {% load compress %}
5 {% load horizon %}
6 {% load custom_filters %}
7 {% block title %}{% trans "Components" %}{% endblock %}
8
9 {% block page_header %}
10

      {% include "horizon/common/_detail_header.html" %}

11 {% endblock page_header %}
12 {% block main %}
13 <input type="hidden" id="environmentId" value="{{ environment_id }}">
14 <input type="hidden" id="pollInterval" value="{{ poll_interval }}">
15 <div class="row">
16 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
17 {{ tab_group.render }}
18 </div>
19 </div>
20 {% endblock %}
Traceback Switch to copy-and-paste view

Tags: dashboard
Revision history for this message
Li Shang (li-shang) wrote :
tags: added: dashboard
Changed in murano:
importance: Undecided → High
milestone: none → newton-2
Revision history for this message
zhurong (zhu-rong) wrote :

Hi, Li Shang, Could you please try to use master horizon with master murano-dashboard?

Changed in murano:
status: New → Incomplete
Revision history for this message
Li Shang (li-shang) wrote :

Hi all

Firstly I have tried to update the horizon code to the latest master version in /opt/stack/horizon/ and python install, then the horizon dashboard couldn`t login with error log as below:

OfflineGenerationError at /auth/login/
You have offline compression enabled but key "5d7a973d81341b1a74f5566aeb556387" is missing from offline manifest. You may need to run "python manage.py compress".
Request Method: GET
Request URL: http://10.104.0.18/dashboard/auth/login/?next=/dashboard/
Django Version: 1.8.10
Exception Type: OfflineGenerationError
Exception Value: You have offline compression enabled but key "5d7a973d81341b1a74f5566aeb556387" is missing from offline manifest. You may need to run "python manage.py compress".
Exception Location: /usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py in render_offline, line 71
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path: ['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/keystone',
 '/opt/stack/swift',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/neutron',
 '/opt/stack/neutron-lbaas',
 '/opt/stack/nova',
 '/opt/stack/heat',
 '/opt/stack/magnum',
 '/opt/stack/python-magnumclient',
 '/opt/stack/ceilometer',
 '/opt/stack/murano',
 '/opt/stack/murano-dashboard',
 '/opt/stack/ironic',
 '/opt/stack/horizon',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/opt/stack/horizon/openstack_dashboard']
Server time: Tue, 28 Jun 2016 02:46:24 +0000
Error during template rendering
In template /opt/stack/horizon/openstack_dashboard/templates/horizon/_scripts.html, error at line 9
You have offline compression enabled but key "5d7a973d81341b1a74f5566aeb556387" is missing from offline manifest. You may need to run "python manage.py compress".

So i do the "python manage.py compress" in /opt/stack/horizon/ directory, then the horizon dashboard could login and shown, but the murano related Applications page still shown the OfflineGenerationError.
Then i modified the /opt/stack/horizon/openstack_dashboard/local/local_settings.py setting from "COMPRESS_OFFLINE=True" to "COMPRESS_OFFLINE=False", then redo python install horizon, after that i found the murano Applicaions page could shown but the previous packages that i imported have all disappeared, and murano related CLI also couldn`t work.

Revision history for this message
Li Shang (li-shang) wrote :

i will rty to reinstall the devstack environment with latest master version to check whether this issue could be reproduced.

Revision history for this message
Li Shang (li-shang) wrote :

quick deploy “Apache HTTP Server” apps in the browse page from dashboard could create environment successfully on the latest master devstack environment~ This issue didn`t occurred.

Revision history for this message
Valerii Kovalchuk (vakovalchuk) wrote :

Apparently marking it as Invalid :)

Changed in murano:
status: Incomplete → Invalid
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.