-
Committer:
Tarmac
-
Author(s):
Chris Behrens
-
Date:
2011-05-26 20:55:53 UTC
-
mfrom:
(1102.1.11 swapdisk)
-
Revision ID:
tarmac-20110526205553-ae3ivtlcmm8byb33
Essentially adds support for wiring up a swap disk when building.
Modifies the glance plugin to check for a swap.vhd. Glance's download_vhd will now return a list of dictionaries describing VHDs found in the image. All returns from _fetch_image calls in xenapi have been modified accordingly.
One can now build a .ova for glance that contains an image.vhd and a swap.vhd files.
When a VM is created, it'll iterate through the list and create VBDs for all of the VDIs found.
Added a test for this, too, which required a slight fix to xenapi's fake.py.