File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ - multihost:
2
+ type = multihost
3
+ vms = ' '
4
+ start_vm = no
5
+ kill_vm = no
6
+ nodes = node1
7
+ multihost = yes
8
+ storage_type = nfs
9
+ force_create_image = yes
10
+ remove_image = yes
11
+ images = top
12
+ image_chain_top = base top
13
+ image_name_base = base
14
+ image_name_top = top
15
+ image_format = qcow2
16
+ preallocated_base = metadata
17
+ image_cluster_size = 1M
Original file line number Diff line number Diff line change
1
+ from virttest .vt_imgr import vt_imgr
2
+
3
+
4
+ def run (test , params , env ):
5
+ images = dict ()
6
+ for image_tag in params .objects ("images" ):
7
+ images [image_tag ] = vt_imgr .query_image (image_tag )
8
+
9
+ for image_id in images .values ():
10
+ test .log .info ("source: %s: %s" , image_id , vt_imgr .get_image_info (image_id ))
11
+ cloned_image_id = vt_imgr .clone_image (image_id )
12
+ test .log .info (
13
+ "cloned: %s: %s" , cloned_image_id , vt_imgr .get_image_info (cloned_image_id )
14
+ )
15
+ vt_imgr .update_image (cloned_image_id , {"destroy" : {}})
16
+ vt_imgr .destroy_image_object (cloned_image_id )
17
+ vt_imgr .update_image (image_id , {"destroy" : {}})
18
+ vt_imgr .destroy_image_object (image_id )
You can’t perform that action at this time.
0 commit comments