Bug 2101514
| Summary: | [dib]Built image configured with wrong kernel in the boot loader | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jason Paroly <jparoly> |
| Component: | diskimage-builder | Assignee: | Steve Baker <sbaker> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 17.0 (Wallaby) | CC: | apevec, jslagle, pweeks, sbaker |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 17.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | diskimage-builder-3.22.1-0.20220629090759.f118649.el9ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-21 12:23:00 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: | |||
|
Description
Jason Paroly
2022-06-27 16:38:05 UTC
Recommend updating to latest base image first: http://download.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.0/compose/BaseOS/x86_64/images/ OK, I'll try and replicate locally using base image rhel-guest-image-9.0-20220420.0.x86_64.qcow2 Oh I see what is happening, the path to the kernel is: /vmlinuz-5.14.0-70.13.1.el9_0.x86_64 but it should be: /boot/vmlinuz-5.14.0-70.13.1.el9_0.x86_64 The path will be different depending on whether there is a separate /boot partition or not. There is already a script[1] which fixes this for the BLS entries in the base image[1], but I think something different is happening here. My theory is that grub2-mkconfig is detecting the *build host* partition layout has a /boot partition, then generates incorrect file paths inside the chroot. That is why this might be intermittent, some hosts have a /boot partition, others not. I've actually already proposed another change for a different reason[2] which should also fix this. [1] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/rhel/post-install.d/03-reset-bls-entries#L31-L34 [2] https://review.opendev.org/c/openstack/diskimage-builder/+/846838 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543 |