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 1084302 - Should improve error info when can't find backing file for snapshot
Summary: Should improve error info when can't find backing file for snapshot
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1028276
Blocks: 1161582
TreeView+ depends on / blocked
 
Reported: 2014-04-04 06:13 UTC by Xu Han
Modified: 2016-04-28 19:02 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1028276
: 1161582 (view as bug list)
Environment:
Last Closed: 2016-04-28 19:02:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Xu Han 2014-04-04 07:03:48 UTC
The reason of this issue is that QEMU seeking the backing file by following the path of the current snapshot. If they sit in different directory, while creating a new snapshot, QEMU would show like:
{"error": {"class": "GenericError", "desc": "Could not open '/home/xuhan/sn/space0-snap2.qcow2': Could not open file: No such file or directory: No such file or directory"}}

CLI:
/usr/libexec/qemu-kvm ... \
    -drive file=disk0,if=none,id=drive-ide0-0-0,cache=none,aio=threads,rerror=stop,werror=stop ...

# ls /home/xuhan/ | grep disk0
disk0

# pidof qemu-kvm
12121

# ll /proc/12121/cwd
lrwxrwxrwx. 1 root root 0 Apr  4 13:51 /proc/12121/cwd -> /home/xuhan

---------------------------
Creating snapshotA succeed:

{ "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive-ide0-0-0", "snapshot-file": "/home/xuhan/sn/space0-snap2.qcow2", "format": "qcow2", "mode": "absolute-paths" } }
{"return": {}}

(qemu) info block
...
drive-ide0-0-0: removable=0 io-status=ok file=/home/xuhan/sn/space0-snap2.qcow2 backing_file=disk0 backing_file_depth=1 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
...

--------------------------
Creating snapshotB failed:

{ "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive-ide0-0-0", "snapshot-file": "/home/xuhan/sn/space0-snap3.qcow2", "format": "qcow2", "mode": "absolute-paths" } }
{"error": {"class": "GenericError", "desc": "Could not open '/home/xuhan/sn/space0-snap2.qcow2': Could not open file: No such file or directory: No such file or directory"}}


---------------------------------------------------------------------------
If copy the backing file to the path of the current snapshot, then creating snapshotB would succeed:

# cp /home/xuhan/disk0 /home/xuhan/sn/disk0

{ "execute": "blockdev-snapshot-sync", "arguments": { "device": "drive-ide0-0-0", "snapshot-file": "/home/xuhan/sn/space0-snap3.qcow2", "format": "qcow2", "mode": "absolute-paths" } }
{"return": {}}

(qemu) info block
...
drive-ide0-0-0: removable=0 io-status=ok file=/home/xuhan/sn/space0-snap3.qcow2 backing_file=/home/xuhan/sn/space0-snap2.qcow2 backing_file_depth=2 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
...

Comment 3 Xu Han 2014-04-04 07:43:19 UTC
Version-Release number of selected component (if applicable):
qemu-kvm-rhev-1.5.3-60.el7ev.x86_64

Also hit this issue with:
qemu-kvm-rhev-1.5.3-43.el7.x86_64
So, this might not be a regression.


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