Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add wait before adding windows nodepool if cluster is in updating state #3065

Merged
merged 5 commits into from
Oct 11, 2024

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 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
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 😄

.pipelines/templates/add-windows-nodepool-job.yaml Outdated Show resolved Hide resolved
@QxBytes
Copy link
Contributor Author

QxBytes commented Oct 10, 2024

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@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
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.

2 participants