Images Related to Instances

Registered by Rick Harris

Backups and Snapshots belong to an instance (and to a customer). We should be able to query for images by either instance_id or by customer.

Blueprint information

Status:
Complete
Approver:
Rick Clark
Priority:
Undefined
Drafter:
Rick Harris
Direction:
Needs approval
Assignee:
None
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Brian Waldon

Related branches

Sprints

Whiteboard

One issue is that Glance <=> Nova is a many-to-many relationship; in other words, there can be multiple Glance's servicing a Nova installation as well as multiple Nova's pointed to Glance.

This means a simple `instance_id` parameter is not unique enough. What we really need is something like:

(`nova_installation_uuid`, `instance_id`).

We could then have each installation of Nova generate a it's nova_installation_uuid when it's created (using nova-manage).

Could we use a URI for the instance? 'http://<nova_location>/instance/<instance_id>' The problem with this approach is that we'll want to index `nova id` separately to make querying on it more efficient.

* Add WSGI middleware in Glance that parses out instance_id
* Add Migration to Glance to store (image_id, instance_id, nova_id) mappings
* Modify Nova to pass (instance_id, nova_id) on snapshots
* Modify OpenStack API to use InstanceAware Glance

It makes the most sense to use the full Nova URI to solve this problem. Let's file a new blueprint if you want to work on this in folsom.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.