RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 847602 - snapshot a block device record a incorrect backing file in snapshot if the device use relative path to file
Summary: snapshot a block device record a incorrect backing file in snapshot if the de...
Keywords:
Status: CLOSED DUPLICATE of bug 809140
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-13 05:55 UTC by Xu Tian
Modified: 2012-08-21 18:15 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-21 18:15:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xu Tian 2012-08-13 05:55:42 UTC
Description of problem:
Incorrect backing file "actual path"recording in snapshot file if the device use a  relative path to file;

Version-Release number of selected component (if applicable):
qemu-img-rhev-0.12.1.2-2.302.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.302.el6.x86_64

How reproducible:


Steps to Reproduce:
1. start a guest with below cmdline:
qemu-kvm -cpu Penryn -smp 2,sockets=2,cores=1,threads=1 -m 4G -enable-kvm -uuid `uuidgen` -boot order=dcn,once=d -vnc :5 -k en-us -rtc base=localtime,driftfix=slew -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=input0 -drive file=./rhel6.3.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,serial=yzWaibVh,cache=none,werror=stop,rerror=stop,aio=native -device ide-drive,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=9a:1b:69:1a:e5:5c,bus=pci.0,addr=0x5,bootindex=3 -monitor stdio -device virtio-balloon-pci,id=balloon1,bus=pci.0,addr=0x7 -qmp tcp:localhost:4444,server,nowait

(-drive file=./rhel6.3.qcow2, use relative path to file)

2. executed "snapshot_blkdev drive-virtio-disk0 /tmp/sn1"

3. powerdown guest

4. qemu-img info /tmp/sn1

  
Actual results:

[root@localhost tmp]# qemu-img info /tmp/sn1
image: /tmp/sn1
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 136K
cluster_size: 65536
backing file: ./rhel6.3.qcow2 (actual path: /tmp/./rhel6.3.qcow2)

[root@localhost tmp]# locate rhel6.3.qcow2
/root/rhel6.3.qcow2

Expected results:

[root@localhost tmp]# qemu-img info /tmp/sn1
image: /tmp/sn1
file format: qcow2
virtual size: 60G (64424509440 bytes)
disk size: 136K
cluster_size: 65536
backing file: ./rhel6.3.qcow2 (actual path: /root/rhel6.3.qcow2)

Additional info:

Comment 2 Suqin Huang 2012-08-15 05:17:46 UTC
seems we need to use absolute path instead of relative path when boot guest.

Comment 3 Ademar Reis 2012-08-16 22:12:38 UTC
Related to, or even a duplicate of Bug 809140?

Comment 4 Jeff Cody 2012-08-21 18:15:52 UTC
It does indeed look like a duplicate of bug #809140

*** This bug has been marked as a duplicate of bug 809140 ***


Note You need to log in before you can comment on or make changes to this bug.