Ask Your Question

Keystone is not listening 8774 and nova image-list fails

asked 2012-05-10 17:25:15 -0500

jinpu1220 gravatar image


I'm working on openstack demo running on Ubuntu 12.04. When I try to run "nova image-list" it returned "ERROR: n/a (HTTP 400)". I added some print statements in the novaclient python code and I found that the client tried to connect the 8774 port:

jinpu@L3AF885:~$ nova --debug image-list connect: (, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost:\r\nContent-Length: 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "passw0rd"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Thu, 10 May 2012 17:13:36 GMT header: Transfer-Encoding: chunked ( {'headers': {'X-Auth-Project-Id': 'openstackDemo', 'X-Auth-Token': u'2afdf77b225a4918a7e5ae19d1b02c51'}} connect: (/, 8774) connect fail: (u'/', 8774) DEBUG (shell:416) n/a (HTTP 400) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/", line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/", line 364, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 350, in do_image_list image_list = cs.images.list() File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/", line 47, in list return self._list("/images/detail", "images") File "/usr/lib/python2.7/dist-packages/novaclient/", line 71, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/", line 137, in get return self._cs_request(url, 'GET', *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/", line 125, in _cs_request *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/", line 107, in request raise exceptions.from_response(resp, body) BadRequest: n/a (HTTP 400) ERROR: n/a (HTTP 400)

But it seems that no process is listening to the port 8774:

jinpu@L3AF885:~$ sudo netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0* LISTEN 9269/mysqld tcp 0 0* LISTEN 2181/python tcp 0 0* LISTEN 7664/epmd tcp 0 0* LISTEN 6921/dnsmasq tcp 0 0* LISTEN 2573/sshd tcp 0 0* LISTEN 7173/tgtd tcp 0 0* LISTEN 10254/python tcp 0 0* LISTEN 9700/beam.smp tcp 0 0 0 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-05-10 19:57:21 -0500

vishvananda gravatar image

nova-api is the thing that should be listening on 8774. It doesn't look like it is running. If you are just dealing with images, then you could use the glance command line instead.

glance index
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-05-10 17:25:15 -0500

Seen: 134 times

Last updated: May 10 '12