-
Notifications
You must be signed in to change notification settings - Fork 274
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
Multi-slb related bug fixes #7432
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nilo19 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 |
activeNodes = bi.getLocalServiceEndpointsNodeNames(service) | ||
} | ||
|
||
if isNICPool(backendPool) { |
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.
fix no. 4
@@ -886,7 +889,13 @@ func removeNodeIPAddressesFromBackendPool( | |||
if addresses[i].LoadBalancerBackendAddressPropertiesFormat != nil { | |||
ipAddress := ptr.Deref((*backendPool.LoadBalancerBackendAddresses)[i].IPAddress, "") | |||
if ipAddress == "" { | |||
klog.V(4).Infof("removeNodeIPAddressFromBackendPool: LoadBalancerBackendAddress %s is not IP-based, skipping", ptr.Deref(addresses[i].Name, "")) | |||
if isNodeIP { |
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.
fix no. 2
@@ -633,7 +634,7 @@ func (bi *backendPoolTypeNodeIP) ReconcileBackendPools(ctx context.Context, clus | |||
if isMigration && bi.EnableMigrateToIPBasedBackendPoolAPI { | |||
var backendPoolNames []string | |||
for _, id := range lbBackendPoolIDsSlice { | |||
name, err := getLBNameFromBackendPoolID(id) | |||
name, err := getBackendPoolNameFromBackendPoolID(id) |
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.
fix no. 5
@@ -446,8 +445,10 @@ func (az *Cloud) getLocalServiceBackendPoolID(serviceName string, lbName string, | |||
|
|||
// localServiceOwnsBackendPool checks if a backend pool is owned by a local service. | |||
func localServiceOwnsBackendPool(serviceName, bpName string) bool { | |||
prefix := strings.Replace(serviceName, "/", "-", -1) | |||
return strings.HasPrefix(strings.ToLower(bpName), strings.ToLower(prefix)) | |||
if strings.HasSuffix(strings.ToLower(bpName), consts.IPVersionIPv6StringLower) { |
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.
fix no. 3
ep = endpointSlice | ||
foundInCache = true | ||
return false | ||
eps = append(eps, endpointSlice) |
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.
fix no. 1
2b510ac
to
5084147
Compare
client := fake.NewSimpleClientset(&svc) | ||
// if tc.existingEPS != nil { | ||
// client = fake.NewSimpleClientset(&svc, tc.existingEPS) | ||
// } else { |
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.
nit: delete unused codes
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.
removed
bp.LoadBalancerBackendAddresses != nil { | ||
for _, addr := range *bp.LoadBalancerBackendAddresses { | ||
if ptr.Deref(addr.IPAddress, "") == "" { | ||
logger.Info("The load balancer backend address has empty ip address, assuming it is a NIC pool", |
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.
change to v(4)
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.
changed
5084147
to
1731376
Compare
/retest |
1 similar comment
/retest |
/test pull-cloud-provider-azure-e2e-ccm-capz |
/test pull-cloud-provider-azure-e2e-ccm-vmss-capz |
Thanks for the fixes |
/test pull-cloud-provider-azure-e2e-ccm-capz |
/retest |
/retest |
1 similar comment
/retest |
@nilo19: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/retest |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #7113
Fixes #7200
Fixes #6980
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: