Skip to content

fix image-stream race:#227

Merged
mergify[bot] merged 2 commits into
tinkerbell:mainfrom
jacobweinstock:fix-race
May 12, 2026
Merged

fix image-stream race:#227
mergify[bot] merged 2 commits into
tinkerbell:mainfrom
jacobweinstock:fix-race

Conversation

@jacobweinstock

Copy link
Copy Markdown
Member

Description

After image2disk streams the cloud image to /dev/sda, the kernel and udev occasionally haven't re-read the new partition table by the time the next cexec action opens /dev/sda1, causing mount to fail with EINVAL and the workflow to fail intermittently (re-runs succeed). The race is more likely on the VirtualBox stack where the arm64 image2disk finishes in ~5s, leaving only milliseconds before grow-partition runs. A short sleep gives the partition rescan time to settle.

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

After image2disk streams the cloud image to /dev/sda, the kernel and
udev occasionally haven't re-read the new partition table by the time
the next cexec action opens /dev/sda1, causing mount to fail with
EINVAL and the workflow to fail intermittently (re-runs succeed). The
race is more likely on the VirtualBox stack where the arm64 image2disk
finishes in ~5s, leaving only milliseconds before grow-partition runs.
A short sleep gives the partition rescan time to settle.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@jacobweinstock jacobweinstock added kind/bug Categorizes issue or PR as related to a bug. ready-to-merge Signal to Mergify to merge the PR. labels May 12, 2026
@mergify

mergify Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 📃 Configuration Change Requirements

Wonderful, this rule succeeded.

Mergify configuration change

  • check-success = Configuration changed

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
@mergify

mergify Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • Entered queue2026-05-12 04:49 UTC · Rule: default
  • Checks skipped · PR is already up-to-date
  • Merged2026-05-12 04:49 UTC · at e5abd79a13b5d93748a498b6c9d25b8425fe7f64 · merge

This pull request spent 17 seconds in the queue, including 3 seconds running CI.

Required conditions to merge

@mergify mergify Bot merged commit 144e4f2 into tinkerbell:main May 12, 2026
9 of 10 checks passed
@mergify mergify Bot removed the queued label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant