Skip to content

Conversation

@andyzhangx
Copy link
Member

@andyzhangx andyzhangx commented Dec 11, 2018

What type of PR is this?
/kind bug

What this PR does / why we need it:
add VMSize info in attach/detach azure disk to fix issue vm sku restriction policy does not work in azure disk attach/detach
Pls note that only VM Availability Set has this issue, vmss won’t have this issue.

Which issue(s) this PR fixes:

Fixes #71940

Special notes for your reviewer:
vm.HardwareProfile has only VMSize info, it should be included in the VM update operation, otherwise if user applies vm sku restriction policy, azure disk attach/detach will always fail since there is no VMSize info in the operation.

Does this PR introduce a user-facing change?:

none

Release note:

fix issue: vm sku restriction policy does not work in azure disk attach/detach

/sig azure
/assign @feiskyer

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Dec 11, 2018
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 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. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. labels Dec 11, 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 11, 2018
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
/priority important-soon

@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. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Dec 11, 2018
@feiskyer
Copy link
Member

Should it be also cherry-picked to old releases?

@aleksandra-malinowska
Copy link
Contributor

/retest

k8s-ci-robot added a commit that referenced this pull request Dec 11, 2018
…1941-upstream-release-1.13

Automated cherry pick of #71941: add VMSize info in attach/detach azure disk
@k8s-ci-robot k8s-ci-robot merged commit d8419f8 into kubernetes:master Dec 11, 2018
k8s-ci-robot added a commit that referenced this pull request Dec 12, 2018
…1941-upstream-release-1.11

Automated cherry pick of #71941: add VMSize info in attach/detach azure disk
k8s-ci-robot added a commit that referenced this pull request Dec 12, 2018
…1941-upstream-release-1.12

Automated cherry pick of #71941: add VMSize info in attach/detach azure 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vm sku restriction policy does not work in azure disk attach/detach

4 participants