Bug 1455161
| Summary: | Not limited parser for bootloader variable initrd_remove_dir | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Tereza Cerna <tcerna> |
| Component: | tuned | Assignee: | Jaroslav Škarvada <jskarvad> |
| Status: | CLOSED ERRATA | QA Contact: | Tereza Cerna <tcerna> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | jeder, jskarvad, olysonek, psklenar |
| Target Milestone: | rc | Keywords: | Patch, Upstream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | tuned-2.9.0-0.1.rc1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-04-10 16:01:26 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: | |||
| Bug Blocks: | 1465887, 1467576, 1485946 | ||
|
Description
Tereza Cerna
2017-05-24 11:59:25 UTC
Resolved by commit https://github.com/redhat-performance/tuned/commit/4e90f1494161fb0fa3b021e85f0c8bfbc6e9a107. tuned-2.9.0-0.1.rc1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9c6b990df tuned-2.9.0-0.1.rc1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d9c6b990df tuned-2.9.0-0.1.rc1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-5f0849d207 tuned-2.9.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0e45ce4685 tuned-2.9.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c30e9bd1ea ============================
Verified in:
tuned-2.9.0-1.el7.noarch
PASS
============================
:: [ LOG ] :: ================================================================
:: [ LOG ] :: ==== Config: [bootloader] initrd_remove_dir=False ====
:: [ LOG ] :: See content of profile dst-img-profile2
[bootloader]
initrd_add_dir=/root/tuned-overlay.img
initrd_dst_img=/boot/test-tuned-2.img
initrd_remove_dir=False
:: [ PASS ] :: Command 'tuned-adm profile dst-img-profile2' (Expected 0, got 0)
:: [ PASS ] :: Command 'tuned-adm active | grep dst-img-profile2' (Expected 0, got 0)
:: [ LOG ] :: Check log file
:: [ PASS ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: generating initrd image from directory '/root/tuned-overlay.img'" /var/log/tuned/tuned.log' (Expected 0, got 0)
:: [ PASS ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: installing initrd image as '/boot/test-tuned-2.img'" /var/log/tuned/tuned.log' (Expected 0, got 0)
:: [ PASS ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: removing directory '/root/tuned-overlay.img'" /var/log/tuned/tuned.log' (Expected 1, got 1)
:: [ PASS ] :: Command 'grep "ERROR" /var/log/tuned/tuned.log' (Expected 1, got 1)
:: [ LOG ] :: Check grub.cfg
:: [ PASS ] :: Command 'grep 'set tuned_initrd="/test-tuned-2.img"' /boot/grub2/grub.cfg' (Expected 0, got 0)
:: [ LOG ] :: Check existence of new image in /boot
:: [ PASS ] :: Command 'ls /boot | grep test-tuned-2.img' (Expected 0, got 0)
:: [ PASS ] :: Command 'ls /root | grep tuned-overlay.img' (Expected 0, got 0)
============================
Reproduced in:
tuned-2.8.0-5.el7.noarch
FAIL
============================
:: [ LOG ] :: ================================================================
:: [ LOG ] :: ==== Config: [bootloader] initrd_remove_dir=$INVALID_VALUE ====
:: [ LOG ] :: See content of profile dst-img-profile2
:: [ PASS ] :: Command 'tuned-adm profile dst-img-profile2' (Expected 0, got 0)
:: [ PASS ] :: Command 'tuned-adm active | grep dst-img-profile2' (Expected 0, got 0)
:: [ LOG ] :: Check log file
:: [ PASS ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: generating initrd image from directory '/root/tuned-overlay.img'" /var/log/tuned/tuned.log' (Expected 0, got 0)
:: [ PASS ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: installing initrd image as '/boot/test-tuned-2.img'" /var/log/tuned/tuned.log' (Expected 0, got 0)
:: [ FAIL ] :: Command 'grep "INFO tuned.plugins.plugin_bootloader: removing directory '/root/tuned-overlay.img'" /var/log/tuned/tuned.log' (Expected 1, got 0)
:: [ PASS ] :: Command 'grep "ERROR" /var/log/tuned/tuned.log' (Expected 1, got 1)
:: [ LOG ] :: Check grub.cfg
:: [ PASS ] :: Command 'grep 'set tuned_initrd="/test-tuned-2.img"' /boot/grub2/grub.cfg' (Expected 0, got 0)
:: [ LOG ] :: Check existence of new image in /boot
:: [ PASS ] :: Command 'ls /boot | grep test-tuned-2.img' (Expected 0, got 0)
:: [ FAIL ] :: Command 'ls /root | grep tuned-overlay.img' (Expected 0, got 1)
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-2018:0879 |