Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Failed to open DataSource/Plugins.. page in savanna dashboard

Hi team,

my env: RHEL6.4 OpenStack version : Havana

[root@xianghui openstack_dashboard]# rpm -qa|grep savanna python-django-savanna-0.3-0.2.el6.noarch python-savannaclient-0.3-0.2.noarch openstack-savanna-0.3-0.2.el6.noarch

My configurations are as below: [DEFAULT] verbose=True debug=True log_dir=/var/log/savanna log_file=savanna.log

REST API config

port=8386

Address and credentials that will be used to check auth tokens

os_auth_host=127.0.0.1 os_auth_port=35357 os_admin_username=admin os_admin_password=79e82b9223d34a56 os_admin_tenant_name=admin

plugins=vanilla,hdp [plugin:vanilla] plugin_class=savanna.plugins.vanilla.plugin:VanillaProvider [plugin:hdp] plugin_class=savanna.plugins.hdp.ambariplugin:AmbariPlugin

[database]

URL for sqlalchemy database (string value)

connection=sqlite:////var/lib/savanna/savanna-server.db

After all the configuration are completed, a cluster can be created, but the following items in savanna dashboard can't be opened. Jobs Job Binaries Data Sources Plugins

When opening "Plugins", it reports:

[Sun Oct 20 08:27:08 2013] [error] DeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PA THS setting instead.DeprecationWarning: Authentication backends without a supports_inactive_user attribute are deprecated. Please defi ne it in <class 'openstack_auth.backend.keystonebackend'="">.ERROR:django.request:Internal Server Error: /dashboard/savanna/plugins/ [Sun Oct 20 08:27:08 2013] [error] Traceback (most recent call last): [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response [Sun Oct 20 08:27:08 2013] [error] response = response.render() [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render [Sun Oct 20 08:27:08 2013] [error] self._set_content(self.rendered_content) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content [Sun Oct 20 08:27:08 2013] [error] content = template.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render [Sun Oct 20 08:27:08 2013] [error] return self._render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 08:27:08 2013] [error] return self.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render [Sun Oct 20 08:27:08 2013] [error] return compiled_parent._render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 08:27:08 2013] [error] return self.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render [Sun Oct 20 08:27:08 2013] [error] result = block.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 62, in render [Sun Oct 20 08:27:08 2013] [error] result = block.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 874, in render [Sun Oct 20 08:27:08 2013] [error] output = self.filter_expression.resolve(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve [Sun Oct 20 08:27:08 2013] [error] obj = self.var.resolve(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve [Sun Oct 20 08:27:08 2013] [error] value = self._resolve_lookup(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup [Sun Oct 20 08:27:08 2013] [error] current = current() [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1019, in render [Sun Oct 20 08:27:08 2013] [error] return table_template.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render [Sun Oct 20 08:27:08 2013] [error] return self._render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 08:27:08 2013] [error] return self.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 478, in render [Sun Oct 20 08:27:08 2013] [error] output = self.nodelist.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 08:27:08 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 08:27:08 2013] [error] return node.render(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py", line 476, in render [Sun Oct 20 08:27:08 2013] [error] self.extra_context.iteritems()]) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 571, in resolve [Sun Oct 20 08:27:08 2013] [error] obj = self.var.resolve(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 721, in resolve [Sun Oct 20 08:27:08 2013] [error] value = self._resolve_lookup(context) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 772, in _resolve_lookup [Sun Oct 20 08:27:08 2013] [error] current = current() [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1358, in get_rows [Sun Oct 20 08:27:08 2013] [error] row = self._meta.row_class(self, datum) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 438, in __init__ [Sun Oct 20 08:27:08 2013] [error] self.load_cells() [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 475, in load_cells [Sun Oct 20 08:27:08 2013] [error] data = column.get_data(datum) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 302, in get_data [Sun Oct 20 08:27:08 2013] [error] datum_id = self.table.get_object_id(datum) [Sun Oct 20 08:27:08 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1276, in get_object_id [Sun Oct 20 08:27:08 2013] [error] return datum.id [Sun Oct 20 08:27:08 2013] [error] TemplateSyntaxError: 'Plugin' object has no attribute 'id' /usr/lib/python2.6/site-packages/horizon/tables/base

when opening "Data Sources" , it reports: [Sun Oct 20 03:40:04 2013] [warn] [client 9.125.30.52] incomplete redirection target of '/dashboard/' for URI '/' modified to 'http://9.123.136.218/dashboard/', referer: http://9.123.136.218/dashboard/savanna/plugins/ [Sun Oct 20 08:42:11 2013] [error] ERROR:django.request:Internal Server Error: /dashboard/savanna/data_sources/ [Sun Oct 20 08:42:11 2013] [error] Traceback (most recent call last): [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response [Sun Oct 20 08:42:11 2013] [error] response = callback(request, callback_args, *callback_kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec [Sun Oct 20 08:42:11 2013] [error] return view_func(request, args, *kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec [Sun Oct 20 08:42:11 2013] [error] return view_func(request, args, *kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec [Sun Oct 20 08:42:11 2013] [error] return view_func(request, args, *kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view [Sun Oct 20 08:42:11 2013] [error] return self.dispatch(request, args, *kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch [Sun Oct 20 08:42:11 2013] [error] return handler(request, args, *kwargs) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 155, in get [Sun Oct 20 08:42:11 2013] [error] handled = self.construct_tables() [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 146, in construct_tables [Sun Oct 20 08:42:11 2013] [error] handled = self.handle_table(table) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 118, in handle_table [Sun Oct 20 08:42:11 2013] [error] data = self._get_data_dict() [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 182, in _get_data_dict [Sun Oct 20 08:42:11 2013] [error] self._data = {self.table_class._meta.name: self.get_data()} [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/savannadashboard/data_sources/views.py", line 39, in get_data [Sun Oct 20 08:42:11 2013] [error] data_sources = savanna.data_sources.list() [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/savannaclient/api/data_sources.py", line 39, in list [Sun Oct 20 08:42:11 2013] [error] return self._list('/data-sources', 'data_sources') [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/savannaclient/api/base.py", line 108, in _list [Sun Oct 20 08:42:11 2013] [error] self._raise_api_exception(resp) [Sun Oct 20 08:42:11 2013] [error] File "/usr/lib/python2.6/site-packages/savannaclient/api/base.py", line 133, in _raise_api_exception [Sun Oct 20 08:42:11 2013] [error] raise APIException(error_data["error_message"]) [Sun Oct 20 08:42:11 2013] [error] APIException:

The requested URL was not found on the server.

If you entered the URL manually please check your spelling and try again.

Does there are any bugs causing these problem, or I miss some configurations? Thanks for your helps.