Created attachment 1588336 [details] imgbased.log Description of problem: RHV-H host 4.3.0.5-0.20190409.0 with EFI boot A hotfix kernel RPM was installed with "yum install kernel.rpm". The host rebooted fine and in the new kernel. Then, it was upgraded to rhvh-4.3.0.8-0.20190610.0, but the boot fails. There is only two options in grub, none of them the hotfix kernel. rhvh-4.3.0.8-0.20190610.0 rhvh-4.3.0.5-0.20190409.0 Version-Release number of selected component (if applicable): imgbased-1.1.7-0.1.el7ev.noarch redhat-release-virtualization-host-4.3-0.5.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Install rhvh-4.3.0.5-0.20190409.0 on EFI host 2. Install hotfix kernel with "yum install kernel.rpm" and reboot 3. Upgrade to latest RHVH and reboot Actual results: 1. Install host # uname -a Linux rhvh4 3.10.0-957.10.1.el7.x86_64 #1 SMP Thu Feb 7 07:12:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux # grep linuxefi /boot/efi/EFI/redhat/grub.cfg linuxefi /rhvh-4.3.0.5-0.20190409.0+1/vmlinuz-3.10.0-957.10.1.el7.x86_64 root=/dev/rhvh/rhvh-4.3.0.5-0.20190409.0+1 ro rd.lvm.lv=rhvh/rhvh-4.3.0.5-0.20190409.0+1 rd.lvm.lv=rhvh/swap rhgb quiet LANG=en_US.UTF-8 img.bootid=rhvh-4.3.0.5-0.20190409.0+1 2. Install hotfix kernel # yum install kernel-3.10.0-957.29.1.el7.x86_64.rpm # reboot # uname -a Linux rhvh4 3.10.0-957.29.1.el7.x86_64 #1 SMP Sat Jun 29 04:11:34 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux # grep linuxefi /boot/efi/EFI/redhat/grub.cfg linuxefi /rhvh-4.3.0.5-0.20190409.0+1/vmlinuz-3.10.0-957.10.1.el7.x86_64 root=/dev/rhvh/rhvh-4.3.0.5-0.20190409.0+1 ro rd.lvm.lv=rhvh/rhvh-4.3.0.5-0.20190409.0+1 rd.lvm.lv=rhvh/swap rhgb quiet LANG=en_US.UTF-8 img.bootid=rhvh-4.3.0.5-0.20190409.0+1 # ls /var/imgbased/persisted-rpms/ kernel-3.10.0-957.29.1.el7.x86_64.rpm 3. Upgrade host (to redhat-virtualization-host-image-update-4.3.4-20190620.3.el7_6) # yum update # reboot Fails to boot, and in the emergency shell: # nodectl check Status: FAILED Bootloader ... FAILED - It looks like there are no valid bootloader entries. Please ensure this is fixed before rebooting. Layer boot entries ... FAILED - No bootloader entries which point to imgbased layers Valid boot entries ... OK [...] # uname -a Linux rhvh4 3.10.0-957.21.3.el7.x86_64 #1 SMP Fri Jun 14 02:54:29 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux # ls /var/imgbased/persisted-rpms/ kernel-3.10.0-957.29.1.el7.x86_64.rpm 4. Reboot into old image # uname -a Linux rhvh4 3.10.0-957.10.1.el7.x86_64 #1 SMP Thu Feb 7 07:12:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux # grep linuxefi /boot/efi/EFI/redhat/grub.cfg linuxefi /rhvh-4.3.4.1-0.20190620.0+1/vmlinuz-3.10.0-957.21.3.el7.x86_64 root=/dev/rhvh/rhvh-4.3.4.1-0.20190620.0+1 ro rd.lvm.lv=rhvh/rhvh-4.3.4.1-0.20190620.0+1 rd.lvm.lv=rhvh/swap rhgb quiet LANG=en_US.UTF-8 img.bootid=rhvh-4.3.4.1-0.20190620.0+1 linuxefi /rhvh-4.3.0.5-0.20190409.0+1/vmlinuz-3.10.0-957.10.1.el7.x86_64 root=/dev/rhvh/rhvh-4.3.0.5-0.20190409.0+1 ro rd.lvm.lv=rhvh/rhvh-4.3.0.5-0.20190409.0+1 rd.lvm.lv=rhvh/swap rhgb quiet LANG=en_US.UTF-8 img.bootid=rhvh-4.3.0.5-0.20190409.0+1 Expected results: After installing the hotfix kernel and reboot, grub.cfg strangely reverts to only the old kernel. That's unexpected, a second reboot leads to booting the old kernel. After upgrading the rhvh image, the system fails to boot, stopping at the emergency shell. If Booting back into the old image, the hotfix kernel is lost. Additional info:
Can reproduce: Steps to Reproduce: 1. Install rhvh-4.3.0.5-0.20190409.0 on EFI host 2. Install hotfix kernel with "yum install kernel-3.10.0-957.29.1.el7.x86_64.rpm" and reboot 3. Upgrade to redhat-virtualization-host-image-update-4.3.4-20190620.3.el7_6 and reboot Actual results: Fails to boot, and in the emergency shell: # nodectl check Status: FAILED Bootloader ... FAILED - It looks like there are no valid bootloader entries. Please ensure this is fixed before rebooting. Layer boot entries ... FAILED - No bootloader entries which point to imgbased layers
Steps to Reproduce: 1. Install rhvh-4.3.0.5-0.20190409.0 on EFI host 2. Install hotfix kernel with "yum install kernel-3.10.0-957.29.1.el7.x86_64.rpm" and reboot 3. Upgrade to redhat-virtualization-host-image-update-4.3.5-20190710.2 and reboot Actual results: 1. upgrade successful 2. all 3 boot entries(the hot-fix kernel included) display correctly
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/RHSA-2019:2437
sync2jira