Bug 980338
Summary: | disk-format "qemu-img info: JSON parse error" when target file does not exist | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | bfan |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | leiwang, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.22.4-2.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 980337 | Environment: | |
Last Closed: | 2014-06-13 12:15:21 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: | 981663 | ||
Bug Blocks: |
Description
bfan
2013-07-02 06:19:32 UTC
Let's reuse this bug to fix the somewhat related problem: $ guestfish disk-format /etc/nosuchfile libguestfs: error: qemu-img info: JSON parse error: parse error: premature EOF (right here) ------^ libguestfs: error: qemu-img info: /etc/nosuchfile: qemu-img info exited with error status 1. To see full error messages you may need to enable debugging. See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs Fixed upstream in: https://github.com/libguestfs/libguestfs/commit/aecb5f4b33107935191099dbd5559113f59ee51c https://github.com/libguestfs/libguestfs/commit/d50cb7bbb4cc18f69ea1425e9f5cee9685825f95 https://github.com/libguestfs/libguestfs/commit/28e08776824dd3152638e647259c2f4701a0a577 and the last one is a regression test: https://github.com/libguestfs/libguestfs/commit/2311fb0632a64cfa2bab8bf65c82ffaa042d619e Verified with libguestfs-1.22.6-16.el7.x86_64 # guestfish disk-format /etc/nosuchfile libguestfs: error: disk info: /etc/nosuchfile: No such file or directory It gives a correct error message, change the status to verified 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. |