Hide Forgot
Description of problem: blockpull output is diffrent for diffrent size of qed domain img without backing file. For 50M qed domain img without backing file, the following error will prompt: # virsh blockpull vr-rhel6-x86_64-kvm /var/lib/libvirt/images/qed 1 error: Requested operation is not valid: No active operation on device: drive-ide0-0-0 For 1G qed domain img without backing file, blockpull can be succeed to executed: # virsh blockpull vr-rhel6-x86_64-kvm /var/lib/libvirt/images/qed 1 Version-Release number of selected component (if applicable): libvirt-0.9.8-1.el6.x86_64 qemu-kvm-0.12.1.2-2.213.el6.x86_64 kernel-2.6.32-220.el6.x86_64 How reproducible: everytimes Steps to Reproduce: For 50M qed domain img without backing file 1. create a 50M qed img # qemu-img create -f qed /var/lib/libvirt/images/qed 50M Formatting '/var/lib/libvirt/images/qed', fmt=qed size=52428800 cluster_size=0 table_size=0 2. start guest using the qed img ... <disk type='file' device='disk'> <driver name='qemu' type='qed'/> <source file='/var/lib/libvirt/images/qed'/> <target dev='hda' bus='ide'/> </disk> ... # virsh start vr-rhel6-x86_64-kvm Domain vr-rhel6-x86_64-kvm started 3. start to block pull # virsh blockpull vr-rhel6-x86_64-kvm /var/lib/libvirt/images/qed 1 error: Requested operation is not valid: No active operation on device: drive-ide0-0-0 For 1G qed domain img without backing file: 1. create a 1G qed img # qemu-img create -f qed /var/lib/libvirt/images/qed 1G Formatting '/var/lib/libvirt/images/qed', fmt=qed size=1073741824 cluster_size=0 table_size=0 2. start guest using the qed img ... <disk type='file' device='disk'> <driver name='qemu' type='qed'/> <source file='/var/lib/libvirt/images/qed'/> <target dev='hda' bus='ide'/> </disk> ... # virsh start rhel6 Domain rhel6 started 3. start to block pull # virsh blockpull rhel6 /var/lib/libvirt/images/qed 1 # virsh blockjob rhel6 /var/lib/libvirt/images/qed --info Block Pull: [ 30 %] Bandwidth limit: 1 MB/s Actual results: blockpull output is diffrent for diffrent size of qed domain img without backing file. Expected results: If blockpull doesn't support for qed domain img without backing file, the error should raised regardless of the size of img. Additional info:
I am unable to reproduce this with 0.9.11, could you please try it with latest libvirt and qemu? There was some heavy work done on this part since the bug was filed. Thanks
Created attachment 587205 [details] guest xml file
I tried few possibilities and this looks perfectly fine. No output means that everything was finished (there is no job left). The bigger the image is, the longer it takes to check for what should and what shouldn't be pulled. On 50M it took me just about few seconds on a slow disk, so it's really fast. I'd close this bug as it works the way it's supposed to. This was probably fixed in 0.9.11, I'll have a look at it.
Closing as this was solved already and is now OK in current version.