migrate.cfg 7.3 KB
Newer Older
1 2 3 4 5
- migrate: install setup image_copy unattended_install.cdrom
    type = migration
    migration_test_command = help
    migration_bg_command = "cd /tmp; nohup tcpdump -q -i any -t ip host localhost"
    migration_bg_check_command = pgrep tcpdump
6
    migration_bg_kill_command = pkill -9 tcpdump
7 8 9 10
    kill_vm_on_error = yes
    iterations = 2
    used_mem = 1024
    mig_timeout = 3600
11
    ping_pong = 1
12 13 14 15
    # you can uncomment the following line to enable the state
    # check
    # vmstate_check = yes
    variants:
16 17 18 19
        - x-rdma:
            migration_protocol = "x-rdma"
        - rdma:
            migration_protocol = "rdma"
20 21 22 23
        - tcp:
            migration_protocol = "tcp"
        - unix:
            migration_protocol = "unix"
24
            no Host_RHEL.5
25 26
        - exec:
            migration_protocol = "exec"
27 28 29 30 31
            variants:
                - @default_exec:
                - gzip_exec:
                    migration_exec_cmd_src = "gzip -c > %s"
                    migration_exec_cmd_dst = "gzip -c -d %s"
32 33 34 35 36 37
        - fd:
            migration_protocol = "fd"
        - mig_cancel:
            migration_protocol = "tcp"
            mig_cancel = yes
            only migrate..default
38 39 40 41 42 43 44 45
        - mig_cancel_x_rdma:
            migration_protocol = "x-rdma"
            mig_cancel = yes
            only migrate..default
        - mig_cancel_rdma:
            migration_protocol = "rdma"
            mig_cancel = yes
            only migrate..default
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
    variants:
        - @default:
        - with_speed_measurement:
            no JeOS
            # migration speed in bytes. Default scaler is M (350 == 350M)
            only Linux
            mig_speed = 125M
            # accuracy of mig_speed
            # speed_range = (mig_speed+-(mig_speed*mig_speed_accuracy))
            # if real_mig_speed is on in speed_range it raises Test warning.
            mig_speed_accuracy = 0.3
            pre_migrate = "set_speed_and_install"
            type = migration_with_speed_measurement
            exec:
                # Exec migration is pretty slow compared to other protos
                mig_speed = 50M
        - with_set_speed:
            mig_speed = 1G
            pre_migrate = "mig_set_speed"
        - with_reboot:
            iterations = 1
            type = migration_with_reboot
        - with_file_transfer:
            no JeOS
            iterations = 1
            type = migration_with_file_transfer
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
        - mig_dest_problem:
            no JeOS
            only Linux
            requires_root = yes
            master_images_clone = "image1"
            type = migration_with_dst_problem
            migration_exec_cmd_src = "gzip -c > %s"
            variants:
                - read_only_dest:
                    test_type = test_read_only_dest
                    only exec
                    vms = "virt_test_vm1_guest virt_test_vm2_data_server"
                    start_vm_vm1_guest = no
                    read_only_timeout = 480
                    migration_protocol = exec
                    migration_exec_cmd_src = "gzip -c > %s"
                - low_space_dest:
                    test_type = test_low_space_dest
                    only exec
                    vms = "virt_test_vm1_guest"
                    disk_size = 10M
                    migration_protocol = exec
                    migration_exec_cmd_src = "gzip -c > %s"
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
        - after_extensive_io:
            only Linux
            no JeOS
            requires_root = yes
            master_images_clone = "image1"
            type = migration_with_dst_problem
            vms = "vm1 virt_test_vm2_data_server"

            copy_block_size = 100M
            kill_vm_gracefully_virt_test_vm2_data_server = yes
            start_vm_vm1 = no
            images_vm1 = "$images image2"
            image_boot_image2_vm1 = no
            image_name_image2_vm1 = "test"
            force_create_image_image2_vm1 = yes
            # Set in test runtime
            images_base_dir_image2_vm1 = ""
            drive_serial_image1_vm1 = "root-image1-vm1"
            drive_serial_image2_vm1 = "shared-image2-vm1"
            drive_cache = "none"
            guest_disk_mount_path = "/mnt"
            kill_vm = yes
            copy_timeout = 1024
            server_recover_timeout = 240
            variants:
                - nfs:
                    test_type = test_extensive_io_nfs
                - iscsi:
                    test_type = test_extensive_io_iscsi
                    iscsi_variant = tgt
125 126 127 128 129 130 131 132 133 134 135 136 137
        - with_autotest:
            no JeOS
            only Linux
            type = autotest_control
            migrate_background = yes
            test_timeout = 1800
            variants:
                - dbench:
                    test_control_file = dbench.control
                - stress:
                    test_control_file = stress.control
                - monotonic_time:
                    test_control_file = monotonic_time.control
138
        - with_stress:
139
            no JeOS
140 141 142 143 144 145 146 147 148 149 150 151 152 153
            only Linux
            iterations = 1
            variants:
                - io_stress:
                    test_timeout = 4200
                    ping_pong = 10
                    guest_stress_test = "autotest"
                    test_type = "iozone"
                    stress_stop_cmd = "killall autotest"
                - mem_stress:
                    ping_pong = 10
                    test_timeout = 600
                    guest_stress_test = "autotest"
                    test_type = "stress_memory_heavy"
154
        - between_vhost_novhost:
155
            no JeOS
156 157 158 159
            only Host_RHEL.6
            no Host_RHEL.6.1
            migrate_between_vhost_novhost = "yes"
            type = migration_with_file_transfer
160 161 162 163 164 165
        - with_netperf:
            no JeOS
            iterations = 1
            type = migration_with_netperf
            client_num = 100
            netperf_timeout = 1000
166
            hostpassword = redhat
167
            mig_timeout = 1500
168 169 170 171 172 173
            # netperf_download_link can be local file or a remote URL
            # when using remote URL, pkg_md5sum must be setted. for example:
            # when using local file, support both relative path and absolute path
            # when using the relative path, the base dir is "shared/deps/".
            #netperf_download_link = ftp://ftp.netperf.org/netperf/netperf-2.6.0.tar.bz2
            #pkg_md5sum = 9654ffdfd4c4f2c93ce3733cd9ed9236
174
            netperf_link = netperf-2.6.0.tar.bz2
175 176
            RHEL.4:
                netperf_link = netperf-2.4.5.tar.bz2
177 178
            server_path = /var/tmp
            client_path = /var/tmp
179 180 181 182
            Windows:
                # server_download_link config like netperf_download_link, only for win guest
                #server_download_link = ftp://x.com/netserver-2.6.0.exe
                #server_md5sum = 8f107e9df4f501d20cf46cccc426f4a9
183 184
                netperf_server_link_win = "netserver-2.6.0.exe"
                netperf_client_link_win = "netperf.exe"
185 186 187
                server_path_win = "c:\"
                client_path_win = "c:\"
                shell_client = nc
188 189 190 191 192 193 194 195 196 197 198
        - with_pio_op:
            only RHEL
            only ide
            only tcp
            pre_migrate = "check_dma"
            test_timeout = 4200
            ping_pong = 10
            guest_stress_test = "autotest"
            test_type = "iozone"
            stress_stop_cmd = "killall autotest"
            kernel_extra_params_add = "libata.dma=0"