[UI] upload of template causes issues in cluster templates interface

Bug #1206252 reported by Jonathan Maron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Nikita Konovalov

Bug Description

When I upload a cluster template I encounter the following two issues:

1) The name I specify in the interface doesn't show up. Rather, a UUID shows up under the 'Name' column

2) When I click on the UUID, it causes an error in the UI (I'm presented with the dashboard error page). The following exception appears in the httpd error log:

[Mon Jul 29 14:57:43 2013] [error] DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in <class 'openstack_auth.backend.KeystoneBackend'>.DeprecationWarning: The syntax for the url template tag is changing. Load the `url` tag from the `future` tag library to start using the new behavior.ERROR:django.request:Internal Server Error: /dashboard/savanna/cluster_templates/4f8149f7-2786-478d-a24d-8c5251917f1a
[Mon Jul 29 14:57:43 2013] [error] Traceback (most recent call last):
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
[Mon Jul 29 14:57:43 2013] [error] response = callback(request, *callback_args, **callback_kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Mon Jul 29 14:57:43 2013] [error] return view_func(request, *args, **kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Mon Jul 29 14:57:43 2013] [error] return view_func(request, *args, **kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Mon Jul 29 14:57:43 2013] [error] return view_func(request, *args, **kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view
[Mon Jul 29 14:57:43 2013] [error] return self.dispatch(request, *args, **kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
[Mon Jul 29 14:57:43 2013] [error] return handler(request, *args, **kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 60, in get
[Mon Jul 29 14:57:43 2013] [error] context = self.get_context_data(**kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/savannadashboard/cluster_templates/views.py", line 52, in get_context_data
[Mon Jul 29 14:57:43 2013] [error] .get_context_data(**kwargs)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 44, in get_context_data
[Mon Jul 29 14:57:43 2013] [error] exceptions.handle(self.request)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 42, in get_context_data
[Mon Jul 29 14:57:43 2013] [error] context["tab_group"].load_tab_data()
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 122, in load_tab_data
[Mon Jul 29 14:57:43 2013] [error] exceptions.handle(self.request)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/base.py", line 119, in load_tab_data
[Mon Jul 29 14:57:43 2013] [error] tab._data = tab.get_context_data(self.request)
[Mon Jul 29 14:57:43 2013] [error] File "/usr/lib/python2.6/site-packages/savannadashboard/cluster_templates/tabs.py", line 60, in get_context_data
[Mon Jul 29 14:57:43 2013] [error] ng["node_group_template_id"])
[Mon Jul 29 14:57:43 2013] [error] KeyError: 'node_group_template_id'
[Mon Jul 29 15:57:44 2013] [warn] [client 10.10.80.44] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://172.18.0.75/dashboard/', referer: http://172.18.0.75/dashboard/savanna/cluster_templates/4f8149f7-2786-478d-a24d-8c5251917f1a

tags: added: 0.2.2
Changed in savanna:
assignee: nobody → Nikita Konovalov (nkonovalov)
importance: Undecided → Medium
importance: Medium → High
status: New → Triaged
milestone: none → 0.2.2-rc1
Revision history for this message
Nikita Konovalov (nkonovalov) wrote :

Could you please add the template file, that was uploaded.

Changed in savanna:
status: Triaged → In Progress
Revision history for this message
Jonathan Maron (jmaron) wrote :

The template used is available in the distribution: savanna/pluging/hdp/resources/default-cluster.template

Changed in savanna:
milestone: 0.2.2-rc1 → 0.2.2
tags: added: 0.3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (stable/0.2)

Fix proposed to branch: stable/0.2
Review: https://review.openstack.org/46905

Changed in savanna:
milestone: 0.2.2 → 0.2.2-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (stable/0.2)

Reviewed: https://review.openstack.org/46905
Committed: http://github.com/stackforge/savanna/commit/80995526b6c46f2ab3c8fd3080c96eedda4d8e28
Submitter: Jenkins
Branch: stable/0.2

commit 80995526b6c46f2ab3c8fd3080c96eedda4d8e28
Author: Nikita Konovalov <email address hidden>
Date: Tue Sep 17 13:19:48 2013 +0400

    Fix Cluster Template name

    When Cluster Template is being uploaded, name is passed through URL.

    Fixes bug: #1206252

    Change-Id: I19d7b9fe657cbf801548d4472c6735bd90b8a42a

Changed in savanna:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to savanna (master)

Reviewed: https://review.openstack.org/46970
Committed: http://github.com/stackforge/savanna/commit/d505434b52c529fc0ae82ca6e308c1c1dca0c897
Submitter: Jenkins
Branch: master

commit d505434b52c529fc0ae82ca6e308c1c1dca0c897
Author: Nikita Konovalov <email address hidden>
Date: Tue Sep 17 19:23:06 2013 +0400

    Fix Cluster Template name

    When Cluster Template is being uploaded, name is passed through URL.

    Plugin SPI has been slightly modified to accept 'template_name' parameter

    Fixes bug: #1206252

    Change-Id: I796e6c150c067d527c82eab0ec2ca930384c3fd7

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.