-
Notifications
You must be signed in to change notification settings - Fork 247
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
Swap fails to mount due to a race condition #1729
Comments
The interesting bit is here:
Notice how the kernel partition reread didn't pick up sda5. Hmm, this might actually be fixed by #1717. |
Ah, nice, I will retest once this change lands in CoreOS. |
We merged #1717 now, but re-reading this I'm not actually sure if it'll fix the issue here. It's not clear why exactly the device is timing out. It might be |
Are you still able to reproduce this? I can't. (This is with new-ish FCOS, without #1717). |
Bug
Usually on the first run of ignition it fails with the swap device unit timing out. After that, if I power-cycle, on the second boot Ignition will go though without errors.
The problem seems to be due to a race condition where the boot disk preparation doesn't complete before the swap unit is expected to be there. Note that sometimes the bug doesn't happen, but usually it does.
Operating System Version
I am running ignition on the latest CoreOS version. The Ignition file was compiled from a Butane file on Linux with Butane version v0.18.0.
Ignition Version
2.16.2
Environment
I am running Ignition on bare metal on a Raspberry Pi 3 (it also happens on the Raspberry Pi 4) in Fedora CoreOS (38.20230918.3.2).
Expected Behavior
Mounting swap succeeds on first boot.
Actual Behavior
The swap device fails to mount causing the first boot to fail and present a recovery shell.
Reproduction Steps
Other Information
The following ignition file can be used to reproduce this:
I didn't manage to reproduce this with a single disk, but due to it being a race condition and not always happening, I cannot say for certain it doesn't also happen without the separate var device.
The rdsosreport.txt looks like this.
The text was updated successfully, but these errors were encountered: