| Summary: | tmp file not clear after registered to rhevm | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Mohua Li <moli> | |
| Component: | sed | Assignee: | Vojtech Vitek <vvitek> | |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs | |
| Severity: | low | Docs Contact: | ||
| Priority: | low | |||
| Version: | 6.1 | CC: | abaron, bazulay, danken, gouyang, hripps, iheim, leiwang, mburns, moli, ovasik, ovirt-maint, pbonzini, pmuller, qwan, syeghiay, ycui | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 836611 (view as bug list) | Environment: | ||
| Last Closed: | 2012-06-20 14:47:47 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 836611 | |||
|
Description
Mohua Li
2011-06-02 05:41:30 UTC
Moving to vdsm component vdsm in that build was vdsm-4.9-63.el6 Mike, I can guess that it's a by product of our usage of sed -i --copy but do you have a clue why they are not removed? I tried to reproduce this bug but couldn't with latest vdsm. No sed* files in /etc/vdsm-reg/. Do they persist after reboot ? Can you please post the exact reproduction scenario This is a sed bug. sed is leaving the temporary files it used for its operations. sed should either delete those files or provide some API for the caller to do so. When using `--copy' option, the sed makes copy of the original file to a backup file. The file name is random string, if not specified by -i<SUFFIX>. The backup file should be probably deleted after the successful operation. I'll discuss the behaviour with upstream. -- Possible workaround: $ sed -i.backup --copy ".." FILE && rm FILE.backup Yes, this is a bug, and the workaround is not working either. --copy is not upstream, so the fix is RHEL (and Fedora) only. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0955.html |