Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Handle instance being destroyed before updating scaling protection #1719

Merged
merged 3 commits into from
Mar 28, 2022

Conversation

tevoinea
Copy link
Member

Summary of the Pull Request

What is this about?

Handles a new exception when attempting to update scaling protection on a VMSS instance.

PR Checklist

Info on Pull Request

What does this include?

There are 2 new cases that are handled:

  1. We tried to remove scale in protection on a node that previously had scale in protection turned off and that no longer exists
  2. Any other HttpResponseError exceptions

In 1, we're OK with the exception because we had no expectation of the node continuing to live anyway.

In 2, we propagate the error.

Validation Steps Performed

I intentionally triggered the exception by trying to update an instance that I know doesn't exist.

@tevoinea tevoinea merged commit ce03394 into microsoft:main Mar 28, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A node instance may not exist by the time we attempt to update scale in protection
2 participants