Skip to content

feat(azure): report failure if missing customdata#6779

Draft
cadejacobson wants to merge 7 commits intocanonical:mainfrom
cadejacobson:azure-missing-customdata
Draft

feat(azure): report failure if missing customdata#6779
cadejacobson wants to merge 7 commits intocanonical:mainfrom
cadejacobson:azure-missing-customdata

Conversation

@cadejacobson
Copy link
Contributor

@cadejacobson cadejacobson commented Mar 2, 2026

Proposed Commit Message

feat(azure): report failure if missing customdata

Add experimental Azure datasource config key
experimental_fail_on_missing_customdata with a default of
false and use it to control reporting when OVF custom data is
missing despite IMDS indicating that hasCustomData=true.

Fixes GH-NNNNN (GitHub Issue number. Remove line if irrelevant)

Additional Context

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"

When ovf-env.xml is present but does not contain custom data, yet IMDS
indicates that custom data was provided to the VM (via hasCustomData),
report a provisioning failure. This helps surface cases where custom
data is silently lost during provisioning.

The behavior is gated behind a new feature flag,
EXPERIMENTAL_FAIL_ON_MISSING_CUSTOMDATA, which is disabled by default
while undergoing scale testing. Once validated, it will be renamed and
enabled for new distro releases.

Changes:
- Add EXPERIMENTAL_FAIL_ON_MISSING_CUSTOMDATA feature flag
- Add _hascustomdata_from_imds() helper to query IMDS metadata
- Report ReportableErrorImdsInvalidMetadata when custom data is
  expected but missing from OVF provisioning media
@cadejacobson cadejacobson changed the title Azure missing customdata feat(azure): report failure if missing customdata Mar 2, 2026
@github-actions
Copy link

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging blackboxsw, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag blackboxsw to reopen it.)

@github-actions github-actions bot added the stale-pr Pull request is stale; will be auto-closed soon label Mar 17, 2026
@github-actions github-actions bot removed the stale-pr Pull request is stale; will be auto-closed soon label Mar 18, 2026
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.

1 participant