- block_hotplug: install setup image_copy unattended_install.cdrom no RHEL.3.9 no ide virt_test_type = qemu libvirt type = block_hotplug bootindex_image1 = 0 images += " stg0" boot_drive_stg0 = no image_name_stg0 = images/storage0 image_size_stg0 = 1G remove_image_stg0 = yes force_create_image_stg0 = yes get_disk_cmd = "ls /dev/[hsv]d[a-z]* | sort" disk_op_cmd = "dd if=%s of=/dev/null bs=1k count=1000 iflag=direct &&" disk_op_cmd += " dd if=/dev/zero of=%s bs=1k count=1000 oflag=direct" kill_vm_on_error = yes Windows: disk_index = "1 2" disk_letter = "I J" disk_op_cmd = "WIN_UTILS:\Iozone\iozone.exe -azR -r 64k -n 125M -g 512M -M -i 0" disk_op_cmd += " -i 1 -b %s:\iozone_test -f %s:\testfile" variants: - one_pci: blk_num = 1 repeat_times = 1 - multi_pci: blk_num = 2 repeat_times = 1 images += " stg1" boot_drive_stg1 = no image_name_stg1 = images/storage1 image_size_stg1 = 1G remove_image_stg1 = yes force_create_image_stg1 = yes variants: - @default: - with_repetition: repeat_times = 100 - with_reboot: sub_type_after_plug = boot sub_type_after_unplug = boot reboot_method = shell - with_shutdown: variants: - after_plug: only with_plug sub_type_after_plug = shutdown - after_unplug: sub_type_after_unplug = shutdown shutdown_method = shell check_image = yes repeat_times = 1 - with_stop_continue: sub_type_after_plug = stop_continue sub_type_after_unplug = stop_continue - with_system_reset: sub_type_after_plug = boot sub_type_after_unplug = boot reboot_method = system_reset - with_block_resize: only with_plug only one_pci sub_type_after_plug = block_resize blk_extra_params_stg0 += ",serial=TARGET_DISK0" block_size_cmd = "fdisk -l | grep {0}" block_size_pattern = ",\s+(\d+\s+b)ytes" disk_change_ratio = "1.5 0.5" repeat_times = 1 Windows: block_size_cmd = "wmic diskdrive get size, index" block_size_pattern = "1\s+(\d+)" accept_ratio = 0.0005 disk_update_cmd = "echo rescan > cmd" disk_update_cmd += " && echo select disk 1 > cmd" disk_update_cmd += " && echo select partition 1 >> cmd" disk_update_cmd += " && echo extend >> cmd" disk_update_cmd += " && echo exit >> cmd" disk_update_cmd += " && diskpart /s cmd" # "::" is used to separate the commands as it is not used in both Linux and Windows disk_update_cmd += "::" disk_update_cmd += "echo select disk 1 > cmd" disk_update_cmd += " && echo select partition 1 >> cmd" disk_update_cmd += " && echo shrink desired=DISK_CHANGE_SIZE >> cmd" disk_update_cmd += " && echo exit >> cmd && diskpart /s cmd" disk_unit = M disk_rescan_cmd = "echo rescan > cmd" disk_rescan_cmd += " && echo exit >> cmd" disk_rescan_cmd += " && diskpart /s cmd" virtio_scsi: driver_name = vioscsi virtio_blk: driver_name = viostor fmt_qcow2: disk_change_ratio = 1.5 fmt_raw: disk_change_ratio = "1.5 0.5" variants: - with_plug: need_plug = yes - without_plug: repeat_times = 1 boot_drive_stg0 = yes boot_drive_stg1 = yes need_plug = no variants: - fmt_qcow2: image_extra_params = "" img_format_type = qcow2 image_format_stg0 = qcow2 image_format_stg1 = qcow2 - fmt_raw: image_extra_params = "" img_format_type = raw image_format_stg0 = raw image_format_stg1 = raw variants: - block_virtio: drive_format_stg0 = virtio drive_format_stg1 = virtio get_disk_pattern = "^/dev/vd[a-z]*$" - block_scsi: drive_format_stg0 = scsi-hd drive_format_stg1 = scsi-hd get_disk_pattern = "^/dev/sd[a-z]*$" variants: - @default: - data_plane: no Host_RHEL.m6 only with_plug.with_system_reset.one_pci, block_scsi..with_plug.with_repetition.one_pci iothreads = iothread0 block_virtio: blk_extra_params_stg0 = "iothread=${iothreads}" block_scsi: no Host_RHEL.m7.u0, Host_RHEL.m7.u1, Host_RHEL.m7.u2 bus_extra_params_image1 = "iothread=${iothreads}" bus_extra_params_stg0 = "iothread=${iothreads}"