Split the unified API

Registered by Jay Pipes

Currently, the Glance API node communicates with the Glance registry and returns image metadata as HTTP headers in calls to GET /images/<ID> and HEAD /images/<ID>. We want to split the API requests for metadata from the API requests for image data for the following reasons:

1) Unnecessary communication with registry when not requested
2) Ability to cache static image data files vs. non-static image metadata
3) Ability to have larger and more complex structured image metadata that would neither fit in HTTP headers or be easy to parse

Blueprint information

Status:
Complete
Approver:
Jay Pipes
Priority:
High
Drafter:
Jay Pipes
Direction:
Approved
Assignee:
Jay Pipes
Definition:
Obsolete
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
Brian Waldon

Related branches

Sprints

Whiteboard

Work Items:

Remove calls to registry that return metadata from the /glance/api/v1/images.py controller: TODO
Adapt glance client to return the registry address/endpoint when needing metadata: TODO
Adapt glance client to request metadata directly from the registry: TODO
Adapt glance client.get_image() to return only the image file, not the metadata: TODO

Marked obsolete as the v2 api blueprints will solve this problem.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.