Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update backuprestore.cfg to fix bus and target device parameter #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

misanjumn
Copy link
Contributor

@misanjumn misanjumn commented Nov 26, 2024

Update backuprestore.cfg to fix bus and target device parameter

  • The virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun requires bus as "scsi" and target as "sdb"
  • The default bus "virtio" (virtio-blk) and default disk "sda" are leading to error since virtio-blk is not support for iscsi emulation and default disk sda is leading to duplicacy.
  • Hence, adding the parameters seperately only for this particular scenario is required
            - snapshot_create_as.negative_tests.network_disk.iscsi.device_lun:
                disk_target_bus = "scsi"
                disk_target = "sdb"
                only virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun

Signed-off-by: Misbah Anjum N [email protected]

The virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun
requires bus as "scsi" and target as "sdb"
The default bus "virtio" (virtio-blk) and default disk "sda" are leading
to error since virtio-blk is not support for iscsi emulation and default
disk sda is leading to duplicacy.

Signed-off-by: Misbah Anjum N <[email protected]>
@misanjumn
Copy link
Contributor Author

Before patch:

Status: ERROR

 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun:  ERROR: Failed to define virt-tests-vm1 for reason:\nerror: Failed to define domain from /var/tmp/xml_utils_temp_qjyxl1zw.xml\nerror: unsupported configuration: This QEMU doesn't support SCSI emulation with 'virtio-blk' device\n (16.60 s)
RESULTS    : PASS 0 | ERROR 1 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun:  ERROR: Failed to define virt-tests-vm1 for reason:\nerror: Failed to define domain from /var/tmp/xml_utils_temp_jxfbr6s6.xml\nerror: unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0'... (17.04 s)
RESULTS    : PASS 0 | ERROR 1 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

After patch:

Status: PASS

 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.virsh.snapshot_create_as.negative_tests.network_disk.iscsi.device_lun:  PASS (24.67 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

@misanjumn misanjumn changed the title Update backuprestore.cfg to fix parameter Update backuprestore.cfg to fix bus and target device parameter Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant