Skip to content
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

Merged
merged 1 commit into from May 21, 2017

Conversation

daconstenla
Copy link

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

@k8s-ci-robot
Copy link
Contributor

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 @k8s-bot ok to test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Dec 19, 2016
@k8s-reviewable
Copy link

This change is Reviewable

@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-label-needed labels Dec 19, 2016
@daconstenla
Copy link
Author

daconstenla commented Dec 19, 2016

cla/linuxfoundation — commit missing GitHub user
Corrected, can the checks be re-launched or should I made a new commit to trigger it?

@anguslees
Copy link
Member

anguslees commented Dec 20, 2016

@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...
Edit: Ah, EnsureLoadBalancer was fixed, but not EnsureLoadBalancerDeleted. Oops.
git grep tells me that these are the last two calls to ExtractListeners and ExtractPools, so hopefully this will be the end of it.

@@ -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 {
Copy link
Member

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 {
Copy link
Member

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

@kiall
Copy link

kiall commented Dec 21, 2016

@anguslees yea, it looks like I missed a case in my last PR for this. No clue how we haven't hit this one :(

@kiall
Copy link

kiall commented Dec 21, 2016

Can we apply the 1.5 milestone and cherrypick-candidate label? Over eager deletions is defiantly worth pushing into the 1.5 releases!

@daconstenla
Copy link
Author

@anguslees I have made the changes you suggested (and some more), now I'm waiting confirmation from my organization to sign the cncf agreement.

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 23, 2016
@k8s-ci-robot
Copy link
Contributor

Jenkins CRI GCE Node e2e failed for commit 1a7cb48ce81e56aaba8713ba4b9a37b94189ad28. Full PR test history.

The magic incantation to run this job again is @k8s-bot cri node e2e test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@xsgordon
Copy link

@idvoretskyi can you please add the sig/openstack label?

@idvoretskyi idvoretskyi added the area/provider/openstack Issues or PRs related to openstack provider label Jan 9, 2017
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 17, 2017
@daconstenla
Copy link
Author

Hi @anguslees, what happend with this PR? :)

/approve

Copy link
Member

@anguslees anguslees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@anguslees
Copy link
Member

@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 ...

@idvoretskyi
Copy link
Member

cc @saad-ali on comment above.

@k8s-github-robot k8s-github-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 21, 2017
@daconstenla
Copy link
Author

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)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, like #43056.

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 29, 2017
@daconstenla
Copy link
Author

Some \lgtm around? @grahamhayes @anguslees ?

Thanks

@grodrigues3 grodrigues3 added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 5, 2017
@anguslees
Copy link
Member

/lgtm

(Sorry this PR has dragged out so long, thanks for your persistence!)

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 24, 2017
@k8s-github-robot k8s-github-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. labels Apr 24, 2017
@anguslees
Copy link
Member

/release-note-none

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Apr 24, 2017
@anguslees
Copy link
Member

@k8s-bot cvm gce e2e test this

@FengyunPan
Copy link

FengyunPan commented Apr 28, 2017

@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.
try: git push -f ?

@FengyunPan
Copy link

@erictune @grahamhayes @anguslees @daconstenla
Hi everyone,the pr addresses a big bug and has been submited 5 month ago, but it has not been merged. I think the reason is there are two invaild commit in pr, and the contributor did not remove them.
I can not wait to fix the big bug anymore. Can you merge my pr (#43056)? #43056

… the indicated filters when querying pools and/or listeners

also added @FengyunPan modifications from PR#43055
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 5, 2017
@dims
Copy link
Member

dims commented May 5, 2017

@k8s-bot ok to test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 5, 2017
@daconstenla
Copy link
Author

@k8s-bot bazel test this

@daconstenla
Copy link
Author

Can somebody mark as /lgtm? @erictune @grahamhayes @anguslees
By the way, it seems like a test is failing, I had to launch 3 times bazel test before ends with a valid result.

@daconstenla
Copy link
Author

Can somebody please, attend this pull-request and mark it as lgtm?

@anguslees
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 16, 2017
@k8s-github-robot
Copy link

[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 /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@fejta fejta removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label May 21, 2017
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented May 21, 2017

@daconstenla: The following test(s) failed:

Test name Commit Details Rerun command
pull-kubernetes-federation-e2e-gce a87d34c link @k8s-bot pull-kubernetes-federation-e2e-gce test this

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.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 39308b8 into kubernetes:master May 21, 2017
dims pushed a commit to dims/kubernetes that referenced this pull request Feb 8, 2018
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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/openstack Issues or PRs related to openstack provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet