| Summary: | Incomplete Kernel installation in CentOS6 / CentOS7 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | jochen | ||||
| Component: | Clients | Assignee: | Jan Dobes <jdobes> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 2.5 | CC: | eherget, jdobes, martin.matuska, mmkl2005, tschweikle, xdmoon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | rhnsd-5.0.27-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1469682 1475039 (view as bug list) | Environment: | |||||
| Last Closed: | 2017-09-27 19:24:50 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: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1469682, 1484117 | ||||||
| Attachments: |
|
||||||
|
Description
jochen
2016-10-11 12:07:04 UTC
Seen with kernels from OracleLinux (UEK, UEKR3, UEKR4), ELRepo (www.kernel.org-Kernels unpatched, both (kernel types: kernel-ml, kernel lt). Scripts to update grub configuration are not called. The kernel are installed, but you cant boot them without editing grub.cfg/menu.cfg by hand. Incomplete kernel configuration has consequences: new kernels wont boot. If kernels are kernel bug fixes, these will never make it into the booting system, because systems wont boot the new kernel! This makes this bug into a really bad bug because it leaves systems vulnerable to kernel bugs! Kernels are installed, but never booted! Keeping the vulnerable ones online even after reboots (grub doesn't have the configuration lines to boot the newly installed kernel). It is not only CentOS 6/7: - RHEL 6/7 - OracleLinux 6/7, both std-Kernels, uek-Kernels - Fedora - OpenSuse It seems all RPM-based distributions are affected. This seems a side effect of disabling or not allowing scripts to run. If this is not allowed, scripts within rpms wont execute? I can confirm this issue on our site. I have created a pull request with a possible solution: https://github.com/spacewalkproject/spacewalk/pull/554 Created attachment 1294537 [details]
Pull request 554 patch
fixed in spacewalk.git(master): 92b28b8f3bedd4f90334c8ffcf6558c905450b5d What happens here before patch: fd 0 (/dev/null) is opened fd 1 (syslog) is opened ... fd 2 (pipe[0]) is opened fd 3 (pipe[1]) is opened fork, then in child: fd 2 (pipe[0]) is closed fd 3 (pipe[1]) duplicated to fd 1 (where we want STDOUT), syslog socket is replaced fd 3 (pipe[1]) is closed fd 1 (STDOUT) duplicated to fd 2 (STDERR) ... then next call of syslog will replace fd 1 back to syslog socket and STDOUT is lost What happens here after patch: fd 0 (/dev/null) is opened fd 1 (syslog) is opened ... fd 2 (pipe[0]) is opened fd 3 (pipe[1]) is opened fork, then in child: fd 2 (pipe[0]) is closed fd 1 (syslog) is closed fd 3 (pipe[1]) duplicated to fd 1 (where we want STDOUT) fd 3 (pipe[1]) is closed fd 1 (STDOUT) duplicated to fd 2 (STDERR) fd 3 (syslog) is opened ... both STDOUT and syslog should be fine Does this update will be added to spacewalk-client.repo? spacewalk-client-nightly.repo not sign package at all, and this i believe by design. This fix will be part of Spacewalk 2.7 client repo release which should be in few weeks. Spacewalk 2.7 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27 |