[UI] Can't launch job execution on the new cluster

Bug #1550361 reported by Vitalii Gridnev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Vitalii Gridnev

Bug Description

Steps to reproduce the issue:

1. Create cluster templates and job template
2. Try to Lauch job execution on the new cluster.

Got the error: An error occurred. Please try again later.

In horizon logs:

  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 576, in render
    return self.nodelist.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py", line 56, in render
    result = self.nodelist.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 217, in render
    nodelist.append(node.render(context))
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/debug.py", line 89, in render
    output = self.filter_expression.resolve(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 648, in resolve
    obj = self.var.resolve(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 789, in resolve
    value = self._resolve_lookup(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current()
  File "/home/ubuntu/horizon/horizon/workflows/base.py", line 427, in render
    return step_template.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/backends/django.py", line 74, in render
    return self.template.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 210, in render
    return self._render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 202, in _render
    return self.nodelist.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 905, in render
    bit = self.render_node(node, context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/debug.py", line 79, in render_node
    return node.render(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/debug.py", line 89, in render
    output = self.filter_expression.resolve(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 648, in resolve
    obj = self.var.resolve(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 789, in resolve
    value = self._resolve_lookup(context)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/base.py", line 849, in _resolve_lookup
    current = current()
  File "/home/ubuntu/horizon/horizon/workflows/base.py", line 432, in get_help_text
    text += self.action.get_help_text()
  File "/home/ubuntu/horizon/horizon/workflows/base.py", line 159, in get_help_text
    tmpl = template.loader.get_template(self.help_text_template)
  File "/home/ubuntu/horizon/.tox/venv/local/lib/python2.7/site-packages/django/template/loader.py", line 46, in get_template
    raise TemplateDoesNotExist(template_name)
TemplateDoesNotExist: data_processing.clusters/_create_general_help.html

Tags: dashboard
Revision history for this message
Chad Roberts (croberts) wrote :

There might be multiple problems at hand here.
For sure, one problem is the template name at the end of the stack trace. data_processing.clusters/_create_general_help.html should be clusters/_create_general_help.html

Revision history for this message
Chad Roberts (croberts) wrote :

Also data_processing.clusters/_configure_general_help.html should have the "data_processing." removed.

Additionally, the javascript from job_templates/jobs.html should be moved to jobs/index.html

Hope this helps!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara-dashboard (master)

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

Changed in sahara:
status: Triaged → In Progress
Changed in sahara:
milestone: mitaka-3 → mitaka-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara-dashboard (master)

Reviewed: https://review.openstack.org/287688
Committed: https://git.openstack.org/cgit/openstack/sahara-dashboard/commit/?id=827795effe35fd559c34ad0b26c069443d65b09d
Submitter: Jenkins
Branch: master

commit 827795effe35fd559c34ad0b26c069443d65b09d
Author: Vitaly Gridnev <email address hidden>
Date: Thu Mar 3 13:12:48 2016 +0300

    Fix job execution on a new cluster

    Following issues were repaired:

    1. wrong path was fixed to template;
    2. js code was replaced to index.html;
    3. is_public / is_protected fields moved to base class.

    Change-Id: I1f6bfc63d184cdc7006d7e377b22b8d1c9800749
    Closes-bug: 1550361

Changed in sahara:
status: In Progress → Fix Released
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.