remote_image_snapshot.cfg 1.5 KB
Newer Older
1
# Network storage backends:
2
#   iscsi_direct ceph gluster_direct nbd
3 4 5 6 7
# These tcs only focus on the following scenarios:
#   remote image -> local snapshot
#   remote image -> remote snapshot

- remote_image_snapshot:
8
    only iscsi_direct ceph gluster_direct nbd
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    virt_test_type = qemu
    type = qemu_disk_img_info
    image_chain= "image1 snA"
    kill_vm = yes
    start_vm = no
    image_size = 20G
    md5sum_bin = "md5sum"
    tmp_dir = /var/tmp
    tmp_file_name = ${tmp_dir}/test.img
    force_create_image = no
    dd_bs_val = 1
    dd_bs_count = 256
    file_create_cmd = "dd if=/dev/urandom of=%s bs=${dd_bs_val}M count=${dd_bs_count}"
    guest_file_name_image1 = "${tmp_dir}/test.img"
    image_name_snA = "images/snA"
    image_format_snA = "qcow2"
    guest_file_name_snA = "${tmp_dir}/snA"
    backing_chain = yes
    iscsi_direct:
        # Never set size for the whole block is used
        image_size_snA = ""
    variants:
        - to_local:
            enable_iscsi_snA = no
            enable_ceph_snA = no
34
            enable_gluster_snA = no
35
            enable_nbd_snA = no
36 37 38
            image_raw_device_snA = no
            storage_type_snA = filesystem
        - to_remote:
39
            no nbd
40 41 42 43 44 45 46
            iscsi_direct:
                # make sure size of lun_snA equals to size of lun_image1
                # hard code here for avocado-vt cannot select luns by now
                lun_snA = 1
            ceph:
                # qcow2 is supported since 4.1.0 on ceph
                required_qemu = [4.1.0,)