On 08/28/2014 04:41 PM, Alex Jia wrote: > Hi yumingfei, > I saw you had written many test cases about VM migration, > in your test configuration, sometimes, you used argument > 'virsh_migrate_shared_storage'[1], and sometimes not[2], > and also have "migrate_shared_storage = SHARED_IMAGE.EXAMPLE.COM" > related configuration in virt-test, if we don't configure > 'virsh_migrate_shared_storage' option, can I successfully > run [2]? Yes, you can. It is caused by some history problems. :( In fact, 'virsh_migrate_shared_storage' is only valid for virsh.migrate testcases.
> > [1] libvirt/tests/cfg/virsh_cmd/domain/virsh_migrate.cfg > [2] libvirt/tests/cfg/virsh_cmd/domain/virsh_migrate_setmaxdowntime.cfg > libvirt/tests/cfg/virsh_cmd/domain/virsh_migrate_multi_vms.cfg > > In addition, I also set > 'virsh_migrate_shared_storage=/tmp/virt-test/shared/data/images/jeos-19-64.qcow2' > in my test configuration, but it doesn't work for me, and > got error "Failed to open file > '/tmp/virt-test/shared/data/images/jeos-19-64.qcow2': > No such file or directory", however, in fact, it indeed exists, and > I can't find any avc denied error in audit.log. As for migration testcases, we have to select a "shared" image disk for vm. It means this image disk should exist both on source and dest host and they should be in same path. So this error does not mean there is no image on your source host but on your dest host. :) The steps for us: 1.Export a dir through NFS including shared_image. 2.Mount this nfs dir to both source and dest host's same directory, such as /migration. 3.So this means you have a shared storage: /migration/shared.img. 4.Then it will work. > > # ll -Z /tmp/virt-test/shared/data/images/jeos-19-64.qcow2 > -rw-r--r--. root root system_u:object_r:svirt_image_t:s0:c489,c602 > /tmp/virt-test/shared/data/images/jeos-19-64.qcow2 > > I also try to use '--selinux-setup' followed by ./run, but the result > is the same to previous, could you help check it? thanks. > -- Best Regards Yu Mingfei _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
