Red Hat Bugzilla – Bug 1013507
qemu-img: Error while committing image
Last modified: 2015-01-29 09:47:13 EST
Description of problem:
qemu-img: Error while committing image
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. qemu-img create -f qcow2 /usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/shared/data/images/sn1.qcow2 -b /usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/shared/data/images/sles11sp3-64-virtio.qcow2
/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/qemu/qemu -monitor stdio \
-name 'virt-tests-vm1' \
-chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/monitor-qmpmonitor1-20130930-140029-sTvpKEHN,server,nowait \
-mon chardev=qmp_id_qmpmonitor1,mode=control \
-chardev socket,id=serial_id_serial1,path=/tmp/serial-serial1-20130930-140029-sTvpKEHN,server,nowait \
-device isa-serial,chardev=serial_id_serial1 \
-chardev socket,id=seabioslog_id_20130930-140029-sTvpKEHN,path=/tmp/seabios-20130930-140029-sTvpKEHN,server,nowait \
-device isa-debugcon,chardev=seabioslog_id_20130930-140029-sTvpKEHN,iobase=0x402 \
-device ich9-usb-uhci1,id=usb1,bus=pci.0,addr=0x4 \
-drive file='/usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/shared/data/images/sn1.qcow2',index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,snapshot=off,format=qcow2,aio=native \
-device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,bootindex=0 \
-device virtio-net-pci,netdev=idpWdCHL,mac='9a:f7:f8:f9:fa:fb',bus=pci.0,addr=0x3,id='id7Wq546' \
-netdev tap,id=idpWdCHL,vhost=on \
-m 8192 \
-smp 8,maxcpus=8,cores=4,threads=1,sockets=2 \
-cpu 'Opteron_G3' \
-M rhel6.5.0 \
-device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
-vnc :0 \
-vga cirrus \
-rtc base=utc,clock=host,driftfix=slew \
-boot order=cdn,once=c,menu=off \
3. shutdown guest, and
qemu-img commit /usr/local/staf/test/RHEV/kvm/autotest-devel/client/tests/virt/shared/data/images/sn1.qcow2
Error while committing image
not stable reproducer
met this issue again, and 100% reproduce in
Can you please try running the 'qemu-img commit' command under strace -f and
post the output of it? I hope we can see this way what the exact error is.
(In reply to Kevin Wolf from comment #4)
> Can you please try running the 'qemu-img commit' command under strace -f and
> post the output of it? I hope we can see this way what the exact error is.
This bug is not always reproducible,
I am trying get one
Created attachment 922066 [details]
strace -f -o strace.txt
(In reply to Xiaoqing Wei from comment #6)
> Created attachment 922066 [details]
> strace -f -o strace.txt
log attached, pls check.
Are you sure you attached the log of a failing instance? It ends with this:
12930 write(1, "Image committed.\n", 17) = 17
12930 exit_group(0) = ?
This is the message for successful completion and it has exit code 0, too.
(In reply to Kevin Wolf from comment #8)
BTW, version as below:
# rpm -q qemu-kvm-rhev
Obviously, the reported output "Error while committing image" and the posted
strace don't match. If the message isn't there in the trace, it can't possibly
have been output.
If we can't get an strace and an observed output that match, I'll have to close
this as INSUFFICIENT_DATA. Any chance we can get more coherent information?
(In reply to Kevin Wolf from comment #13)
> Obviously, the reported output "Error while committing image" and the posted
> strace don't match. If the message isn't there in the trace, it can't
> have been output.
> If we can't get an strace and an observed output that match, I'll have to
> this as INSUFFICIENT_DATA. Any chance we can get more coherent information?
As the C#8, I have tried run this on a customized autotest env for this bz,
only reproduce this once, and unfortunately the result is uesless on your side.
I believe re-run that script would have same result.
Due to the low reproducibility of this bz, it wont impact a lot, it's fine to close on my side.
Thanks, Xiaoqing. If you ever find some new information that could help with it,
feel free to reopen, but as you say, I will close it for now.