~soren/nova/nwfilter

Viewing all changes in revision 256.

  • Committer: Tarmac
  • Author(s): Michael Gundlach
  • Date: 2010-08-25 17:52:52 UTC
  • mfrom: (246.5.19 api)
  • Revision ID: hudson@openstack.org-20100825175252-hgeagnpm3s6pige4
Initial support for Rackspace API /image requests.  They will eventually be backed by Glance.

Because we don't expect Glance to support non-public images for the Austin release, all we support is index() and show().

The WSGI controller uses a service to interact with the image store (the "ImageService").  Eventually it will use a GlanceImageService, but since Glance isn't implemented yet it's hard coded to use a LocalImageService for testing.

The ImageService maps URIs to image data (because Glance will be the canonical backend and that's how Glance does it), but the Rackspace API maps ids to image data.  So the images.Controller stores a mapping in the global Redis service to convert from URIs to ids.

Courtesy of whatthecommit.com:

(\ /)
(O.o)
(> <) Bunny approves these changes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: