Ask Your Question
1

havana nova image-list doesn't work [closed]

asked 2013-11-11 13:40:16 -0500

AlanObject gravatar image

updated 2013-11-17 10:03:54 -0500

I am doing my first install with havana on Ubuntu 13.10. So far so good up to the point where the installation guide suggests testing nova with a "nova image-list" command. It hangs and eventually errors out. Here is the traceback with the --debug switch on. Any suggestions on what needs to be fixed?

((omitted first REQ))

REQ: curl -i http://xxxx.com:8774/v2/3405c884d51f4332a046c57ddfffc828/images/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ((clipped binary data))

INFO (connectionpool:202) Starting new HTTP connection (1): xxxx.com
DEBUG (connectionpool:296) "GET /v2/3405c884d51f4332a046c57ddfffc828/images/detail HTTP/1.1" 500 128
RESP: [500] CaseInsensitiveDict({'date': 'Mon, 11 Nov 2013 19:29:13 GMT', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89'})
RESP BODY: {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:740) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 673, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 915, in do_image_list
    image_list = cs.images.list(limit=limit)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 54, in list
    return self._list('/images%s%s' % (detail, query), 'images')
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 61, in _list
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 229, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 213, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 195, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 189, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-0e0d43b6-6526-42d6-acc5-aacb09cbdc89)

UPDATE:

I went silent on this issue for a week because I lost contact with my server. I was configuring the bridge and did a remote boot and what do you know the /etc/fstab had an error in it that stopped the boot until I could get into the host facility to hook up a console. Here's to putting the extra effort into an SOL facility.

Anyway, after I rebooted the "nova image-list" now works! I wish I had some expertise in reading the log files so I could see what was jamming up but it looks like this now:

root@xxx:~# nova image-list
+--------------------------------------+---------+--------+--------+
| ID                                   | Name    | Status | Server |
+--------------------------------------+---------+--------+--------+
| de0dca15-a72f-48e0-aeb3-a0dde710292a | Precise | ACTIVE |        |
| 79e78677-9787-491b-af2e-5dad49a2595a | Saucy ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-02 19:41:13.738611

Comments

What do you see in `/var/log/nova/api.log`? Nova needs to talk to glance in order for `image-list` to run. Can you successfully run `glance image-list`? Is glance running?

larsks gravatar imagelarsks ( 2013-11-11 18:34:34 -0500 )edit

yes glance runs and I can do a "glance image-list". However I didn't know which log file to look in so I will examine that and post back.

AlanObject gravatar imageAlanObject ( 2013-11-11 18:43:56 -0500 )edit

I have the exactly same problem... oh....T.T

oyc gravatar imageoyc ( 2013-11-13 23:47:12 -0500 )edit

is it resolved ? Do you still have the issue ?

dheeru gravatar imagedheeru ( 2013-12-02 12:50:19 -0500 )edit

@dheeru Yes it is resolved but unfortunately I do not know how. I think one of the REST interfaces was not responding properly and when I restarted the package it was then in an operational state. If I can re-create the problem I will post.

AlanObject gravatar imageAlanObject ( 2013-12-02 15:55:51 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
4

answered 2013-11-13 21:13:36 -0500

dheeru gravatar image

Some issue in connecting RabbitMQ and Glance or authentication issue

  1. Did you check that glance is working. 'glance image-list'. Does it display the image list ?
  2. Did you specify glance_host in nova.conf ?
  3. Can you check /var/log/nova/nova*.log for specific error.
  4. It could be an authentication/authorization issue. Ensure that commands are working fine from the console you are working.
edit flag offensive delete link more
1

answered 2013-11-13 20:45:42 -0500

fifieldt gravatar image

I've seen this error before when api-paste.ini config's keystone auth bits were in need of fixing

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-11 13:40:16 -0500

Seen: 1,873 times

Last updated: Nov 17 '13