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: VM name should be obtained from NIC.VirtualMachine.ID instead of… #4848

Merged
merged 1 commit into from Oct 30, 2023

Conversation

nilo19
Copy link
Contributor

@nilo19 nilo19 commented Oct 26, 2023

… NIC name.

What type of PR is this?

/kind bug

What this PR does / why we need it:

The VM name cannot be derived from NIC name when using standalone VMs. We need to obtain it from NIC.VirtualMachine.ID.

Which issue(s) this PR fixes:

Fixes #4823

Special notes for your reviewer:

This will introduce an extra ARM call.

Does this PR introduce a user-facing change?

fix: VM name should be obtained from NIC.VirtualMachine.ID instead of NIC name.

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. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 26, 2023
@nilo19 nilo19 requested a review from feiskyer October 26, 2023 02:38
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nilo19

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 26, 2023
@nilo19
Copy link
Contributor Author

nilo19 commented Oct 26, 2023

/retest

1 similar comment
@nilo19
Copy link
Contributor Author

nilo19 commented Oct 26, 2023

/retest

@nilo19
Copy link
Contributor Author

nilo19 commented Oct 27, 2023

/retest

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 Oct 30, 2023
@k8s-ci-robot k8s-ci-robot merged commit bfbc62a into kubernetes-sigs:master Oct 30, 2023
17 checks passed
@nilo19 nilo19 deleted the fix/vm-name branch October 30, 2023 04:03
@nilo19
Copy link
Contributor Author

nilo19 commented Oct 30, 2023

/cherrypick release-1.28

@k8s-infra-cherrypick-robot

@nilo19: new pull request created: #4878

In response to this:

/cherrypick release-1.28

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nilo19
Copy link
Contributor Author

nilo19 commented Oct 30, 2023

/cherrypick release-1.28

@k8s-infra-cherrypick-robot

@nilo19: new pull request could not be created: failed to create pull request against kubernetes-sigs/cloud-provider-azure#release-1.28 from head k8s-infra-cherrypick-robot:cherry-pick-4848-to-release-1.28: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for k8s-infra-cherrypick-robot:cherry-pick-4848-to-release-1.28."}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request"}

In response to this:

/cherrypick release-1.28

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nilo19
Copy link
Contributor Author

nilo19 commented Oct 30, 2023

/cherrypick release-1.27

@k8s-infra-cherrypick-robot

@nilo19: #4848 failed to apply on top of branch "release-1.27":

Applying: fix: VM name should be obtained from NIC.VirtualMachine.ID instead of NIC name.
Using index info to reconstruct a base tree...
M	pkg/provider/azure_utils.go
M	pkg/provider/azure_vmss_cache.go
M	pkg/provider/azure_vmss_cache_test.go
M	pkg/provider/azure_vmssflex.go
M	pkg/provider/azure_vmssflex_test.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/provider/azure_vmssflex_test.go
Auto-merging pkg/provider/azure_vmssflex.go
Auto-merging pkg/provider/azure_vmss_cache_test.go
CONFLICT (content): Merge conflict in pkg/provider/azure_vmss_cache_test.go
Auto-merging pkg/provider/azure_vmss_cache.go
Auto-merging pkg/provider/azure_utils.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 fix: VM name should be obtained from NIC.VirtualMachine.ID instead of NIC name.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-1.27

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VM name cannot be obtained from NIC name by trimming the suffix
4 participants