Skip to content

Conversation

@QxBytes
Copy link
Contributor

@QxBytes QxBytes commented Oct 10, 2024

Reason for Change:

If a windows nodepool is added to a newly created aks cluster, the aks cluster may be in "Updating" state, causing the job to fail. This PR adds a check to see if the cluster is in updating state and sleeps until the cluster is no longer in the updating state. Also refactors adding windows nodepool into a common template and adds a check if the windows nodepool is already created (so we don't error if the nodepool is already added).

Issue Fixed:

Requirements:

Notes:
On detecting updating state, we wait, see line 54:
https://msazure.visualstudio.com/One/_build/results?buildId=105433502&view=logs&j=66af8358-44a8-5a80-90ff-77e03c31665a&t=8f8dc4ee-a8ef-5fc9-ab65-cc330785c488
When not detecting updating state, we proceed:
https://msazure.visualstudio.com/One/_build/results?buildId=105437613&view=logs&s=46b305b8-7ec3-51e0-83b8-e4b201974b98&j=66af8358-44a8-5a80-90ff-77e03c31665a

@QxBytes QxBytes added cni Related to CNI. ci Infra or tooling. labels Oct 10, 2024
@QxBytes QxBytes self-assigned this Oct 10, 2024
@QxBytes QxBytes force-pushed the alew/refactor-win-nodepool branch from 96cd496 to 3cd43c0 Compare October 10, 2024 18:31
@QxBytes QxBytes marked this pull request as ready for review October 10, 2024 18:45
@QxBytes QxBytes requested a review from a team as a code owner October 10, 2024 18:45
@QxBytes QxBytes requested a review from snguyen64 October 10, 2024 18:45
Copy link
Contributor

@jpayne3506 jpayne3506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for templatizing this 😄

@QxBytes
Copy link
Contributor Author

QxBytes commented Oct 10, 2024

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@QxBytes QxBytes enabled auto-merge October 10, 2024 20:38
@QxBytes QxBytes added this pull request to the merge queue Oct 10, 2024
Merged via the queue into master with commit 3ed0bcd Oct 11, 2024
93 checks passed
@QxBytes QxBytes deleted the alew/refactor-win-nodepool branch October 11, 2024 00:12
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
… state (#3065)

* add windows node template first pass

* wait for cluster to exit updating state before adding windows nodepool

* remove change made for testing

* fix naming

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

Labels

ci Infra or tooling. cni Related to CNI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants