Allow windows builds with xentools 6-1 and above

Registered by Kashi Reddy

Windows builds with pre-installed xentools version >= 6.1 require the property 'device_id' to be set on the xen vm record for the VM to build successfully. Also, the device_id needs to be set only if the hypervisor version is greater than or equal to 6.1
For eg, the device_id requires to be set to "0002" in case of Windows with xen tools version >= 6.1
Refer to:
http://support.citrix.com/article/CTX135099
http://www.r2dtop.com/wp-content/uploads/2012/10/listxstools.png
for more information.

Requires:
In Glance, the property 'xenapi_device_id' has to be set on the image_metadata for such images which require a device_id to be built.

Approach taken:
In Nova, the property 'xenapi_device_id' on the image_metadata is copied over to the xen vm record before vm create is invoked.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
Kashi Reddy
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
John Garbutt
Completed by
John Garbutt

Related branches

Sprints

Whiteboard

OK, so this got merged, and it looks like we have more doc worthy material than before, marking as completed and approved -- johnthetubaguy

(johnthetubaguy) This needs more details on how you could use this (like the glance metadata, and how you set it), also it should describe how it should be used with the xenserver version glance attribute, and how it only works on certain versions of XenServer, etc. etc.

Gerrit topic: https://review.openstack.org/#q,topic:allow-windows-builds-with-xentools6.1-and-6.2,n,z

Addressed by: https://review.openstack.org/55117
    Allow windows builds with xentools 6.1 and 6.2

Gerrit topic: https://review.openstack.org/#q,topic:bp/allow-windows-builds-with-xentools6,n,z

Gerrit topic: https://review.openstack.org/#q,topic:bp/allow-windows-builds-with-xentools6-1-and-6-2,n,z

Addressed by: https://review.openstack.org/56186
    Style tweaks for Id3cd9d569519f2df1afa046ddabf33f00d63c615

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.