Ask Your Question
1

MaxRetryError when trying to login horizon

asked 2014-05-28 06:55:23 -0500

Wayn3 gravatar image

updated 2014-05-29 07:16:03 -0500

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 ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
1

answered 2014-05-28 09:55:17 -0500

jpichon gravatar image

Is Nova actually up and running, and accessible from the machine Horizon is running on? At the moment Horizon doesn't react very well when one of the services defined in the catalogue is down.

edit flag offensive delete link more

Comments

Can you help me with how to check if nova is running or not? If it is not how do i actually get it running.

Wayn3 gravatar imageWayn3 ( 2014-05-28 23:48:34 -0500 )edit
3

answered 2014-05-29 07:10:55 -0500

To check nova services status, try with:

sudo nova-manage service list

If a service is correctly working a smiling face will be shown; an XXX state in case it does not correctly work.

Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth havana-controller                    internal         enabled    :-)   2014-05-29 12:07:44
nova-cert        havana-controller                    internal         enabled    :-)   2014-05-29 12:07:44
nova-conductor   havana-controller                    internal         enabled    :-)   2014-05-29 12:07:40
nova-scheduler   havana-controller                    internal         enabled    :-)   2014-05-29 12:07:42
nova-compute     nova-compute-on-ESXi-42              nova             enabled    XXX   2014-04-14 09:25:05
edit flag offensive delete link more

Comments

When i try to run nova-manage service list then it says there is a parse error being generated.

This is the traceback of the error

Traceback (most recent call last):
  File "/usr/local/bin/nova-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1344, in main
    config.parse_args(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/nova/config.py", line 37, in parse_args
    default_config_files=default_config_files)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1603, in __call__
    else sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2144, in _parse_cli_opts
    return self._parse_config_files()
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2158, in _parse_config_files
    ConfigParser._parse_file(config_file, namespace)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1224, in _parse_file
    raise ConfigFileParseError ...
(more)
Wayn3 gravatar imageWayn3 ( 2014-05-29 07:18:36 -0500 )edit

ok, can you pastebin your nova.conf file?

Antonio G. gravatar imageAntonio G. ( 2014-05-29 07:31:38 -0500 )edit

Is that your nova.conf file in /etc/nova/ folder? I've never seen any conf file like that...

Antonio G. gravatar imageAntonio G. ( 2014-05-29 08:28:46 -0500 )edit

Can i get a sample nova.conf file from anywhere?

Wayn3 gravatar imageWayn3 ( 2014-05-29 23:30:38 -0500 )edit
1

answered 2014-05-28 11:00:49 -0500

SGPJ gravatar image

Check whether all service are up before login using dashboard and also clear cookies in your browser.

edit flag offensive delete link more

Comments

please tell me how do i know if a service is up or running?

Wayn3 gravatar imageWayn3 ( 2014-05-29 07:03:11 -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-05-28 06:55:23 -0500

Seen: 1,521 times

Last updated: May 29 '14