VMware image clone strategy settings and defaults

Registered by Shawn Hartsock

The VMwareAPI driver code currently spawns all virtual machines copying the disks using a linked-clone strategy. The VMwareAPI also offers a "full clone" strategy.

1. We would like to offer an administrator the ability to pick which strategy fits their environment best. (as a default)
2. The best behavior may be different for different classes of instance it would be nice to allow an instance flavor to control its own clone strategy

see: https://www.vmware.com/support/ws5/doc/ws_clone_typeofclone.html

In math terms, I need to allow instance to override image to override global config. That is i vs g vs c. I for instance. G for glance. C for Config.

So, I need i=False vs g=True vs c=True to be False.
But I need i=True vs g=False vs c=False to be True

So basic boolean math won't cover it.

Blueprint information

Status:
Complete
Approver:
Russell Bryant
Priority:
Medium
Drafter:
Shawn Hartsock
Direction:
Approved
Assignee:
Shawn Hartsock
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon 2013.2
Started by
Shawn Hartsock
Completed by
Russell Bryant

Related branches

Sprints

Whiteboard

Possible relationship to blueprint improve-vmware-disk-usage

The blueprint improve-vmware-disk-usage can only be implemented if you can use the "full-clone" strategy described in point #1 of this blueprint. That means at minimum we need to provide a
mechanism for an admin to configure "full-clone" as the default for an instance and provide a
way for the re-size methods to determine if they can successfully complete their operations on
a VMDK or not!

These commands now decide whether an image is linked cloned or full cloned.

$ glance image-create --name DebianFullClone --is-public=True --container-format=bare --disk-format=vmdk --property vmware-disktype="preallocated" < ~/Debian-flat.vmdk

$ glance image-create --name DebianLinkedClone --is-public=True --container-format=bare --disk-format=vmdk --property vmware-disktype="preallocated" --property linked-clone="True" < ~/Debian-flat.vmdk

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

Addressed by: https://review.openstack.org/35502
    VMware image clone strategy settings and defaults.

Addressed by: https://review.openstack.org/37819
    VMware image clone strategy settings and defaults.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.