block_hotplug.cfg 4.7 KB
Newer Older
1
- block_hotplug: install setup image_copy unattended_install.cdrom
2
    no RHEL.3.9
3
    no ide
4
    virt_test_type = qemu libvirt
5
    type = block_hotplug
6
    bootindex_image1 = 0
7 8
    images += " stg0"
    boot_drive_stg0 = no
M
Mike Qiu 已提交
9
    image_name_stg0 = images/storage0
10 11 12
    image_size_stg0 = 1G
    remove_image_stg0 = yes
    force_create_image_stg0 = yes
13
    get_disk_cmd = "ls /dev/[hsv]d[a-z]* | sort"
14 15
    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"
16
    kill_vm_on_error = yes
17

18 19 20 21 22 23
    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"

24 25
    variants:
        - one_pci:
26
            repeat_times = 1
27
        - multi_pci:
28 29
            q35, arm64-pci:
                pcie_extra_root_port = 2
30
            repeat_times = 1
31 32
            images += " stg1"
            boot_drive_stg1 = no
M
Mike Qiu 已提交
33
            image_name_stg1 = images/storage1
34 35 36
            image_size_stg1 = 1G
            remove_image_stg1 = yes
            force_create_image_stg1 = yes
37 38 39

    variants:
        - @default:
40
        - with_repetition:
41
            repeat_times = 100
42
        - with_reboot:
43
            sub_type_after_plug = boot
44 45 46
            sub_type_after_unplug = boot
            reboot_method = shell
        - with_shutdown:
47 48
            variants:
                - after_plug:
49
                    only with_plug
50 51 52
                    sub_type_after_plug = shutdown
                - after_unplug:
                    sub_type_after_unplug = shutdown
53
            shutdown_method = shell
Y
Yanan Fu 已提交
54
            check_image = yes
55 56 57 58 59 60 61 62
            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
63 64
        - with_block_resize:
            only with_plug
65
            only one_pci
66
            sub_type_after_plug = block_resize
67
            blk_extra_params_stg0 += ",serial=TARGET_DISK0"
68 69
            disk_change_ratio = "1.5 0.5"
            repeat_times = 1
70 71 72 73
            image_size_stg0 = 10G
            Linux:
                image_size_stg = ${image_size_stg0}
                format_disk = yes
74 75
            Windows:
                accept_ratio = 0.0005
76 77 78
                need_rescan = yes
                disk_letter = I
                disk_index = 1
79 80 81 82 83
            virtio_scsi:
                driver_name = vioscsi
            virtio_blk:
                driver_name = viostor
            fmt_qcow2:
84 85
                Host_RHEL.m6, Host_RHEL.m7.u0, Host_RHEL.m7.u1, Host_RHEL.m7.u2, Host_RHEL.m7.u3, Host_RHEL.m7.u4, Host_RHEL.m7.u5:
                    disk_change_ratio = 1.5
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101

    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
102 103 104 105 106 107
            variants:
                - @default:
                - max_size:
                    only fmt_qcow2.max_size.with_plug.default.one_pci
                    image_size_stg0 = 16T
                    check_disk_size = yes
108 109 110 111 112
        - fmt_raw:
            image_extra_params = ""
            img_format_type = raw
            image_format_stg0 = raw
            image_format_stg1 = raw
113 114 115 116 117 118
            variants:
                - @default:
                - max_size:
                    only fmt_raw.max_size.with_plug.default.one_pci
                    image_size_stg0 = 16T
                    check_disk_size = yes
119

120 121
    variants:
        - block_virtio:
122 123 124
            drive_format_stg0 = virtio
            drive_format_stg1 = virtio
            get_disk_pattern = "^/dev/vd[a-z]*$"
125
        - block_scsi:
126 127 128
            drive_format_stg0 = scsi-hd
            drive_format_stg1 = scsi-hd
            get_disk_pattern = "^/dev/sd[a-z]*$"
129 130 131 132 133

    variants:
        - @default:
        - data_plane:
            no Host_RHEL.m6
134
            only with_plug.with_system_reset.one_pci, block_scsi..with_plug.with_repetition.one_pci
135 136 137 138 139
            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
140
                bus_extra_params_image1 = "iothread=${iothreads}"
141
                bus_extra_params_stg0 = "iothread=${iothreads}"