Repository navigation
Fix OpenStack Metadata 404 - #4413
Open
robinschneider wants to merge 2 commits into
Open
robinschneider wants to merge 2 commits into
robinschneider wants to merge 2 commits into
Conversation
Signed-off-by: Robin Schneider <mail@robinschneider.dev>
robinschneider
requested a deployment
to
development
December 1, 2026 16:12 — with
GitHub Actions
Waiting
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Ignition metadata-readiness and concurrent-fetching changes.
No open issues 🎉
What changed in this PR
This PR adds downstream Ignition patches so Flatcar can distinguish an OpenStack metadata service that is not ready from an instance with no user data.
Changes:
- Probe instance metadata after a user-data 404, retry until metadata is available, then fetch user data again.
- Rework parallel fetching to wait for the first successful result or all failures, with regression tests.
- Configure redirect handling once per HTTP client to avoid concurrent updates during fetches.
| File | Description |
|---|---|
| sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-apps/ignition/40d22206921fe129044ffde455bb410767e46445.patch | Moves redirect-handler setup into HTTP client initialization. |
| sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sys-apps/ignition/3b569f91c166a2da00bceab1bb24a533eb86399c.patch | Adds metadata-readiness probing, revises parallel fetching, and includes tests and an upstream release note. |
Review effort: Balanced
tormath1
reviewed
Dec 1, 2026
tormath1
left a comment
Contributor
There was a problem hiding this comment.
LGTM once the upstream PR is approved / merged. In the meantime, we can just move those patches to: https://github.com/flatcar/scripts/tree/main/sdk_container/src/third_party/coreos-overlay/sys-apps/ignition/files
This can help when upgrading Ignition, all patches are in the same place.
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix OpenStack Metadata 404
OpenStack Metadata service sometimes is not yet ready when a server tries to access it. In this case OpenStack returns 404, the issue is OpenStack also returns 404 when Metadata service is available but there is no user-data. Ignition never retries after a 404.
Therefore this fix (PR for upstream Ignition still open coreos/ignition#2355) adds a probe to check, if the metadata service is already available.
How to use
Mantle tests for Brightbox and STACKIT were successfull.
Also a local test was successfull with a metadata service that is healthy but always returns 404
Testing done
Both mantle tests as well as manual testing with an always 404 returning metadata service succeeded.