Bug 875329
Summary: | [rsync] "No space left on device" not reported to user | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Tyler <stephent98> | ||||||
Component: | anaconda | Assignee: | Brian Lane <bcl> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 18 | CC: | g.kaviyarasu, jonathan, sbueno, stephent98, vanmeeuwen+fedora | ||||||
Target Milestone: | --- | ||||||||
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-12 16:22:06 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
Steve Tyler
2012-11-10 14:52:12 UTC
Created attachment 642181 [details]
anaconda-tb-Og2Hmj log showing rsync error message "No space left on device"
The attached log shows the rsync does indeed report "No space left on device":
[snippet from attached anaconda-tb-Og2Hmj]
Nov 10 08:42:40 localhost program: rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
Nov 10 08:42:40 localhost program: rsync: write failed on "/mnt/sysimage/usr/share/locale/uk/LC_MESSAGES/gtk20.mo": No space left on device (28)
Nov 10 08:42:40 localhost program: rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.9]
Nov 10 08:42:40 localhost program: rsync: connection unexpectedly closed (1657900 bytes received so far) [sender]
Nov 10 08:42:40 localhost program: rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
Nov 10 08:42:40 localhost anaconda: rsync exited with code 12
Simply displaying the error messages from rsync in a window might be sufficient. The problem is that iutil.py has two functions, neither of which quite does what is needed: Capture stderr in a buffer _and_ write stderr to a file. ISTM, the functions could be generalized with one function that does it all: 1. Capture stdout and/or stderr in a buffer. 2. Write stdout and/or stderr to a file. $ less -N anaconda-18.28-1/pyanaconda/iutil.py ... 85 ## Run an external program and redirect the output to a file. 86 # @param command The command to run. 87 # @param argv A list of arguments. 88 # @param stdin The file descriptor to read stdin from. 89 # @param stdout The file descriptor to redirect stdout to. 90 # @param stderr The file descriptor to redirect stderr to. 91 # @param root The directory to chroot to before running command. 92 # @return The return code of command. 93 def execWithRedirect(command, argv, stdin = None, stdout = None, 94 stderr = None, root = '/', env_prune=[]): ... 197 ## Run an external program and capture standard out. 198 # @param command The command to run. 199 # @param argv A list of arguments. 200 # @param stdin The file descriptor to read stdin from. 201 # @param stderr The file descriptor to redirect stderr to. 202 # @param root The directory to chroot to before running command. 203 # @param fatal Boolean to determine if non-zero exit is fatal. 204 # @return The output of command from stdout. 205 def execWithCapture(command, argv, stdin = None, stderr = None, root='/', 206 fatal = False): ... This bug is for the related problem on the DVD: Bug 875422 - Anaconda fails with Could not run transaction if not enough disk space *** This bug has been marked as a duplicate of bug 868755 *** |