[Openstack] Can not log-in in Horizon

Razique Mahroua razique.mahroua at gmail.com
Fri Nov 22 15:17:51 UTC 2013


That means the Django app isn't binded to a port.
is your webserver running?


- Razique
On 22 Nov 2013, at 6:56, Arindam Choudhury wrote:

> Hi,
>
> Suddenly I can not log-in to my account in horizon. It gives the 
> following error:
>
> ConnectionError at /project/HTTPConnectionPool(host='--.--.--.--', 
> port=8776): Max retries exceeded with url: 
> /v1/96b716ba9ce84ef7947d3c42ad185eae/os-quota-sets/96b716ba9ce84ef7947d3c42ad185eae 
> (Caused by <class 'socket.error'>: [Errno 111] Connection 
> refused)Request Method:GETRequest 
> URL:http://--.--.--.--/dashboard/project/Django Version:1.4.5Exception 
> Type:ConnectionErrorException 
> Value:HTTPConnectionPool(host='--.--.--.--', port=8776): Max retries 
> exceeded with url: 
> /v1/96b716ba9ce84ef7947d3c42ad185eae/os-quota-sets/96b716ba9ce84ef7947d3c42ad185eae 
> (Caused by <class 'socket.error'>: [Errno 111] Connection 
> refused)Exception 
> Location:/usr/lib/python2.6/site-packages/requests/adapters.py in 
> send, line 327Python Executable:/usr/bin/pythonPython 
> Version:2.6.6Python 
> Path:['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
> '/usr/lib64/python26.zip',
> '/usr/lib64/python2.6',
> '/usr/lib64/python2.6/plat-linux2',
> '/usr/lib64/python2.6/lib-tk',
> '/usr/lib64/python2.6/lib-old',
> '/usr/lib64/python2.6/lib-dynload',
> '/usr/lib64/python2.6/site-packages',
> '/usr/lib64/python2.6/site-packages/gst-0.10',
> '/usr/lib64/python2.6/site-packages/gtk-2.0',
> '/usr/lib64/python2.6/site-packages/webkit-1.0',
> '/usr/lib/python2.6/site-packages',
> '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info',
> '/usr/share/openstack-dashboard/openstack_dashboard']Server time:Fri, 
> 22 Nov 2013 07:43:48 -0600
>
>
>
>
> The traceback:
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://158.109.65.223/dashboard/project/
>
> Django Version: 1.4.5
> Python Version: 2.6.6
> Installed Applications:
> ['openstack_dashboard',
> 'savannadashboard',
> 'django.contrib.contenttypes',
> 'django.contrib.auth',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'django.contrib.humanize',
> 'compressor',
> 'horizon',
> 'openstack_dashboard.dashboards.project',
> 'openstack_dashboard.dashboards.admin',
> 'openstack_dashboard.dashboards.settings',
> 'openstack_auth']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'horizon.middleware.HorizonMiddleware',
> 'django.middleware.doc.XViewMiddleware',
> 'django.middleware.locale.LocaleMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware')
>
>
> Traceback:
> File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" 
> in get_response
> 111.                         response = callback(request, 
> *callback_args, **callback_kwargs)
> File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec
> 38.         return view_func(request, *args, **kwargs)
> File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec
> 54.             return view_func(request, *args, **kwargs)
> File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec
> 38.         return view_func(request, *args, **kwargs)
> File "/usr/lib/python2.6/site-packages/django/views/generic/base.py" 
> in view
> 48.             return self.dispatch(request, *args, **kwargs)
> File "/usr/lib/python2.6/site-packages/django/views/generic/base.py" 
> in dispatch
> 69.         return handler(request, *args, **kwargs)
> File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in get
> 155.         handled = self.construct_tables()
> File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in 
> construct_tables
> 146.             handled = self.handle_table(table)
> File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in 
> handle_table
> 118.         data = self._get_data_dict()
> File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in 
> _get_data_dict
> 182.             self._data = {self.table_class._meta.name: 
> self.get_data()}
> File
>
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/overview/views.py"
> in get_data
> 32.         super(ProjectOverview, self).get_data()
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/views.py" 
> in get_data
> 34.         self.usage.get_quotas()
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" 
> in get_quotas
> 115.                               _("Unable to retrieve quota 
> information."))
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/base.py" 
> in get_quotas
> 112.             self.quotas = 
> quotas.tenant_quota_usages(self.request)
> File "/usr/lib/python2.6/site-packages/horizon/utils/memoized.py" in 
> __call__
> 33.             value = self.func(*args)
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py" 
> in tenant_quota_usages
> 116.                                        
> disabled_quotas=disabled_quotas):
> File
>
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py"
> in get_tenant_quota_data
> 99.                            tenant_id=tenant_id)
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py" 
> in _get_quota_data
> 81.         quotasets.append(getattr(cinder, method_name)(request, 
> tenant_id))
> File 
> "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py" 
> in tenant_quota_get
> 126.     return QuotaSet(c_client.quotas.get(tenant_id))
> File "/usr/lib/python2.6/site-packages/cinderclient/v1/quotas.py" in 
> get
> 37.         return self._get("/os-quota-sets/%s" % (tenant_id), 
> "quota_set")
> File "/usr/lib/python2.6/site-packages/cinderclient/base.py" in _get
> 141.         resp, body = self.api.client.get(url)
> File "/usr/lib/python2.6/site-packages/cinderclient/client.py" in get
> 184.         return self._cs_request(url, 'GET', **kwargs)
> File "/usr/lib/python2.6/site-packages/cinderclient/client.py" in 
> _cs_request
> 152.                                           **kwargs)
> File "/usr/lib/python2.6/site-packages/cinderclient/client.py" in 
> request
> 122.             **kwargs)
> File "/usr/lib/python2.6/site-packages/requests/api.py" in request
> 44.     return session.request(method=method, url=url, **kwargs)
> File "/usr/lib/python2.6/site-packages/requests/sessions.py" in 
> request
> 335.         resp = self.send(prep, **send_kwargs)
> File "/usr/lib/python2.6/site-packages/requests/sessions.py" in send
> 438.         r = adapter.send(request, **kwargs)
> File "/usr/lib/python2.6/site-packages/requests/adapters.py" in send
> 327.             raise ConnectionError(e)
>
> Exception Type: ConnectionError at /project/
> Exception
> Value: HTTPConnectionPool(host='158.109.65.223', port=8776): Max
> retries exceeded with url:
> /v1/96b716ba9ce84ef7947d3c42ad185eae/os-quota-sets/96b716ba9ce84ef7947d3c42ad185eae
> (Caused by <class 'socket.error'>: [Errno 111] Connection
> refused)
>
> I am confused. Any help please. 		 	   
> 		_______________________________________________
> Mailing list: 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack




More information about the Openstack mailing list