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

VMSS + IPv6 backend address pool deletion failure #3707

Closed
lzhecheng opened this issue Apr 6, 2023 · 5 comments
Closed

VMSS + IPv6 backend address pool deletion failure #3707

lzhecheng opened this issue Apr 6, 2023 · 5 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@lzhecheng
Copy link
Contributor

What happened:

When ensureBackendPoolDeletedFromVMSS, the IPv6 backendAddressPool is not deleted, which leads to "child resources are in use by virtual machine scale set" error. An example:
https://storage.googleapis.com/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_cluster-api-provider-azure/3398/pull-cluster-api-provider-azure-e2e/1643851112475791360/artifacts/clusters/capz-e2e-17k4mh-ipv6/kube-system/cloud-controller-manager-5fcf8dbddb-qf57j/cloud-controller-manager.log

What you expected to happen:

IPv6 backendAddressPool is deleted from VMSS.

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

Test on a IPv6 + VMSS cluster.

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:
@lzhecheng lzhecheng added the kind/bug Categorizes issue or PR as related to a bug. label Apr 6, 2023
@lzhecheng lzhecheng self-assigned this Apr 6, 2023
@lzhecheng
Copy link
Contributor Author

Current investigation shows that in an IPv6 cluster, the primary ipConfigurations is still IPv4, so the deletion fails.

primaryIPConfig, err := getPrimaryIPConfigFromVMSSNetworkConfig(primaryNIC)

@lzhecheng
Copy link
Contributor Author

lzhecheng commented Apr 6, 2023

Related: kubernetes-sigs/cluster-api-provider-azure#3361
/cc @CecileRobertMichon For a IPv6 cluster, VMSS primary NIC's primary IP config is always IPv4, right?

@CecileRobertMichon
Copy link
Contributor

For a IPv6 cluster, VMSS primary NIC's primary IP config is always IPv4, right?

correct

@lzhecheng
Copy link
Contributor Author

/close

@k8s-ci-robot
Copy link
Contributor

@lzhecheng: Closing this issue.

In response to this:

/close

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
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants