Ask Your Question
0

How to solve Errno 111 when trying nova list command? [closed]

asked 2013-07-09 10:32:05 -0500

anonymous user

Anonymous

updated 2013-07-11 16:50:10 -0500

smaffulli gravatar image

When I tried to list up VM instances thru "nova list", I got below error messages.

INFO (connectionpool:191) Starting new HTTP connection (1): 10.10.10.11
DEBUG (shell:768) [Errno 111] Connection refused
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 937, in do_list
    servers = cs.servers.list(search_opts=search_opts)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 375, in list
    return self._list("/servers%s%s" % (detail, query_string), "servers")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 230, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 217, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 199, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 170, in request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 354, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 460, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 243, in send
    raise ConnectionError(sockerr)
ConnectionError: [Errno 111] Connection refused
ERROR: [Errno 111] Connection refused

I could list up keystone user-list, keystone role-list etc, but I couldn't list up nova-list. Additionally, when I tried to login with "admin/password" credential, I got below errors,

ConnectionError at /auth/login/
[Errno 111] Connection refusedRequest Method: POST 
Request URL: http://175.126.56.12/horizon/auth/login/ 
Django Version: 1.4.5 
Exception Type: ConnectionError 
Exception Value: [Errno 111] Connection refused 
Exception Location: /usr/lib/python2.7/dist-packages/requests/adapters.py in send, line 243 
Python Executable: /usr/bin/python 
Python Version: 2.7.3 
Python Path: ['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/share/openstack-dashboard/',
 '/usr/share/openstack-dashboard/openstack_dashboard']

Are those errors occurred by nova configuration? One more thing, I couldn't start "nova-api".

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-06-05 20:17:14.688322

Comments

You should first start nova-api or try to figure what is going wrong with that. Additionally is this a single or a multi-node setup? Please provide your /etc/nova/nova.conf for all compute nodes.

Jobin gravatar imageJobin ( 2013-07-09 12:00:22 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-07-09 20:32:38 -0500

DavidYoon gravatar image

Hi, Jobin and Nishtha

I fixed the issue after removing "metadata" from "enabled_apis=ec2,osapi_compute" in nova.conf. Thanks for your great support and advice.

edit flag offensive delete link more

Comments

Please accept the answer if it is working now!

Jobin gravatar imageJobin ( 2013-07-11 23:12:22 -0500 )edit

This solved my issue as well. I am following the OPENSTACK INSTALLATION GUIDE FOR UBUNTU 12.04/14.04 (LTS) - ICEHOUSE and had the same issue.

Thanks for your help!

jeff Cichonski gravatar imagejeff Cichonski ( 2014-07-17 11:08:46 -0500 )edit
0

answered 2013-07-09 13:53:40 -0500

nishtha gravatar image

I also received the same problem that my glance and keystone were working fine but nova had this issue. It can be an issue of your nova.conf file or it is possible that there is a problem in your keystone bash script regarding the endpoints. Even if your script is running well check out for the code error which might occur inside it. Besides these check whether all services of nova are running fine by nova-manage service list.

edit flag offensive delete link more
0

answered 2013-09-26 05:09:28 -0500

Check in your /etc/nova/api-paste.ini if the keystone admin credentials are correct:

[filter:authtoken]
admin_tenant_name = xxx
admin_user = xxx
admin_password = xxx
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-09 10:32:05 -0500

Seen: 5,116 times

Last updated: Sep 26 '13