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

StatefulSet IP preallocation cannot work as expected #6356

Closed
gran-vmv opened this issue May 22, 2024 · 0 comments · Fixed by #6357
Closed

StatefulSet IP preallocation cannot work as expected #6356

gran-vmv opened this issue May 22, 2024 · 0 comments · Fixed by #6357
Assignees
Labels
area/ipam Issues or PRs related to IP address management (IPAM). kind/bug Categorizes issue or PR as related to a bug.

Comments

@gran-vmv
Copy link
Contributor

Describe the bug
FlexibleIPAM e2e cases always failed

    --- FAIL: TestAntreaIPAM/testAntreaIPAMStatefulSetDedicated (18.02s)
    --- FAIL: TestAntreaIPAM/testAntreaIPAMStatefulSetShared (18.02s)

The StatefulSet Pods cannot use reserved IPs.

=== RUN   TestAntreaIPAM/testAntreaIPAMStatefulSetDedicated
    antreaipam_test.go:553: expectedIPAddressMap: {"192.168.240.130":{"ipAddress":"192.168.240.130","phase":"Allocated","owner":{"pod":{"name":"sts-test-atii00wt-0","namespace":"antrea-ipam-test","containerID":""},"statefulSet":{"name":"sts-test-atii00wt","namespace":"antrea-ipam-test","index":0}}},"192.168.240.131":{"ipAddress":"192.168.240.131","phase":"Allocated","owner":{"pod":{"name":"sts-test-atii00wt-1","namespace":"antrea-ipam-test","containerID":""},"statefulSet":{"name":"sts-test-atii00wt","namespace":"antrea-ipam-test","index":1}}}}
    antreaipam_test.go:584: IPPool status isn't correct: [{"ipAddress":"192.168.240.130","phase":"Reserved","owner":{"statefulSet":{"name":"sts-test-atii00wt","namespace":"antrea-ipam-test","index":0}}},{"ipAddress":"192.168.240.131","phase":"Reserved","owner":{"statefulSet":{"name":"sts-test-atii00wt","namespace":"antrea-ipam-test","index":1}}},{"ipAddress":"192.168.240.132","phase":"Allocated","owner":{"pod":{"name":"sts-test-atii00wt-0","namespace":"antrea-ipam-test","containerID":"28c3252057a5263e6da733d0818dea07e288fa971954ff3b49077c3f45d686d9"}}},{"ipAddress":"192.168.240.133","phase":"Allocated","owner":{"pod":{"name":"sts-test-atii00wt-1","namespace":"antrea-ipam-test","containerID":"601f5fdbc75710711e9330266a07aaca9c83b858cc3424c23d0bbcc5824352ef"}}}]

To Reproduce
Run FlexibleIPAM e2e with PR #6317

Expected
Pass all e2e cases.

Actual behavior
2 cases failed.

Versions:
main branch after PR #6317 merged

cc @luolanzone

@gran-vmv gran-vmv added area/ipam Issues or PRs related to IP address management (IPAM). kind/bug Categorizes issue or PR as related to a bug. labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ipam Issues or PRs related to IP address management (IPAM). kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants