Jump to: navigation, search

Difference between revisions of "Obsolete:GlanceAPISpec"

(Small cleanup)
Line 8: Line 8:
 
* Teller - Image Delivery Service
 
* Teller - Image Delivery Service
 
* [[GlanceImageService]] - An adapter in Nova to map Parallax Images to Nova-API images
 
* [[GlanceImageService]] - An adapter in Nova to map Parallax Images to Nova-API images
* [[TellerImageService]] - An adapter in Nova to use fetch Images from Teller.
+
* [[TellerImageService]] - An adapter in Nova to fetch Images from Teller.
  
 
== Teller ==
 
== Teller ==
Line 23: Line 23:
  
 
Image data as response body.
 
Image data as response body.
 +
 +
Exceptions
 +
 +
404 - Image is not found
  
 
== Parallax ==
 
== Parallax ==
Line 44: Line 48:
 
"public": true,
 
"public": true,
 
"metadata": { "mykey": "myvalue" },
 
"metadata": { "mykey": "myvalue" },
"files": [ { "location": "swift://user:passwd@acct/container/obj.tar.gz.0", "size": 101 } ]
+
"files": [ { "location": "swift://user:passwd@acct/container/obj.tar.gz.0",
 +
            "size": 101 } ]
 +
}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
 +
Exceptions
 +
 +
404 - If Image is not found

Revision as of 17:50, 1 October 2010

Glance API Specification

Glance <=> Nova Integration requires these components:

  • Glance - (Parallax + Teller); VM Image Management Service
  • Parallax - Image registry
  • Teller - Image Delivery Service
  • GlanceImageService - An adapter in Nova to map Parallax Images to Nova-API images
  • TellerImageService - An adapter in Nova to fetch Images from Teller.

Teller

Fetch an Image

GET /images?uri=<Parallax URI for Image>


Returns

Image data as response body.

Exceptions

404 - Image is not found

Parallax

GET http://parallax.openstack.org/images/<ID>


Returns

Image metadata encoded in JSON:


{
"id": 1,
"name": "My Image",
"state": "available",
"public": true,
"metadata": { "mykey": "myvalue" },
"files": [ { "location": "swift://user:passwd@acct/container/obj.tar.gz.0",
             "size": 101 } ]
}


Exceptions

404 - If Image is not found