Bug 1321675
| Summary: | CFME log_rotate_freespace_check.sh could awk on wrong field if filesystem name is long and wraps during df | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Douglas Jones <dojones> |
| Component: | Appliance | Assignee: | Nick Carboni <ncarboni> |
| Status: | CLOSED ERRATA | QA Contact: | luke couzens <lcouzens> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.6.0 | CC: | abellott, cpelland, dojones, jhardy, nachandr, ncarboni, obarenbo, simaishi |
| Target Milestone: | GA | ||
| Target Release: | 5.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.6.0.6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-29 15:45:25 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: | 1294991 | ||
| Bug Blocks: | |||
|
Description
Douglas Jones
2016-03-28 20:54:07 UTC
This wrapping behavior no longer happens as of GNU coreutils version 8.10 (we run 8.22 in 5.6) so this is not an issue on current appliances. I am for reclassifying this as refactoring to clean up how that command is run to make what we are doing more explicit though. Maybe: df -lk --output=avail <filename> | tail -n 1 This way it is more explicit with df and can drop the awk because there will be no extraneous whitespace. This issue occurs in 5.5 as well. Can this BZ be cloned to 5.5? Also, https://bugzilla.redhat.com/show_bug.cgi?id=1294991 needs to be cloned to 5.5 as well. New commit detected on ManageIQ/manageiq-appliance/master: https://github.com/ManageIQ/manageiq-appliance/commit/4eab5bc5e64d1bb24f6ee669dabef4795a4df398 commit 4eab5bc5e64d1bb24f6ee669dabef4795a4df398 Author: Nick Carboni <ncarboni> AuthorDate: Thu Apr 21 15:09:06 2016 -0400 Commit: Nick Carboni <ncarboni> CommitDate: Thu Apr 21 15:09:06 2016 -0400 Use reliable output formatting in df This avoids dealing with column counts and is more explicit about the value we are looking for. https://bugzilla.redhat.com/show_bug.cgi?id=1321675 logrotate_free_space_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) This should not be an issue in 5.5. The fix made here is strictly an enhancement to make the intention of the script more clear and less error prone in the future. As I said in comment 2 (https://bugzilla.redhat.com/show_bug.cgi?id=1321675#c2) this wrapping behavior is no longer seen in the version of coreutils shipped with RHEL 7, but would have been an issue in 5.3 (where this bug was reported). I'm not sure a clone is necessary for this issue, but it is no trouble if you really think we need it. Nick, On one of me 5.5 appliances, evm.log failed to rotate and I was told that this bug and bug 1294991 would have to be backported to 5.5.z. If this issue doesn't impact coreutils shipped with RHEL 7 and hence CFME 5.5, cloning this bug to 5.5.z is not necessary. Verified in 5.6.0.6 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. https://access.redhat.com/errata/RHBA-2016:1348 |