Bug 1030301
Summary: | qemu-img can not merge live snapshot to backing file(r/w backing file via libiscsi) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jun Li <juli> |
Component: | qemu-kvm | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | acathrow, areis, famz, hhuang, huding, jcody, juzhang, michen, pbonzini, shu, sluo, tpoitras, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-1.5.3-44.el7 | Doc Type: | Bug Fix |
Doc Text: |
Previously, when using libiscsi storage as the base image (backing file), qemu-img was not able to merge live snapshots to the backing file. Now, the issue has been fixed and live snapshots can be merged.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:10:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1080820 |
Description
Jun Li
2013-11-14 10:18:38 UTC
*** Bug 1032001 has been marked as a duplicate of this bug. *** Probably just a missing bdrv_reopen implementation. Jeff, please write here if there's anything else and you'd like me to take a look. (In reply to Paolo Bonzini from comment #3) > Probably just a missing bdrv_reopen implementation. Jeff, please write here > if there's anything else and you'd like me to take a look. I think you are right, and I believe this is the same root cause as BZ 1031526. I'll look at putting together a reopen implementation for gluster. patch posted. Fix included in qemu-kvm-1.5.3-44.el7 Reproduce this bug using the following version: qemu-kvm-rhev-1.5.3-43.el7.x86_64 kernel-3.10.0-84.el7.x86_64 Steps to Reproduce: 1.boot guest with following cli. # /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 4G -smp 4,sockets=2,cores=2,threads=1 -name juli -uuid 355a2475-4e03-4cdd-bf7b-5d6a59edaa68 -rtc base=localtime,clock=host,driftfix=slew -device virtio-scsi-pci,bus=pci.0,addr=0x5,id=scsi0 -drive file=iscsi://10.66.90.100:3260/iqn.2001-05.com.equallogic:0-8a0906-6aa1f7d03-60ff49b423b52f87-s2-huding-277437-1/0,if=none,id=drive-scsi0-0-0,media=disk,format=raw,werror=stop,rerror=stop,aio=native -device scsi-hd,drive=drive-scsi0-0-0,bus=scsi0.0,scsi-id=0,lun=0,id=juli,bootindex=1 -device virtio-balloon-pci,id=ballooning -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -net none -k en-us -boot menu=on,reboot-timeout=-1,strict=on -qmp tcp:0:4477,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :3 -spice port=5939,disable-ticketing -vga qxl -global qxl-vga.revision=3 -monitor stdio -monitor tcp:0:7777,server,nowait -monitor unix:/tmp/monitor1,server,nowait -netdev tap,id=tap1,vhost=on,queues=4,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,ifname=tap-juli -device virtio-net-pci,netdev=tap1,id=nic1,mq=on,vectors=17,mac=1a:59:0a:4b:aa:94 2.Create live snapshot after guest log in (qemu) snapshot_blkdev drive-scsi0-0-0 /home/S1.img (qemu) snapshot_blkdev drive-scsi0-0-0 /home/S2.img 3.shutdown guest. 4.commit S1 to base image. # qemu-img commit -f qcow2 /home/S1.img Actual results: # qemu-img commit -f qcow2 /home/S1.img qemu-img: Image is read-only Verify this bug using the following version: qemu-kvm-rhev-1.5.3-45.el7.x86_64 kernel-3.10.0-84.el7.x86_64 Steps to Verification: 1.boot guest with following cli. # /usr/libexec/qemu-kvm -M pc -cpu SandyBridge -enable-kvm -m 4G -smp 4,sockets=2,cores=2,threads=1 -name juli -uuid 355a2475-4e03-4cdd-bf7b-5d6a59edaa68 -rtc base=localtime,clock=host,driftfix=slew -device virtio-scsi-pci,bus=pci.0,addr=0x5,id=scsi0 -drive file=iscsi://10.66.90.100:3260/iqn.2001-05.com.equallogic:0-8a0906-6aa1f7d03-60ff49b423b52f87-s2-huding-277437-1/0,if=none,id=drive-scsi0-0-0,media=disk,format=raw,werror=stop,rerror=stop,aio=native -device scsi-hd,drive=drive-scsi0-0-0,bus=scsi0.0,scsi-id=0,lun=0,id=juli,bootindex=1 -device virtio-balloon-pci,id=ballooning -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -net none -k en-us -boot menu=on,reboot-timeout=-1,strict=on -qmp tcp:0:4477,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :3 -spice port=5939,disable-ticketing -vga qxl -global qxl-vga.revision=3 -monitor stdio -monitor tcp:0:7777,server,nowait -monitor unix:/tmp/monitor1,server,nowait -netdev tap,id=tap1,vhost=on,queues=4,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,ifname=tap-juli -device virtio-net-pci,netdev=tap1,id=nic1,mq=on,vectors=17,mac=1a:59:0a:4b:aa:94 2.Create live snapshot after guest log in (qemu) snapshot_blkdev drive-scsi0-0-0 /home/S1.img (qemu) snapshot_blkdev drive-scsi0-0-0 /home/S2.img 3.shutdown guest. 4.commit S1 to base image. # qemu-img commit -f qcow2 /home/S1.img Actual results: # qemu-img commit -f qcow2 /home/S1.img Image committed. Based on the above result, I think this bug has been fixed. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |