]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml(conf|active)test: Use 'nbd' instead of 'gluster' in 'disk-backing-chains...
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Oct 2024 15:57:36 +0000 (17:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Oct 2024 12:39:09 +0000 (14:39 +0200)
The gluster protocol will be deprecated by qemu-9.2. Convert the tests
to NBD as it's trivial and the test cases are not concerned with a
specific protocol.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxmlactive2xmldata/disk-backing-chains-index-active.x86_64-latest.xml
tests/qemuxmlactive2xmldata/disk-backing-chains-index-inactive.x86_64-latest.xml
tests/qemuxmlconfdata/disk-backing-chains-index.x86_64-latest.xml
tests/qemuxmlconfdata/disk-backing-chains-index.xml
tests/qemuxmlconfdata/disk-backing-chains-noindex.x86_64-latest.args
tests/qemuxmlconfdata/disk-backing-chains-noindex.x86_64-latest.xml
tests/qemuxmlconfdata/disk-backing-chains-noindex.xml

index fec48e863b4b8bb8e8ee4a67c3fdfdce000f11de..51348182433e7ecf3f2cb74049a6f5cd7a389945 100644 (file)
@@ -19,7 +19,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image' index='2'>
+      <source protocol='nbd' name='Volume2/Image' index='2'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file' index='1'>
@@ -68,7 +68,7 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
-      <source protocol='gluster' name='Volume1/Image' index='10'>
+      <source protocol='nbd' name='Volume1/Image' index='10'>
         <host name='example.org' port='6000'/>
       </source>
       <backingStore/>
index 52c8ad6f2923f31a5012667bd5155b4b4ad4d093..ef4fa48366d34d941c57222a0f5b023889f34fa5 100644 (file)
@@ -19,7 +19,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image' index='2'>
+      <source protocol='nbd' name='Volume2/Image' index='2'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file' index='1'>
@@ -68,7 +68,7 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
-      <source protocol='gluster' name='Volume1/Image' index='10'>
+      <source protocol='nbd' name='Volume1/Image' index='10'>
         <host name='example.org' port='6000'/>
       </source>
       <backingStore/>
index ad81cd4696887a67f9cc83bb0fb96ccad7302383..7d9405b6a87dc5e6572c1821a0b30507b57715c2 100644 (file)
@@ -19,7 +19,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image'>
+      <source protocol='nbd' name='Volume2/Image'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file'>
@@ -68,7 +68,7 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
-      <source protocol='gluster' name='Volume1/Image'>
+      <source protocol='nbd' name='Volume1/Image'>
         <host name='example.org' port='6000'/>
       </source>
       <backingStore/>
index 90da6a97e9f474956dec46bc3d346e725b8adaf4..bf2104b47704a3a0da78a7a8d5ec411a277a0406 100644 (file)
@@ -16,7 +16,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image' index='2'>
+      <source protocol='nbd' name='Volume2/Image' index='2'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file' index='1'>
@@ -65,7 +65,7 @@
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
       <backingStore/>
-      <source protocol='gluster' name='Volume1/Image' index='10'>
+      <source protocol='nbd' name='Volume1/Image' index='10'>
         <host name='example.org' port='6000'/>
       </source>
       <target dev='vdc' bus='virtio'/>
index 59b7843796ebe3a827aec5391211efc095f0192a..a5c71cc14678f659da1f7b85f4a9d9416ff327b0 100644 (file)
@@ -29,7 +29,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.0","addr":"0x1.0x2"}' \
 -blockdev '{"driver":"file","filename":"/tmp/missing-backing-store.qcow","node-name":"libvirt-25-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-25-format","read-only":true,"driver":"qcow2","file":"libvirt-25-storage"}' \
--blockdev '{"driver":"gluster","volume":"Volume2","path":"Image","server":[{"type":"unix","path":"/path/to/sock"}],"debug":4,"node-name":"libvirt-24-storage","auto-read-only":true,"discard":"unmap"}' \
+-blockdev '{"driver":"nbd","server":{"type":"unix","path":"/path/to/sock"},"export":"Volume2/Image","node-name":"libvirt-24-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-24-format","read-only":false,"driver":"qcow2","file":"libvirt-24-storage","backing":"libvirt-25-format"}' \
 -device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x2","drive":"libvirt-24-format","id":"virtio-disk0","bootindex":1}' \
 -blockdev '{"driver":"file","filename":"/tmp/Fedora-17-x86_64-Live-KDE.iso","node-name":"libvirt-23-storage","read-only":true}' \
@@ -46,7 +46,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"nbd","server":{"type":"unix","path":"/var/run/nbdsock"},"export":"bar","node-name":"libvirt-17-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-17-format","read-only":false,"driver":"qcow2","file":"libvirt-17-storage","backing":"libvirt-18-format"}' \
 -device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x3","drive":"libvirt-17-format","id":"virtio-disk1"}' \
--blockdev '{"driver":"gluster","volume":"Volume1","path":"Image","server":[{"type":"inet","host":"example.org","port":"6000"}],"debug":4,"node-name":"libvirt-16-storage","read-only":false}' \
+-blockdev '{"driver":"nbd","server":{"type":"inet","host":"example.org","port":"6000"},"export":"Volume1/Image","node-name":"libvirt-16-storage","read-only":false}' \
 -device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0x4","drive":"libvirt-16-storage","id":"virtio-disk2"}' \
 -blockdev '{"driver":"file","filename":"/tmp/image.qcow","node-name":"libvirt-15-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-15-format","read-only":true,"driver":"qcow2","file":"libvirt-15-storage","backing":null}' \
index ad81cd4696887a67f9cc83bb0fb96ccad7302383..7d9405b6a87dc5e6572c1821a0b30507b57715c2 100644 (file)
@@ -19,7 +19,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image'>
+      <source protocol='nbd' name='Volume2/Image'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file'>
@@ -68,7 +68,7 @@
     </disk>
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
-      <source protocol='gluster' name='Volume1/Image'>
+      <source protocol='nbd' name='Volume1/Image'>
         <host name='example.org' port='6000'/>
       </source>
       <backingStore/>
index dc928f70752de8ee00109efeda2977c39431265b..375882486d98e8973488a5b326cffca5e16aa336 100644 (file)
@@ -16,7 +16,7 @@
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <disk type='network' device='disk'>
       <driver name='qemu' type='qcow2'/>
-      <source protocol='gluster' name='Volume2/Image'>
+      <source protocol='nbd' name='Volume2/Image'>
         <host transport='unix' socket='/path/to/sock'/>
       </source>
       <backingStore type='file'>
@@ -65,7 +65,7 @@
     <disk type='network' device='disk'>
       <driver name='qemu' type='raw'/>
       <backingStore/>
-      <source protocol='gluster' name='Volume1/Image'>
+      <source protocol='nbd' name='Volume1/Image'>
         <host name='example.org' port='6000'/>
       </source>
       <target dev='vdc' bus='virtio'/>