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
Adapt loadbalancer deleting/updating when using cloudprovider openstack in openstack/liberty #38959
Conversation
Hi @daconstenla. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. Once you've signed, please reply here (e.g. "I signed it!") and we'll verify. Thanks.
If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository. |
cla/linuxfoundation — commit missing GitHub user |
@k8s-bot ok to test Wat? I swear this is the 3rd time I've reviewed a fix for this issue :/ Now off to do some git archaeology to see where this is/isn't merged... |
@@ -1135,7 +1135,9 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1. | |||
} | |||
|
|||
for _, listener := range listenerList { | |||
listenerIDs = append(listenerIDs, listener.ID) | |||
if len(listener.Loadbalancers) > 0 && listener.Loadbalancers[0].ID == loadbalancer.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.
This whole surrounding code should be replaced with a call to getListenersByLoadBalancerID
@@ -1154,8 +1156,13 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1. | |||
} | |||
|
|||
for _, pool := range poolsList { | |||
poolIDs = append(poolIDs, pool.ID) | |||
monitorIDs = append(monitorIDs, pool.MonitorID) | |||
for _, listenerID := range listenerIDs { |
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.
Replace surrounding code by getPoolByListenerID
@anguslees yea, it looks like I missed a case in my last PR for this. No clue how we haven't hit this one :( |
Can we apply the 1.5 milestone and cherrypick-candidate label? Over eager deletions is defiantly worth pushing into the 1.5 releases! |
@anguslees I have made the changes you suggested (and some more), now I'm waiting confirmation from my organization to sign the cncf agreement. |
Jenkins CRI GCE Node e2e failed for commit 1a7cb48ce81e56aaba8713ba4b9a37b94189ad28. Full PR test history. The magic incantation to run this job again is |
@idvoretskyi can you please add the sig/openstack label? |
Hi @anguslees, what happend with this PR? :) /approve |
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.
/approve
@idvoretskyi As has been mentioned before, this PR should be cherrypicked onto 1.5. No idea if that's a process you kick off with github label magic, or ... |
cc @saad-ali on comment above. |
I have made a rebase and now tests fails, I'm not sure what's the problem, can someone help me? |
if err != nil { | ||
return err | ||
for _, pool := range poolIDs { | ||
membersList, err := getMembersByPoolID(lbaas.network, 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.
same here, like #43056.
Some \lgtm around? @grahamhayes @anguslees ? Thanks |
/lgtm (Sorry this PR has dragged out so long, thanks for your persistence!) |
/release-note-none |
@k8s-bot cvm gce e2e test this |
@daconstenla Maybe you should combine 4 commits into 1 commit? I find that the first commit is wrong and there are two commits is empty. |
@erictune @grahamhayes @anguslees @daconstenla |
… the indicated filters when querying pools and/or listeners also added @FengyunPan modifications from PR#43055
@k8s-bot ok to test |
@k8s-bot bazel test this |
Can somebody mark as /lgtm? @erictune @grahamhayes @anguslees |
Can somebody please, attend this pull-request and mark it as lgtm? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anguslees, daconstenla
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
@daconstenla: The following test(s) failed:
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/test-infra repository. I understand the commands that are listed here. |
Automatic merge from submit-queue |
Automatic merge from submit-queue Adapt loadbalancer deleting/updating when using cloudprovider openstack in openstack/liberty **What this PR does / why we need it**: Make an extra verification on the returned listeners and pools because gophercloud query doesn't filter the results by loadbalancerID / listenerID respectively when using **openstack/librerty**. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # kubernetes#33759 **Special notes for your reviewer**: kubernetes#33759 it's supposed to have a pull request which fixes this problem but in the release 1.5 loadbalancers doesn't use that patched code. **Release note**: NONE ```release-note ```
What this PR does / why we need it:
Make an extra verification on the returned listeners and pools because gophercloud query doesn't filter the results by loadbalancerID / listenerID respectively when using openstack/librerty.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes ##33759
Special notes for your reviewer:
#33759 it's supposed to have a pull request which fixes this problem but in the release 1.5 loadbalancers doesn't use that patched code.
Release note:
NONE