Bug 876024
Summary: | fail to prompt 'No such file or directory' when create live snapshot to a non-existing block device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Sibiao Luo <sluo> |
Component: | qemu-kvm | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.4 | CC: | acathrow, areis, bcao, bsarathy, chayang, dyasny, juzhang, kwolf, michen, mkenneth, qzhang, shuang, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-11-27 16:13:02 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: |
Description
Sibiao Luo
2012-11-13 05:13:22 UTC
(In reply to comment #0) > Description of problem: > boot a guest with a data disk (lv block device), and create live snapshot to > a unexisting block device, but fail to prompt 'No such file or directory'. > btw, if specify the local file, it can give the prompt correctly. > > Expected results: > it should prompt 'No such file or directory', like: > QMP monitor: > { "execute": "blockdev-snapshot-sync", "arguments": { "device": > "data-scsi-disk", "snapshot-file": "/dev/vg_sluo_live_snapshot/test", > "format": "qcow2" } } > {"error": {"class": "OpenFileFailed", "desc": "Could not open > '/dev/vg_sluo_live_snapshot/test': No such file or directory", "data": > {"filename": "/dev/vg_sluo_live_snapshot/test", > "__com.redhat_error_message": "No such file or directory"}}} The most important thing to check is the more complete 'desc' key. It's very important that add the errno string (as returned by strerror()) and the errno value to OPenFileFailed's error message. please correct me if any error & thx. Best Regards. sluo I think this is a dupe of bug #877240 *** This bug has been marked as a duplicate of bug 877240 *** |