Ask Your Question
0

Cannot login dashboard after config neutron

asked 2014-04-01 05:26:46 -0500

spark gravatar image

updated 2014-04-01 05:40:49 -0500

jpichon gravatar image

I follow install guide setup neutron, after I finished conifiguration, I cann't login in dashboard. when I login some error show as follow: Something went wrong! An unexpected error has occurred. Try refreshing the page. If that doesn't help, contact your local administrator.

I check all the neutron configuration, but i didn't find something wrong. I also find some error in dashboard log /var/log/httpd/error_log:

[Tue Apr 01 10:16:06 2014] [error] Internal Server Error: /dashboard/admin/
[Tue Apr 01 10:16:06 2014] [error] Traceback (most recent call last):
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
[Tue Apr 01 10:16:06 2014] [error]     response = callback(request, *callback_args, **callback_kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Tue Apr 01 10:16:06 2014] [error]     return view_func(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Tue Apr 01 10:16:06 2014] [error]     return view_func(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Tue Apr 01 10:16:06 2014] [error]     return view_func(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Tue Apr 01 10:16:06 2014] [error]     return view_func(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Tue Apr 01 10:16:06 2014] [error]     return view_func(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view
[Tue Apr 01 10:16:06 2014] [error]     return self.dispatch(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
[Tue Apr 01 10:16:06 2014] [error]     return handler(request, *args, **kwargs)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 155, in get
[Tue Apr 01 10:16:06 2014] [error]     handled = self.construct_tables()
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 146, in construct_tables
[Tue Apr 01 10:16:06 2014] [error]     handled = self.handle_table(table)
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 118, in handle_table
[Tue Apr 01 10:16:06 2014] [error]     data = self._get_data_dict()
[Tue Apr 01 10:16:06 2014] [error]   File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 182, in _get_data_dict
[Tue Apr 01 ...
(more)
edit retag flag offensive close merge delete

Comments

Can you add your neutron.conf and neutron-api files please? Also verify the urls and credentials in those files.

SamYaple gravatar imageSamYaple ( 2014-04-01 09:00:34 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-01 05:40:29 -0500

jpichon gravatar image

It seems that Neutron cannot be accessed. Do the neutron commands work from the command-line, e.g. neutron net-list? Is the endpoint URL correctly configured in the Keystone catalog? (keystone catalog)

edit flag offensive delete link more

Comments

all neutron commands don't work, like this:

[root@controller ~]# neutron net-list

Connection to neutron failed: Maximum attempts reached

keystone catalog

Service: network

+-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | adminURL | http://controller:9696 | | id | 12c3f24b69e3414ab4136e2a91a9435c | | internalURL | http://controller:9696 | | publicURL | http://controller:9696 | | region | regionOne | +-------------+----------------------------------+

I think endpoint URL is correctly.

spark gravatar imagespark ( 2014-04-01 08:56:15 -0500 )edit
0

answered 2014-04-01 08:54:05 -0500

spark gravatar image

updated 2014-04-01 09:01:36 -0500

SamYaple gravatar image

all neutron commands don't work, like this:

[root@controller ~]# neutron net-list

Connection to neutron failed: Maximum attempts reached


keystone catalog

Service: network

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminURL  |      http://controller:9696      |
|      id     | 12c3f24b69e3414ab4136e2a91a9435c |
| internalURL |      http://controller:9696      |
|  publicURL  |      http://controller:9696      |
|    region   |            regionOne             |
+-------------+----------------------------------+

I think endpoint URL is correctly.

/var/log/neutron/server.log:

2014-04-01 18:14:12.064 3763 TRACE neutron Traceback (most recent call last):
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/bin/neutron-server", line 10, in <module>
2014-04-01 18:14:12.064 3763 TRACE neutron     sys.exit(main())
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/neutron/server/__init__.py", line 43, in main
2014-04-01 18:14:12.064 3763 TRACE neutron     neutron_service = service.serve_wsgi(service.NeutronApiService)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/neutron/service.py", line 99, in serve_wsgi
2014-04-01 18:14:12.064 3763 TRACE neutron     service.start()
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/neutron/service.py", line 68, in start
2014-04-01 18:14:12.064 3763 TRACE neutron     self.wsgi_app = _run_wsgi(self.app_name)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/neutron/service.py", line 112, in _run_wsgi
2014-04-01 18:14:12.064 3763 TRACE neutron     app = config.load_paste_app(app_name)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/neutron/common/config.py", line 144, in load_paste_app
2014-04-01 18:14:12.064 3763 TRACE neutron     app = deploy.loadapp("config:%s" % config_path, name=app_name)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
2014-04-01 18:14:12.064 3763 TRACE neutron     return loadobj(APP, uri, name=name, **kw)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
2014-04-01 18:14:12.064 3763 TRACE neutron     return context.create()
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 710, in create
2014-04-01 18:14:12.064 3763 TRACE neutron     return self.object_type.invoke(self)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/loadwsgi.py", line 144, in invoke
2014-04-01 18:14:12.064 3763 TRACE neutron     **context.local_conf)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg/paste/deploy/util.py", line 56, in fix_call
2014-04-01 18:14:12.064 3763 TRACE neutron     val = callable(*args, **kw)
2014-04-01 18:14:12.064 3763 TRACE neutron   File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 25, in urlmap_factory
2014-04-01 18:14:12.064 3763 TRACE neutron     app = loader.get_app(app_name, global_conf=global_conf)
2014-04-01 18:14:12.064 3763 ...
(more)
edit flag offensive delete link more

Comments

It's better to update your question with the additional information rather than add an "Answer". It sounds like the credentials for the Mysql user in the Neutron configuration isn't correct, or the user doesn't have the right roles in the database.

jpichon gravatar imagejpichon ( 2014-04-01 09:12:10 -0500 )edit

thx jpichon, you are right! In mysql: GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'controller' IDENTIFIED BY '9c0a23dba6d00e50ee22'; now dashboard is ok.

spark gravatar imagespark ( 2014-04-01 09:38:57 -0500 )edit

Glad it's resolved!

jpichon gravatar imagejpichon ( 2014-04-01 09:44:07 -0500 )edit

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: 2014-04-01 05:26:46 -0500

Seen: 371 times

Last updated: Apr 01 '14