Storage: Cloning for VMware Datastore backed disks

Registered by Arnaud Legendre on 2014-03-08

Glance provides support for the VMware datastore as a backend storage [1]. The Nova VMware driver should take advantage of it by copying the bits of a given image instead of downloading them over the network when spawning a virtual machine.
For snapshots, it will possible to register the location of the bits for a given Glance image instead of uploading the bits.

The image handler framework enables transferring an image from glance to an abstract backend, not just a local file, so use that to implement cloning by adding a handler that detects when vsphere is in use by both nova and glance, and creates a clone instead of downloading the image to a file.

See blueprint [2] implementing the same logic for libvirt/rbd.

[1] https://github.com/openstack/glance/blob/master/glance/store/vmware_datastore.py
[2] https://blueprints.launchpad.net/nova/+spec/rbd-clone-image-handler

Blueprint information

Status:
Started
Approver:
Joe Gordon
Priority:
Undefined
Drafter:
Arnaud Legendre
Direction:
Needs approval
Assignee:
Arnaud Legendre
Definition:
New
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
Arnaud Legendre on 2014-03-08

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/vmware-clone-image-handler,n,z

Addressed by: https://review.openstack.org/63975
    VMware: Use the image handler to fetch images

Addressed by: https://review.openstack.org/67606
    VMware copy image handler

We are currently in the Icehouse Feature Freeze, please submit patches in the Juno timeframe. You also need to get this blueprint approved. --johnthetubaguy

Addressed by: https://review.openstack.org/79493
    VMware: Clone snapshots to the Glance datastore

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguyGerrit topic: https://review.openstack.org/#q,topic:bp/vmware-clone-image-handler,n,z

Addressed by: https://review.openstack.org/63975
    VMware: Use the image handler to fetch images

Addressed by: https://review.openstack.org/67606
    VMware copy image handler

We are currently in the Icehouse Feature Freeze, please submit patches in the Juno timeframe. You also need to get this blueprint approved. --johnthetubaguy

Addressed by: https://review.openstack.org/79493
    VMware: Clone snapshots to the Glance datastore

Removed from next, as next is now reserved for near misses from the last milestone --johnthetubaguy

If you are still working on this, please re-submit via nova-specs. If not, please mark as obsolete, and add a quick comment to describe why. --johnthetubaguy (20th April 2014)

Addressed by: https://review.openstack.org/84281
    Propose: Cloning for VMware Datastore backed disks

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.