-
Notifications
You must be signed in to change notification settings - Fork 146
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
[WIP] [DNM] Testing Fix conflicting network prefix for (C)UDNs. #2433
base: master
Are you sure you want to change the base?
Conversation
Due to internal conversion of network name to network prefix by GetSecondaryNetworkPrefix, which replaces '-' with '.', non-conflicting networks get conflicting internal names, e.g. for node switches. For example, NADs with network name 'tenant-blue' and 'tenant.blue' will have such conflict. In UDN case, network name was built as <namespace>.<name>, therefore 2 UDNs with namespace+name => network will have a conflict: 'test' + 'tenant-blue' => test.tenant-blue 'test-tenant' + 'blue' => test-tenant.blue If we use underscore instead of a period, it will allow us to work around this issue for (C)UDN. Move (C)UDN generate and parse network name function to utils to let other modules use this logic. Convert `GetNetworkVRFName` to use this function instead of prefix. Signed-off-by: Nadia Pinaeva <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: trozet The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@trozet: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Due to internal conversion of network name to network prefix by GetSecondaryNetworkPrefix, which replaces '-' with '.', non-conflicting networks get conflicting internal names, e.g. for node switches.
For example, NADs with network name 'tenant-blue' and 'tenant.blue' will have such conflict. In UDN case, network name was built as ., therefore 2 UDNs with namespace+name => network will have a conflict:
'test' + 'tenant-blue' => test.tenant-blue
'test-tenant' + 'blue' => test-tenant.blue
If we use underscore instead of a period, it will allow us to work around this issue for (C)UDN.
Move (C)UDN generate and parse network name function to utils to let other modules use this logic. Convert
GetNetworkVRFName
to use this function instead of prefix.📑 Description
Fixes #
Additional Information for reviewers
✅ Checks
How to verify it