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

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