remote_image_snapshot.cfg 1.6 KB
Newer Older
1
# Network storage backends:
2 3 4 5 6
#   iscsi_direct
#   ceph
#   gluster_direct
#   nbd
#   curl (read-only)
7 8 9 10 11
# These tcs only focus on the following scenarios:
#   remote image -> local snapshot
#   remote image -> remote snapshot

- remote_image_snapshot:
12
    only iscsi_direct ceph gluster_direct nbd curl
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
    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
38
            enable_gluster_snA = no
39
            enable_nbd_snA = no
40
            enable_curl_snA = no
41 42
            image_raw_device_snA = no
            storage_type_snA = filesystem
43 44
            curl:
                image_readonly_snA = no
45
        - to_remote:
46
            no nbd curl
47 48 49 50 51 52 53
            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,)