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

VM name cannot be obtained from NIC name by trimming the suffix #4823

Closed
nilo19 opened this issue Oct 20, 2023 · 0 comments · Fixed by #4848
Closed

VM name cannot be obtained from NIC name by trimming the suffix #4823

nilo19 opened this issue Oct 20, 2023 · 0 comments · Fixed by #4848
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@nilo19
Copy link
Contributor

nilo19 commented Oct 20, 2023

What happened:

The name of a VM cannot be obtained by trimming the "-nic" suffix of the corresponding NIC name. Example: https://github.com/kubernetes-sigs/cloud-provider-azure/blob/a67f51472f3b9b10a51cd4dfd5722376c7d2a203/pkg/provider/azure_vmss_cache.go#L497C3-L504

What you expected to happen:

Should be obtained by nic.InterfacePropertiesFormat.VirtualMachine.ID.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant