qemublocktest: Convert all 'gluster' instances to 'nbd' in 'xml2json' cases

Gluster will be deprecated in the upcoming qemu version thus we need to
replace the network protocol by something which will stay supported so
that we can keep the tests around.

Convert all cases referencing 'gluster' to 'nbd'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Peter Krempa 2024-10-10 17:21:40 +02:00
parent 81493d8eb6
commit b6545bcec1
33 changed files with 176 additions and 242 deletions

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -36,16 +36,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -36,16 +36,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -54,16 +54,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap",

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='qcow2'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -54,16 +54,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap",

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='qcow2'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -54,16 +54,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap",

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='qcow2'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -54,16 +54,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap",

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='qcow2'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -54,16 +54,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap",

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='qcow2'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -35,16 +35,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -38,16 +38,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -38,16 +38,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>

View File

@ -19,19 +19,16 @@
(
source only properties:
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
]
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c"
}
backing store string:
gluster://test.org:24007/images/c
nbd://test.org:10809/images/c
)
(
source only properties:

View File

@ -37,16 +37,13 @@
"backing": "node-d-f"
}
{
"driver": "gluster",
"volume": "images",
"path": "c",
"server": [
{
"type": "inet",
"host": "test.org",
"port": "24007"
}
],
"driver": "nbd",
"server": {
"type": "inet",
"host": "test.org",
"port": "10809"
},
"export": "images/c",
"node-name": "node-c-s",
"auto-read-only": true,
"discard": "unmap"

View File

@ -20,7 +20,7 @@
</source>
<backingStore type='network' index='2'>
<format type='vmdk'/>
<source protocol='gluster' name='images/c'>
<source protocol='nbd' name='images/c'>
<host name='test.org'/>
<privateData>
<nodenames>