Ask Your Question

Connection refused by novaclient on folsom

asked 2012-11-02 02:25:40 -0500

i setup folsom on ubuntu 12.10 using the repo " (http://ubuntu-cloud.archive.canonical...) 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/ 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 (http://localhost:8774/v2/cc4c8469207e...) -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/", line 531, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/", line 467, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", 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/", line 309, in list return self._list("/servers%s%s" % (detail, query_string), "servers") File "/usr/lib/python2.7/dist-packages/novaclient/", line 62, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/", line 239, in get return self._cs_request(url, 'GET', *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/", line 226, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/", line 208, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/", 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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-11-02 18:48:43 -0500

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

edit flag offensive delete link more

answered 2012-11-08 09:06:46 -0500

gtt116 gravatar image

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

edit flag offensive delete link more

answered 2013-02-01 11:56:11 -0500

srikanth1239 gravatar image

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

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-11-02 02:25:40 -0500

Seen: 133 times

Last updated: Feb 01 '13