block_hotplug.cfg 2.6 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 14 15
    get_disk_cmd = "ls /dev/[hsv]d[a-z]* | sort"
    pci_test_cmd = "dd if=%s of=/dev/null bs=1k count=1000 iflag=direct &&"
    pci_test_cmd += " dd if=/dev/zero of=%s bs=1k count=1000 oflag=direct"
16
    kill_vm_on_error = yes
17

18 19
    variants:
        - one_pci:
20
            blk_num = 1
21
            repeat_times = 3
22
        - multi_pci:
23 24
            blk_num = 2
            repeat_times = 3
25 26
            images += " stg1"
            boot_drive_stg1 = no
M
Mike Qiu 已提交
27
            image_name_stg1 = images/storage1
28 29 30
            image_size_stg1 = 1G
            remove_image_stg1 = yes
            force_create_image_stg1 = yes
31 32 33

    variants:
        - @default:
34 35
        - with_repetition:
            repeat_times = 300
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
        - with_reboot:
            sub_type_after_unplug = boot
            reboot_method = shell
        - with_shutdown:
            sub_type_after_unplug = shutdown
            shutdown_method = shell
            check_img = 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

    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

73 74
    variants:
        - block_virtio:
75 76 77 78 79 80
            pci_type = virtio-blk-pci
            drive_format_stg0 = virtio
            drive_format_stg1 = virtio
            get_disk_pattern = "^/dev/vd[a-z]*$"
            virtio_blk:
                no ppc64 ppc64le
81
        - block_scsi:
82 83 84 85 86 87 88
            pci_type = scsi-hd
            drive_format_stg0 = scsi-hd
            drive_format_stg1 = scsi-hd
            get_disk_pattern = "^/dev/sd[a-z]*$"
            virtio_blk:
                need_controller = yes
                controller_model = virtio-scsi-pci