Connection refused by novaclient on folsom

Asked by xu hongna

i setup folsom on ubuntu 12.10 using the repo " http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main"

the services seem work well:
nova-manage service list
2012-11-02 10:05:18 DEBUG nova.utils [req-66e99fc0-2ec4-4b89-825b-5b9c8a550584 None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=29751) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:494
Binary Host Zone Status State Updated_At
nova-consoleauth cloud-clinet10 nova enabled :-) 2012-11-02 02:05:13
nova-cert cloud-clinet10 nova enabled :-) 2012-11-02 02:05:13
nova-scheduler cloud-clinet10 nova enabled :-) 2012-11-02 02:05:13
nova-network cloud-clinet10 nova enabled :-) 2012-11-02 02:05:13
nova-compute cloud-clinet10 nova enabled :-) 2012-11-02 02:05:14

But nova list/image-list shows connection refused error, the output is :
~# nova --debug list
Please enter password for encrypted keyring:
Please set a password for your new keyring:
Please confirm the password:

REQ: curl -i http://localhost:8774/v2/cc4c8469207e41588886b56b0747d3ea/servers/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 18636b6043cd4921ad6e4a04e3418a4d"

connect: (localhost, 8774)
connect fail: (u'localhost', 8774)
RESP:{'status': '400', 'content-length': 30, 'content-type': 'text/plain'} [Errno 111] Connection refused

DEBUG (shell:534) ConnectionRefused: '[Errno 111] Connection refused'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 531, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 467, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 694, in do_list
    utils.print_list(cs.servers.list(search_opts=search_opts), columns,
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 309, 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 239, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 226, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 208, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 193, in request
    raise exceptions.ConnectionRefused(body)
ConnectionRefused: ConnectionRefused: '[Errno 111] Connection refused'
ERROR: ConnectionRefused: '[Errno 111] Connection refused'

at the immediately when i installed nova , configurated, sync db and restart the services, the nova command could work, but now not.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1074218.

Revision history for this message
Russell Bryant (russellb) said :
#1

Looks like a setup issue, not a bug, so converting to a question

Revision history for this message
Tiantian Gao (gtt116) said :
#2

I seem like that nova-api is not running. The log said "Connection refused" which means the localhost:8774 is closed.
make sure nova-api is running

Revision history for this message
Srikanth Mergu (srikanth1239) said :
#3

Thanks TianTian Gao (gtt116)
It resolved by starting nova-api service..

Can you help with this problem?

Provide an answer of your own, or ask xu hongna for more information if necessary.

To post a message you must log in.