Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh: freeze grub2 to fix PXE + UEFI tests #3250

Merged
merged 3 commits into from Nov 30, 2022

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 30, 2022

The pxe-install build started failing after grub2-2.06-67.fc37 entered
cosa:

Loading kernel
error: ../../grub-core/fs/fshelp.c:257:file
`/rhcos-413.86.202211301346-0-live-kernel-x86_64' not found.

Possibly the same root cause as
coreos/fedora-coreos-tracker#1352.

Freeze on the previous version for now until we figure this out.

The metal4k PXE test conveniently also gives us coverage of PXE + UEFI.
which would have perhaps caught a recent regression sooner. This matches
the tests we run in pipelines.
Was debugging an issue with PXE and only getting a cryptic:

```
Testing scenarios: [pxe-install]
Ignoring verification of signature on metal image
FAIL: pxe-install (uefi + metal) (0s)
    running PXE: testing live installer: exit status 1
Error: running PXE: testing live installer: exit status 1
```

The error refers to a command we run, but went ahead and prefixed a
bunch of other errors too while there.
The `pxe-install` build started failing after grub2-2.06-67.fc37 entered
cosa:

    Loading kernel
    error: ../../grub-core/fs/fshelp.c:257:file
    `/rhcos-413.86.202211301346-0-live-kernel-x86_64' not found.

Possibly the same root cause as
coreos/fedora-coreos-tracker#1352.

Freeze on the previous version for now until we figure this out.
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I thought we had converted recently to using the target installed system's grub, but I guess there are cases where we still rely on grub installed in COSA? Is there any way to convert those cases too?

@@ -34,7 +34,7 @@ pod(image: imageName + ":latest", kvm: true, cpu: "${cpuCount}", memory: "${memo
utils.cosaCmd(cosaDir: "/srv", args: "buildextend-live --fast")
}

kolaTestIso(cosaDir: "/srv", extraArgs4k: "--no-pxe")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and now if/when we get to locking down the rpm content in COSA itself CI will block the package bump if something like this happens.

@dustymabe
Copy link
Member

Unfortunately we're probably going to need this backported too because I think the same change made it into F36: https://src.fedoraproject.org/rpms/grub2/commits/f36

@jlebon
Copy link
Member Author

jlebon commented Nov 30, 2022

I thought we had converted recently to using the target installed system's grub, but I guess there are cases where we still rely on grub installed in COSA? Is there any way to convert those cases too?

Yeah, this is served by our PXE server. I had the same question too, but I think the case here is different. This isn't the target system not using the correct GRUB2, but just whatever the PXE server is serving. So we could match here for our own CI purposes, but we shouldn't expect users/customers to use our EFI binaries also when setting up their PXE servers. So in a way, it may be better to not match since that's likely going to be more common.

@jlebon jlebon enabled auto-merge (rebase) November 30, 2022 20:06
@jlebon
Copy link
Member Author

jlebon commented Nov 30, 2022

Will prep a 4.12 backport once this merges. I think we just haven't hit this yet there because there hasn't been a cosa rebuild since it was introduced maybe?

@jlebon
Copy link
Member Author

jlebon commented Nov 30, 2022

Will prep a 4.12 backport once this merges. I think we just haven't hit this yet there because there hasn't been a cosa rebuild since it was introduced maybe?

Actually, 4.12 is already freezing on an older grub2 because of coreos/fedora-coreos-tracker#1360 so there's nothing to do there, heh. (I guess except adding a comment so we don't lift the freeze even if we address that other issues, but it's pretty unlikely we'll backport the grub2 BIOS fix there. And I wouldn't want to add that comment without testing that PXE + UEFI for sure would fail but I don't have the cycles for that right now.)

@jlebon jlebon merged commit 89f3070 into coreos:main Nov 30, 2022
@jlebon jlebon deleted the pr/revert-pxe-metal branch April 22, 2023 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants