Skip to content

[Identity] Retry IMDS requests on 410 responses - #32200

Merged
pvaneck merged 1 commit into
Azure:mainfrom
pvaneck:imds-410
Sep 25, 2023
Merged

[Identity] Retry IMDS requests on 410 responses#32200
pvaneck merged 1 commit into
Azure:mainfrom
pvaneck:imds-410

Conversation

@pvaneck

@pvaneck pvaneck commented Sep 22, 2023

Copy link
Copy Markdown
Member

There are cases where the IMDS endpoint might return a 410 error response, and the guidance is to retry on such an error.

.NET has already implemented a similar PR: Azure/azure-sdk-for-net#37012

Note: The Retry-After header was removed from the test responses since our RetryPolicy will retry any error response with this header. In our test cases, we want to test the retry based only on the status code.

There are cases where the IMDS endpoint might return a 410 error response,
and the guidance is to retry on such an error.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck
pvaneck marked this pull request as ready for review September 22, 2023 22:48
@pvaneck
pvaneck requested review from a team and xiangyan99 as code owners September 22, 2023 22:48
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants