Ask Your Question
0

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

asked 2013-10-20 08:46:20 -0600

xianghui gravatar image

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 ... (more)

edit retag flag offensive close merge delete

7 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-22 02:27:09 -0600

xianghui gravatar image

Thanks Dmitry Mescheryakov, that solved my question.

edit flag offensive delete link more
0

answered 2013-10-20 13:45:06 -0600

xianghui gravatar image

Is there something wrong with the db configuration?

[database]

URL for sqlalchemy database (string value)

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

edit flag offensive delete link more
0

answered 2013-10-21 09:40:38 -0600

dmitrymex gravatar image

You're hitting the bug https://bugs.launchpad.net/savanna/+bug/1239676 (https://bugs.launchpad.net/savanna/+b...)

I believe the fix made it into 0.3 release

edit flag offensive delete link more
0

answered 2013-10-20 12:03:33 -0600

mattf gravatar image

Make sure you have SAVANNA_URL = 'http://localhost:8386/v1.1' in your /etc/openstack-dashboard/local_settings

0.3 needs v1.1 (0.2 used v1.0)

edit flag offensive delete link more
0

answered 2013-10-20 13:30:15 -0600

xianghui gravatar image

Thanks Matthew for the quick response, after changing to v1.1 (create cluster can work with v1.0)

vi /etc/openstack-dashboard/local_settings

The Ubuntu package includes pre-compressed JS and compiled CSS to allow

offline compression by default. To enable online compression, install

the node-less package and enable the following option.

COMPRESS_OFFLINE = True SAVANNA_URL = 'http://localhost:8386/v1.1' SAVANNA_USE_NEUTRON = True

still has the following error log :

[Sun Oct 20 13:27:28 2013] [error] 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'="">.ERROR:django.request:Internal Server Error: /dashboard/savanna/plugins/ [Sun Oct 20 13:27:28 2013] [error] Traceback (most recent call last): [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 136, in get_response [Sun Oct 20 13:27:28 2013] [error] response = response.render() [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 104, in render [Sun Oct 20 13:27:28 2013] [error] self._set_content(self.rendered_content) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/response.py", line 81, in rendered_content [Sun Oct 20 13:27:28 2013] [error] content = template.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 140, in render [Sun Oct 20 13:27:28 2013] [error] return self._render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 13:27:28 2013] [error] return self.nodelist.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 13:27:28 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 13:27:28 2013] [error] return node.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py", line 123, in render [Sun Oct 20 13:27:28 2013] [error] return compiled_parent._render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 134, in _render [Sun Oct 20 13:27:28 2013] [error] return self.nodelist.render(context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 823, in render [Sun Oct 20 13:27:28 2013] [error] bit = self.render_node(node, context) [Sun Oct 20 13:27:28 2013] [error] File "/usr/lib/python2.6/site-packages/django/template/base.py", line 837, in render_node [Sun Oct 20 13:27:28 ... (more)

edit flag offensive delete link more
0

answered 2013-10-21 10:54:33 -0600

mattf gravatar image

@xianghui please open new questions for each new question, it'll help the whole community find questions and answers more easily.

That said, 0) there's nothing wrong with your connection url and 1) you should be able to yum update to get Savanna 0.3's GA release (0.3-1) form the RDO Havana repositories.

edit flag offensive delete link more
0

answered 2013-10-22 02:29:15 -0600

xianghui gravatar image

Thanks Dmitry and Matthew, after updating from openstack-savanna-0.3-0.22.el6.noarch to openstack-savanna-0.3-2.el6.noarch, the savanna-dashboard works well.

@Matthew, I will open a new question for the db configuration, thanks a lot.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-20 08:46:20 -0600

Seen: 83 times

Last updated: Oct 22 '13