-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
lbmap: Correct issue that port info display error #13244
Conversation
test-me-please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the same issue present for the three IPv6 maps?
Thanks for reminding, I will check it. |
test-me-please |
@pchaigno I want to honestly let you know that I have not verified this patch in my test environment; |
No problem, I was expecting this; IPv6-only clusters are a bit painful to setup. I think that's fine since we both tested on IPv4 and the change is fairly trivial. I'll ask on Slack how folks usually setup their IPv6-only clusters, but I don't think we need to block on that. |
test-me-please |
Please note, I will append a new patch to this RP to fix a newly discovered issue tomorrow. |
Please also add some CI tests, verifying that the output of I just looked at one of the sysdumps from the CI and see the following: The
But the
|
What you found is accurate, I have fixed this issue today and resolved the RevNatKey display issue.
|
3e52aa6
to
24bed59
Compare
Fixed an issue that is when restarting cilium, Service`s port does not match; |
test-me-please |
24bed59
to
dc4e6b4
Compare
Squash commits into one. |
2525d93
to
b0ee847
Compare
The port info is stored in the bpf map in network byte order;
bpftool map dump pinned /sys/fs/bpf/tc/globals/cilium_lb4_backends
key: 02 00 value: 0a 00 00 55 00 35 00 00
key: 01 00 value: 0a a9 d0 d6 19 2b 00 00
key: 04 00 value: 0a 00 00 64 00 35 00 00
key: 08 00 value: 0a 00 01 db 00 50 00 00
key: 03 00 value: 0a 00 00 55 23 c1 00 00
key: 05 00 value: 0a 00 00 64 23 c1 00 00
key: 07 00 value: 0a 00 01 e6 00 50 00 00
key: 06 00 value: 0a 00 00 59 00 50 00 00
cilium map get cilium_lb4_backends
Key Value State Error
6 ANY://10.0.0.89:20480 sync
7 ANY://10.0.1.230:20480 sync
8 ANY://10.0.1.219:20480 sync
When displaying the given lbmap content, the port needs to be
converted to host byte order.
cilium map get cilium_lb4_backends
Key Value State Error
8 ANY://10.0.0.64:80 sync
6 ANY://10.0.1.158:80 sync
7 ANY://10.0.1.66:80 sync
Signed-off-by: Jianlin Lv Jianlin.Lv@arm.com
Fixes: #13243