-
Notifications
You must be signed in to change notification settings - Fork 347
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
Add hybird overlay pod IPs to the namespace address_set #4751
base: master
Are you sure you want to change the base?
Conversation
63f5bfb
to
80fe5be
Compare
hostNetworkIPs, err := oc.getHostNamespaceAddressesForNode(node) | ||
if err != nil { | ||
klog.Errorf("Error parsing annotation for node %s: %v", node.Name, err) | ||
// during SDN live migration, add the SDN node GW IP to the host network address set. |
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.
this change is very openshift-specific, not sure if it belongs upstream...
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.
Can we have d/s only patch in openshift repo? If yes, I can propose this PR to d/s. But this code might be also valid for windows nodes if they also use the first IP of the host subnet for cross node host-to-pod traffic.
During live SDN migration, host-to-pod traffic originating from SDN nodes will use the first IP address of the hybrid overlay node subnet. These IPs are being added to ensure proper functionality of host network policies. Signed-off-by: Peng Liu <[email protected]>
Signed-off-by: Peng Liu <[email protected]>
f4f2c11
to
47f3bec
Compare
What this PR does and why is it needed
The IPs of the pods that are on hybrid overlay nodes shall also be added to the namespace address_set. Also add SDN node subnet gateway IP to host-network namespace address_set.
Which issue(s) this PR fixes
Fixes https://issues.redhat.com//browse/OCPBUGS-42244, https://issues.redhat.com/browse/OCPBUGS-42605
Special notes for reviewers
How to verify it
Details to documentation updates
Description for the changelog
Does this PR introduce a user-facing change?