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

Fix instance not found issues when an Azure Node is recreated in a short time #93316

Merged
merged 1 commit into from Jul 22, 2020

Conversation

feiskyer
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

/kind bug
/priority critical-urgent
/area provider/azure
/sig cloud-provider

What this PR does / why we need it:

When a node is deleted and then recreated in short time, the "instance not found" error would be reported from Azure cloud provider and hence the node object is deleted by kube-controller-manager.

It is because the deleted VMSS VM would be cached for 15 minutes (this is used to avoid throttling issues when a large number of nodes are deleted) and the cache TTL is not configurable.

This PR fixes the issue by

  1. Refresh the cache if the deleted VM has been cached for VmssVirtualMachinesCacheTTLInSeconds period.
  2. letting the cache TTL configurable via VmssVirtualMachinesCacheTTLInSeconds.

Which issue(s) this PR fixes:

Fixes #93287

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Fix instance not found issues when an Azure Node is recreated in a short time

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. area/provider/azure Issues or PRs related to azure provider sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/cloudprovider labels Jul 22, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feiskyer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2020
@feiskyer feiskyer added this to In progress in Provider Azure via automation Jul 22, 2020
@feiskyer
Copy link
Member Author

/sig cloud-provider

@feiskyer feiskyer removed the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jul 22, 2020
@nilo19
Copy link
Member

nilo19 commented Jul 22, 2020

this one looks more intuitive than #93288
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 22, 2020
@andyzhangx
Copy link
Member

/retest

Copy link
Member

@andyzhangx andyzhangx left a comment

Choose a reason for hiding this comment

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

/lgtm

@andyzhangx
Copy link
Member

/retest

@feiskyer
Copy link
Member Author

Add to v1.19 milestone since this is a critical bug fix.
/milestone v1.19

@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Jul 22, 2020
@nikhita
Copy link
Member

nikhita commented Jul 22, 2020

/retest

@nikhita
Copy link
Member

nikhita commented Jul 22, 2020 via email

@nikhita
Copy link
Member

nikhita commented Jul 22, 2020

/retest

1 similar comment
@feiskyer
Copy link
Member Author

/retest

Copy link
Contributor

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

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

/lgtm
/retest

@nikhita
Copy link
Member

nikhita commented Jul 22, 2020

/retest

2 similar comments
@nikhita
Copy link
Member

nikhita commented Jul 22, 2020

/retest

@nikhita
Copy link
Member

nikhita commented Jul 22, 2020

/retest

@feiskyer
Copy link
Member Author

/test pull-kubernetes-integration

@k8s-ci-robot k8s-ci-robot merged commit e6ee924 into kubernetes:master Jul 22, 2020
Provider Azure automation moved this from In progress to Done Jul 22, 2020
@feiskyer feiskyer deleted the fix-93287-2 branch July 22, 2020 23:57
k8s-ci-robot added a commit that referenced this pull request Aug 2, 2020
…-upstream-release-1.16

Automated cherry pick of #93316: Fix instance not found issues when an Azure Node is recreated
k8s-ci-robot added a commit that referenced this pull request Aug 2, 2020
…-upstream-release-1.17

Automated cherry pick of #93316: Fix instance not found issues when an Azure Node is recreated
k8s-ci-robot added a commit that referenced this pull request Aug 2, 2020
…-upstream-release-1.18

Automated cherry pick of #93316: Fix instance not found issues when an Azure Node is recreated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cloudprovider area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

"instance not found" error is reported for recreated Azure nodes
6 participants