10:18:43 DEBUG| Running virsh command: update-device virt-tests-vm1  /add_storage/liyang/autotest_update_device_v3/client/tmp/tmp/tmpVGHhjC_virt.libvirt.virtio_blk.smp2.virtio_net.Fedora.17.x86_64.virsh_update_device.normal_test.name_option/xml_file
10:18:43 DEBUG| Running '/usr/bin/virsh update-device virt-tests-vm1  /add_storage/liyang/autotest_update_device_v3/client/tmp/tmp/tmpVGHhjC_virt.libvirt.virtio_blk.smp2.virtio_net.Fedora.17.x86_64.virsh_update_device.normal_test.name_option/xml_file'
10:18:43 DEBUG| status: 1
10:18:43 DEBUG| stdout:
10:18:43 DEBUG| stderr: error: Failed to update device from /add_storage/liyang/autotest_update_device_v3/client/tmp/tmp/tmpVGHhjC_virt.libvirt.virtio_blk.smp2.virtio_net.Fedora.17.x86_64.virsh_update_device.normal_test.name_option/xml_file
error: internal error unable to execute QEMU command 'change': Could not open '/add_storage/liyang/autotest_update_device_v3/client/tmp/tmp/tmpVGHhjC_virt.libvirt.virtio_blk.smp2.virtio_net.Fedora.17.x86_64.virsh_update_device.normal_test.name_option/tmp.iso': Permission denied

It appears "Permission denied".Seems like file permission's problem.But in the test I use ""touch %s ;chmod 777 %s" % (source_iso, source_iso)", the test still failed with same reason.And I don't quite understand QEMU command 'change'...Do you know what's the reason of this problem?

BTW, test.tmpdir always makes the test fail,and use test.virtdir to get a tmpdir is dangerous, I thinks I have to touch xml_file and tmp_iso in test.virtdir path, and at the end of test I will just clean up all the files I created manually but won't remove any dir..Is that OK..