Bug 1146339
Summary: | Improve the error showing when no enough space left on host while conversion | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | zhoujunqin <juzhou> | ||||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.1 | CC: | codong, dyuan, mbooth, mzhan, ptoscano, tzheng | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | V2V | ||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-04-20 15:12:32 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: | |||||||||
Attachments: |
|
Description
zhoujunqin
2014-09-25 03:48:16 UTC
Created attachment 940968 [details]
log file for step3
Created attachment 940969 [details]
log file for step4
Since this is a cosmetic change, moving to 7.2. I'm going to close because I think the error messages are reasonable. They both clearly state the problem ("No space left on device"). fallocate is the system call which fails, and the top Google hit for me is clear: fallocate(2) - Linux manual page - man7.org man7.org/linux/man-pages/man2/fallocate.2.html For the portable, POSIX.1-specified method of ensuring that space is allocated for a file, In addition, predicting the space required for conversion is non-trivial. If we just used the size of the input disk, then we'd massively overestimate in the common case (-oa preallocated is not common, nor especially recommended). We already have code to estimate the space used by the target (v2v.ml:estimate_target_size) but it's only used by the RHEV target, and it is notoriously inaccurate. See also: https://github.com/libguestfs/libguestfs/blob/a1646fa65c6cd544e287f25051a88c4a572ebb3e/v2v/v2v.ml#L641-L767 |