Skip to content

Retry on HTTP 410 error code for Azure IMDS provider #1806

@travier

Description

@travier

Bug

Azure IMDS provider may reply with an HTTP 410 error code but we should still retry after 70s according to their documentation: https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=linux#errors-and-debugging

It looks like cloud-init is retrying when receiving this error code: https://github.com/canonical/cloud-init/blob/main/cloudinit/sources/azure/imds.py#L36

Operating System Version

Ignition Version

Environment

Azure

Expected Behavior

Retry on 410 HTTP return code to follow Azure platform recommendations.

Actual Behavior

https://coreos.github.io/ignition/operator-notes/#http-backoff-and-retry

Reproduction Steps

  1. ...
  2. ...

Other Information

https://issues.redhat.com/browse/OCPBUGS-29252

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions