glance - Listing of images broke from nova-api

Asked by Xavi Campa

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
192.168.191.100 - - [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>}
127.0.0.1 - - [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

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Xavi Campa
Solved:
Last query:
Last reply:
Revision history for this message
Dan Prince (dan-prince) said :
#1

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.

Dan

Revision history for this message
Xavi Campa (xavicampa) said :
#2

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.

Revision history for this message
Xavi Campa (xavicampa) said :
#3

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

https://launchpad.net/~glance-core/+archive/trunk