CloneManager: Make sure to sync driver_name

This commit is contained in:
Cole Robinson 2013-07-14 15:53:23 -04:00
parent ed8d785eef
commit 9c5a1b60ee
4 changed files with 6 additions and 2 deletions

View File

@ -20,9 +20,9 @@
<devices>
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
<disk type="block" device="floppy">
<driver type="vmdk" name="qemu"/>
<target dev="fda" bus="fdc"/>
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
<driver name="qemu" type="raw"/>
<source dev="/disk-pool/diskvol1-clone"/>
</disk>
<disk type="block" device="disk">
@ -37,6 +37,7 @@
<address type="drive" controller="0" bus="0" target="0" unit="1"/>
</disk>
<disk type="block" device="disk">
<driver type="qcow2"/>
<source dev="/default-pool/collidevol1.img"/>
<target dev="sdc" bus="scsi"/>
<readonly/>

View File

@ -19,7 +19,7 @@
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type="file" device="disk">
<target dev="hda" bus="ide"/>
<driver type="vmdk"/>
<driver name="qemu" type="vmdk"/>
<source file="/default-pool/new1.img"/>
</disk>
<disk type="block" device="disk">

View File

@ -403,6 +403,7 @@
<disk type='block' device='floppy'>
<source dev='/disk-pool/diskvol1'/>
<target dev='fda' bus='fdc'/>
<driver type="vmdk"/>
</disk>
<disk type='block' device='disk'>
<source dev='/disk-pool/diskvol2'/>
@ -415,6 +416,7 @@
<disk type='block' device='disk'>
<source dev='/default-pool/collidevol1.img'/>
<target dev='sdc' bus='scsi'/>
<driver type="qcow2"/>
<readonly/>
<shareable/>
</disk>

View File

@ -522,6 +522,7 @@ class Cloner(object):
newd = VirtualDisk(self.conn)
newd.path = disk.path
newd.device = device
newd.driver_name = disk.driver_name
newd.driver_type = disk.driver_type
newd.target = disk.target
if validate: