Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

MaxRetryError when trying to login horizon

When i try to login through admin on horizon i get the following error

HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

this is my keystone service list

+--------------------------------------------------------+------------+------------+------------------------+
|                id                                       |   name   |   type   |     description      |
+--------------------------------------------------------+------------+------------+------------------------+
| 9176ec76f9c14329a445d29e6341bd19 |  glance  |  image   |  Image service   |
| f827277648294deeb42686bca272c733 | keystone | identity | Identity Service |
| db395d02bbc84bc6ac7d3245b6375d01 |   nova   | compute  | COmpute service  |
+--------------------------------------------------------+-------------+------------+-----------------------+

this is my endpoint list

+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
|                id                |   region  |               publicurl                |              internalurl              |                adminurl                |            service_id            |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
| 83e8c6b7e98c430bbe1a6564c54f115e | RegionOne | http://localhost:8774/v2/%(tenant_id)s | http:/localhost:8774/v2/%(tenant_id)s | http://localhost:8774/v2/%(tenant_id)s | db395d02bbc84bc6ac7d3245b6375d01 |
| 88d21b85d7554b49bcefc3d2b1d1c664 | RegionOne |       http://localhost:5000/v2.0       |       http://localhost:5000/v2.0      |      http://localhost:35357/v2.0       | f827277648294deeb42686bca272c733 |
| 95e2c55a9c004bb0bcd003dcbb6003e3 | RegionOne |         http://localhost:9292          |         http://localhost:9292         |         http://localhost:9292          | 9176ec76f9c14329a445d29e6341bd19 |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+

This is the complete traceback:

Traceback (most recent call last):
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 152, in get
    handled = self.construct_tables()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 143, in construct_tables
    handled = self.handle_table(table)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 116, in handle_table
    data = self._get_data_dict()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 179, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/ubuntu/horizon/openstack_dashboard/dashboards/admin/overview/views.py", line 58, in get_data
    data = super(GlobalOverview, self).get_data()
  File "/home/ubuntu/horizon/openstack_dashboard/usage/views.py", line 43, in get_data
    self.usage.summarize(*self.usage.get_date_range())
  File "/home/ubuntu/horizon/openstack_dashboard/usage/base.py", line 193, in summarize
    if not api.nova.extension_supported('SimpleTenantUsage', self.request):
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 750, in extension_supported
    extensions = list_extensions(request)
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 741, in list_extensions
    return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
    return self._list("/extensions", 'extensions')
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/base.py", line 64, in _list
    _resp, body = self.api.client.get(url)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 283, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 260, in _cs_request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 242, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 213, in request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
[28/May/2014 11:53:07] "GET /admin/ HTTP/1.1" 500 269938

MaxRetryError when trying to login horizon

When i try to login through admin on horizon i get the following error

HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

this is my keystone service list

+--------------------------------------------------------+------------+------------+------------------------+
|                id                                       |   name   |   type   |     description      |
+--------------------------------------------------------+------------+------------+------------------------+
| 9176ec76f9c14329a445d29e6341bd19 |  glance  |  image   |  Image service   |
| f827277648294deeb42686bca272c733 | keystone | identity | Identity Service |
| db395d02bbc84bc6ac7d3245b6375d01 |   nova   | compute  | COmpute service  |
+--------------------------------------------------------+-------------+------------+-----------------------+

this is my endpoint list

+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
|                id                |   region  |               publicurl                |              internalurl              |                adminurl                |            service_id            |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
| 83e8c6b7e98c430bbe1a6564c54f115e | RegionOne | http://localhost:8774/v2/%(tenant_id)s | http:/localhost:8774/v2/%(tenant_id)s | http://localhost:8774/v2/%(tenant_id)s | db395d02bbc84bc6ac7d3245b6375d01 |
| 88d21b85d7554b49bcefc3d2b1d1c664 | RegionOne |       http://localhost:5000/v2.0       |       http://localhost:5000/v2.0      |      http://localhost:35357/v2.0       | f827277648294deeb42686bca272c733 |
| 95e2c55a9c004bb0bcd003dcbb6003e3 | RegionOne |         http://localhost:9292          |         http://localhost:9292         |         http://localhost:9292          | 9176ec76f9c14329a445d29e6341bd19 |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+

This is the complete traceback:

Traceback (most recent call last):
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 152, in get
    handled = self.construct_tables()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 143, in construct_tables
    handled = self.handle_table(table)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 116, in handle_table
    data = self._get_data_dict()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 179, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/ubuntu/horizon/openstack_dashboard/dashboards/admin/overview/views.py", line 58, in get_data
    data = super(GlobalOverview, self).get_data()
  File "/home/ubuntu/horizon/openstack_dashboard/usage/views.py", line 43, in get_data
    self.usage.summarize(*self.usage.get_date_range())
  File "/home/ubuntu/horizon/openstack_dashboard/usage/base.py", line 193, in summarize
    if not api.nova.extension_supported('SimpleTenantUsage', self.request):
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 750, in extension_supported
    extensions = list_extensions(request)
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 741, in list_extensions
    return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
    return self._list("/extensions", 'extensions')
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/base.py", line 64, in _list
    _resp, body = self.api.client.get(url)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 283, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 260, in _cs_request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 242, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 213, in request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
[28/May/2014 11:53:07] "GET /admin/ HTTP/1.1" 500 269938

MaxRetryError when trying to login horizon

When i try to login through admin on horizon i get the following error

HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

this is my keystone service list

+--------------------------------------------------------+------------+------------+------------------------+
|                id                                       |   name   |   type   |     description      |
+--------------------------------------------------------+------------+------------+------------------------+
| 9176ec76f9c14329a445d29e6341bd19 |  glance  |  image   |  Image service   |
| f827277648294deeb42686bca272c733 | keystone | identity | Identity Service |
| db395d02bbc84bc6ac7d3245b6375d01 |   nova   | compute  | COmpute service  |
+--------------------------------------------------------+-------------+------------+-----------------------+

this is my endpoint list

+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
|                id                |   region  |               publicurl                |              internalurl              |                adminurl                |            service_id            |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+
| 83e8c6b7e98c430bbe1a6564c54f115e | RegionOne | http://localhost:8774/v2/%(tenant_id)s | http:/localhost:8774/v2/%(tenant_id)s | http://localhost:8774/v2/%(tenant_id)s | db395d02bbc84bc6ac7d3245b6375d01 |
| 88d21b85d7554b49bcefc3d2b1d1c664 | RegionOne |       http://localhost:5000/v2.0       |       http://localhost:5000/v2.0      |      http://localhost:35357/v2.0       | f827277648294deeb42686bca272c733 |
| 95e2c55a9c004bb0bcd003dcbb6003e3 | RegionOne |         http://localhost:9292          |         http://localhost:9292         |         http://localhost:9292          | 9176ec76f9c14329a445d29e6341bd19 |
+----------------------------------+-----------+----------------------------------------+---------------------------------------+----------------------------------------+----------------------------------+

This is the complete traceback:

Traceback (most recent call last):
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 152, in get
    handled = self.construct_tables()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 143, in construct_tables
    handled = self.handle_table(table)
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 116, in handle_table
    data = self._get_data_dict()
  File "/home/ubuntu/horizon/horizon/tables/views.py", line 179, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/ubuntu/horizon/openstack_dashboard/dashboards/admin/overview/views.py", line 58, in get_data
    data = super(GlobalOverview, self).get_data()
  File "/home/ubuntu/horizon/openstack_dashboard/usage/views.py", line 43, in get_data
    self.usage.summarize(*self.usage.get_date_range())
  File "/home/ubuntu/horizon/openstack_dashboard/usage/base.py", line 193, in summarize
    if not api.nova.extension_supported('SimpleTenantUsage', self.request):
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 750, in extension_supported
    extensions = list_extensions(request)
  File "/home/ubuntu/horizon/horizon/utils/memoized.py", line 88, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/home/ubuntu/horizon/openstack_dashboard/api/nova.py", line 741, in list_extensions
    return nova_list_extensions.ListExtManager(novaclient(request)).show_all()
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/v1_1/contrib/list_extensions.py", line 37, in show_all
    return self._list("/extensions", 'extensions')
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/base.py", line 64, in _list
    _resp, body = self.api.client.get(url)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 283, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 260, in _cs_request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 242, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/novaclient/client.py", line 213, in request
    **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/home/ubuntu/horizon/.venv/local/lib/python2.7/site-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8774): Max retries exceeded with url: /v2/a17d29bcf7bc4d2bbb69bcfbedc8dace/extensions (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
[28/May/2014 11:53:07] "GET /admin/ HTTP/1.1" 500 269938

This is my nova.conf file

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--force_dhcp_release
--iscsi_helper=tgtadm
--libvirt_use_virtio_for_bridges
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose
--ec2_private_dns_show_ip