qemuxml2argvtest: hostdev-scsi-virtio-scsi: Add <readonly/> to one of the iSCSI hostdevs

Test a readonly iSCSI backend as well.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2020-09-15 17:48:22 +02:00
parent 1a5f35dbd2
commit c58c970586
4 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ format=raw,id=drive-hostdev2 \
-device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=4,\
drive=drive-hostdev2,id=hostdev2 \
-drive file=iscsi://example.org:3260/iqn.1992-01.com.example/1,if=none,\
format=raw,id=drive-hostdev3 \
format=raw,id=drive-hostdev3,readonly=on \
-device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=5,\
drive=drive-hostdev3,id=hostdev3 \
-drive file=iscsi://myname:AQCVn5hO6HzFAhAAq0NCv8jtJcIcE+HOBlMQ1A@example.org:\

View File

@ -48,7 +48,7 @@ format=raw,id=drive-hostdev2 \
drive=drive-hostdev2,id=hostdev2 \
-drive file.driver=iscsi,file.portal=example.org:3260,\
file.target=iqn.1992-01.com.example,file.lun=1,file.transport=tcp,if=none,\
format=raw,id=drive-hostdev3 \
format=raw,id=drive-hostdev3,readonly=on \
-device scsi-generic,bus=scsi0.0,channel=0,scsi-id=2,lun=5,\
drive=drive-hostdev3,id=hostdev3 \
-object secret,id=hostdev4-secret0,\

View File

@ -58,6 +58,7 @@
<source protocol='iscsi' name='iqn.1992-01.com.example/1'>
<host name='example.org' port='3260'/>
</source>
<readonly/>
<address type='drive' controller='0' bus='0' target='2' unit='5'/>
</hostdev>
<hostdev mode='subsystem' type='scsi' managed='yes'>

View File

@ -65,6 +65,7 @@
<source protocol='iscsi' name='iqn.1992-01.com.example/1'>
<host name='example.org' port='3260'/>
</source>
<readonly/>
<address type='drive' controller='0' bus='0' target='2' unit='5'/>
</hostdev>
<hostdev mode='subsystem' type='scsi' managed='yes'>