Problem:
There are a few managed hosts in Foreman, where Foreman tells me that a reboot is required.
Foreman obviously relies on “Traces” (which are installed on both Foreman and managed hosts).
When I use “Traces” in Foreman to resolve and reboot, the system reboots, but after the reboot, the status is still the same - Reboot Required.
This used to work in Foreman 3.5, and the problem got introduced after migrating to Foreman 3.7.
I also tried to delete the host from Foreman, and re-register it. Same result.
Expected outcome:
After reboot of the managed host, Foreman (or Traces) should recognize that the host was rebooted.
Hi,
I have indeed noticed that the OS does not seem to boot into the latest kernel.
The systems that have the problem are all CentOS 7 (but not all CentOS 7 systems have the problem).
I also tried to yum reinstall kernel, which did not help.
Also, running grub2-mkconfig -o /boot/grub2/grub.cfg did not change the behavior of booting kernels.
Looking at CentOS systems where Tracer does not complain, they seem to be booting the latest kernel.
The latest version of the kernel appears to be kernel-3.10.0-1160.95.1.el7.x86_64.
Notice the order, in which the kernels appear.
This system was booting the kernel kernel-3.10.0-1160.83.1.el7.x86_64 - the last in this list, rather than the latest kernel version.
It seems that reinstalling the latest version of the kernel will move it to the end of the list: