Skip to content

Conversation

@andyzhangx
Copy link
Member

@andyzhangx andyzhangx commented Nov 2, 2018

What type of PR is this?
/kind bug

What this PR does / why we need it:
remove retry operation on attach/detach azure disk, switch to use k8s attach-detach controller which would control retry attach/detach disk

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #70567

Special notes for your reviewer:
retry azure disk attach operation produce too many API calls
Now the default cloudProviderBackoffRetries value is 6 which means if AttachDisk operation failed, it will retry 6 more times, when disk quota is full on a VM, it produces too many API calls. Retry attach disk behavior is not necessary since it AttachVolume operation fails, k8s attachdetach-controller will retry once a minute until it succeeds.

default setting in /etc/kubernetes/azure.json now:

   "cloudProviderBackoff": true,
    "cloudProviderBackoffRetries": 6,

Does this PR introduce a user-facing change?:

NONE

Release note:

remove retry operation on attach/detach azure disk

/sig azure
/assign @feiskyer
@jackfrancis @khenidak @brendandburns

@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/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. sig/azure cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Nov 2, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. labels Nov 2, 2018
@feiskyer
Copy link
Member

feiskyer commented Nov 2, 2018

/priority important-soon
/milestone v1.13

@k8s-ci-robot k8s-ci-robot added this to the v1.13 milestone Nov 2, 2018
@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Nov 2, 2018
@andyzhangx andyzhangx force-pushed the remove-retry-azuredisk branch from 0d91adf to c7acc7a Compare November 2, 2018 07:51
fix logging

fix build failure
@andyzhangx andyzhangx force-pushed the remove-retry-azuredisk branch from c7acc7a to 8abadbe Compare November 2, 2018 08:48
@jackfrancis
Copy link
Contributor

code lgtm

Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 3, 2018
@k8s-ci-robot k8s-ci-robot merged commit 0f3dff2 into kubernetes:master Nov 3, 2018
k8s-ci-robot added a commit that referenced this pull request Nov 8, 2018
…0568-upstream-release-1.12

Automated cherry pick of #70568: remove retry operation on attach/detach disk
k8s-ci-robot added a commit that referenced this pull request Nov 8, 2018
…0568-upstream-release-1.10

Automated cherry pick of #70568: remove retry operation on attach/detach disk
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. 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/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

retry azure disk attach operation produces too many API calls

4 participants