glance - Listing of images broke from nova-api

asked 2011-05-20 11:31:37 -0600

Whenever I run euca-describe-images or nova image-list from a client machine, I get an error message and cannot list the images. This is the log at glance-api:

2011-05-20 13:00:14 DEBUG [routes.middleware] No route matched for GET /v1/images/detail - - [20/May/2011 13:00:14] "GET /v1/images/detail HTTP/1.1" 404 175 0.008838

When I try running "glance index" from from the glance server (both glance-api and glance-registry are currently in the same machine), the listing works just fine, and the output of glance-api is:

2011-05-20 13:00:37 DEBUG [routes.middleware] Matched GET /images 2011-05-20 13:00:37 DEBUG [routes.middleware] Route path: 'images', defaults: {'action': u'index', 'controller': <glance.server.controller object="" at="" 0x9b0a7ec="">} 2011-05-20 13:00:37 DEBUG [routes.middleware] Match dict: {'action': u'index', 'controller': <glance.server.controller object="" at="" 0x9b0a7ec="">} - - [20/May/2011 13:00:37] "GET /images HTTP/1.1" 200 818 0.057856

This started happening yesterday when I ran an upgrade of the nova packages accross the nodes, I'm using the trunk ppa repository.

ii glance 2011.2~bzr88-0ubuntu0ppa1~lucid1 ii nova-api 2011.3~bzr1090-0ubuntu0ppa1~lucid1


edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-05-20 13:08:57 -0600

Hi Francisco,

Nova uses python-glance (glance client) to communicate with the Glance server. We recently added versioning to the glance API. Requests to /images are now /v1/images. In making this change we had to update both Glance and the Glance client python library that nova uses to communicate w/ Glance.

In your case it looks like you are using an older glance server (bzr 88) with the latest PPA version of python-glance.

I would recommend upgrading your glance server so that you are using bzr 131 or greater (which has the new versioned API changes).

Another option is to downgrade the python-glance packages on your nova nodes so that they use a version less that bzr 131.

Hope this helps.


edit flag offensive delete link more

answered 2011-05-20 13:19:35 -0600

Dear Dan:

Thanks a lot for your response, I was expecting something like that. I'm using the PPA trunk packages in the glance node, but for some reason, "apt-get update" will not fetch the new package version, so "apt-get upgrade" has nothing to upgrade. Not sure this is a misbehaviour on my system or a problem with the PPA repository. This is a bit off-topic, the question is solved, but is there a way I can find out where the problem is?

Thanks! Francisco.

edit flag offensive delete link more

answered 2011-05-20 19:40:15 -0600

I'm using ubuntu 10.04, apparently the package for lucid is not updated yet... (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-05-20 11:31:37 -0600

Seen: 45 times

Last updated: May 20 '11