Ask Your Question
0

I need a help! Error to create Users and Projects on Horizon [closed]

asked 2016-09-19 13:06:10 -0500

Eric Gomes gravatar image

updated 2016-09-21 15:38:36 -0500

rbowen gravatar image

I've a openstack liberty instaled in a VM on Hyper-V. My OS is CentOS 7. The openstack was intalled with packstack. When I try to create a user or project on Horizon the openstack return a error: A error occurred, tray again later.

Then, I went to see the logs:

2016-08-25 16:31:19,296 9346 ERROR django.request Internal Server Error: /dashboard/identity/create
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/workflows/views.py", line 145, in get
    self.set_workflow_step_errors(context)
  File "/usr/lib/python2.7/site-packages/horizon/workflows/views.py", line 140, in set_workflow_step_errors
    workflow.add_error_to_step(error_msg, step)
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 867, in add_error_to_step
    step.add_step_error(message)
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 437, in add_step_error
    self.action.add_action_error(message)
  File "/usr/lib/python2.7/site-packages/horizon/workflows/base.py", line 370, in action
    context)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/identity/projects/workflows.py", line 82, in __init__
    disabled_quotas = quotas.get_disabled_quotas(request)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 244, in get_disabled_quotas
    if neutron.is_extension_supported(request, 'security-group'):
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 1164, in is_extension_supported
    extensions = list_extensions(request)
  File "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 90, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py", line 1155, in list_extensions
    extensions_list = neutronclient(request).list_extensions()
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 535, in list_extensions
    return self.get(self.extensions_path, params=_params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 293, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
    headers=headers, params=params)
  File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 200, in do_request
    content_type=self.content_type())
  File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 170, in do_request
    **kwargs)
  File "/usr/lib/python2.7/site-packages/neutronclient ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Eric Gomes
close date 2016-09-23 05:10:40.956171

3 answers

Sort by ยป oldest newest most voted
1

answered 2016-09-22 06:03:12 -0500

The error ConnectionFailed: Connection to neutron failed indicates that service is not running or it tails to communicate with the service, you can check it by running the command

neutron agent-list

Apart from that check whether the Nuetron port 9696 is open and in listening state by

netstat -lnpt | grep 9696

Hope that helps !!

edit flag offensive delete link more

Comments

Hello My body!

I see in another post how start de service of the neutro. "systemctl start neutron-server" Then, my options on dashboar on menu project was normalized!

Thank Very Much my body!

Eric Gomes gravatar imageEric Gomes ( 2016-09-23 05:04:39 -0500 )edit
1

answered 2016-09-22 01:13:36 -0500

Ajaycs gravatar image

Can you please the file SESSION_ENGINE & CACHES setting as below in file /etc/openstack-dashboard/local_settings

SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.0.0.11:11211', } }

CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', }, }

edit flag offensive delete link more

Comments

Hello Ajaycs, My Dashboad on Horizon open normally, but, some functions, such as create a user o project on horizon no!

Eric Gomes gravatar imageEric Gomes ( 2016-09-23 03:56:35 -0500 )edit
0

answered 2016-09-23 05:09:21 -0500

Eric Gomes gravatar image

updated 2016-09-23 07:32:56 -0500

Hello My buddy! I see in another post how start de service of the neutron. "systemctl start neutron-server" Then, my menu project and users options on dashboard was normalized! Thank Very Much my body!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-19 13:06:10 -0500

Seen: 178 times

Last updated: Sep 23 '16