tests: qemublock: basic qcow2 tests
Add tests for backing chain handling, including a very long chain which
is fully specified in the XML and an unterminated chain.
The top level disk image would generate the following '-drive':
file-qcow2-backing-chain-encryption.xml:
-drive file=/var/lib/libvirt/images/a,encrypt.format=luks,
encrypt.key-secret=node-b-f-encalias,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
file-qcow2-backing-chain-noopts.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
file-qcow2-backing-chain-unterminated.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-03-16 19:56:16 +03:00
<disk type= 'file' device= 'disk' >
<driver name= 'qemu' type= 'qcow2' />
<source file= '/var/lib/libvirt/images/a' >
<encryption format= 'luks' >
<secret type= 'passphrase' uuid= '0a81f5b2-8403-7b23-c8d6-21ccc2f80d6f' />
</encryption>
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-a-s' />
<nodename type= 'format' name= 'node-b-f' />
</nodenames>
</privateData>
</source>
<backingStore type= 'file' index= '1' >
<format type= 'qcow2' />
<source file= '/var/lib/libvirt/images/b' >
<privateData >
<nodenames >
<nodename type= 'storage' name= 'node-b-s' />
<nodename type= 'format' name= 'node-b-f' />
</nodenames>
</privateData>
2018-05-22 16:03:02 +03:00
<encryption format= 'luks' >
tests: qemublock: basic qcow2 tests
Add tests for backing chain handling, including a very long chain which
is fully specified in the XML and an unterminated chain.
The top level disk image would generate the following '-drive':
file-qcow2-backing-chain-encryption.xml:
-drive file=/var/lib/libvirt/images/a,encrypt.format=luks,
encrypt.key-secret=node-b-f-encalias,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
file-qcow2-backing-chain-noopts.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
file-qcow2-backing-chain-unterminated.xml:
-drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
-device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-03-16 19:56:16 +03:00
<secret type= 'passphrase' uuid= '0a81f5b2-8403-7b23-c8d6-21ccc2f80d6f' />
</encryption>
</source>
<backingStore />
</backingStore>
<target dev= 'vda' bus= 'virtio' />
<alias name= 'virtio-disk0' />
</disk>