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

Changing specified IP of stateful workload will cause multiple IPs being reserved #417

Open
sjtufl opened this issue May 16, 2024 · 0 comments · May be fixed by #418
Open

Changing specified IP of stateful workload will cause multiple IPs being reserved #417

sjtufl opened this issue May 16, 2024 · 0 comments · May be fixed by #418
Assignees
Labels
bug Something isn't working

Comments

@sjtufl
Copy link
Collaborator

sjtufl commented May 16, 2024

Bug Report

Type: bug report

What happened

  1. Specify ip for StatefulSet pod by adding annotation networking.alibaba.com/ip-pool: 100.64.99.111 (sts replica is set to 1 for demo)
  2. Change annotation value to 100.64.99.112, new pod will be created with ip 100.64.99.112, and the previously specified 100.64.99.111 is also reserved, which is unintended.
~ # kubectl get pods -owide | grep 100.64.99.112
statefulset-e7v2c-0                             1/1     Running   0          97s     100.64.99.112
~ # kubectl get ipinstance | grep statefulset
100-64-99-111   100.64.99.111/16             statefulset-e7v2c-0                                          init     init
100-64-99-112   100.64.99.112/16             statefulset-e7v2c-0                izbp149b3nd59ljk7lbea7z   init     init
  1. If we delete pod now, multiple reserved IPs will cause logic disruptions on inference of ip family when doing stateful allocate for newly created pod.
unable to stateful allocate with provider [hybridnet]: unable to assign: must assign two IPs when DualStack family, but [{ 100.64.99.112}]

What you expected to happen

Do not reserve previously specified IPs.

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

Anything else we need to know?

Environment

  • hybridnet version:
  • OS (e.g. cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Kubernetes version:
  • Install tools:
  • Others:
@sjtufl sjtufl added the bug Something isn't working label May 16, 2024
@sjtufl sjtufl self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant