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

Fix wrong LB idletimeout for node outbound #3138

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

CecileRobertMichon
Copy link
Contributor

@CecileRobertMichon CecileRobertMichon commented Feb 1, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it: In cluster scope, when reading Control Plane outbound LB specs, IdleTimeoutInMinutes is read from node outbound LB spec instead from control plane outbound spec

IdleTimeoutInMinutes: s.NodeOutboundLB().IdleTimeoutInMinutes,
, so this can cause a panic on the mentioned line in cluster scope when node outbound LB is nil.

Adds unit tests for the LBSpecs() func.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #2812

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Fix idleTimeoutInMinutes for Control Plane Outbound LB to use the right LB spec

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 1, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 1, 2023
@CecileRobertMichon
Copy link
Contributor Author

/assign @sonasingh46

@sonasingh46
Copy link
Contributor

/retest

Copy link
Contributor

@sonasingh46 sonasingh46 left a comment

Choose a reason for hiding this comment

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

PR looks good to me.
Re-triggered the failed test, timeout issue.

@nprokopic
Copy link
Contributor

Looks great, thanks!

@CecileRobertMichon
Copy link
Contributor Author

/cherry-pick release-1.6
/cherry-pick release-1.7

@k8s-infra-cherrypick-robot

@CecileRobertMichon: once the present PR merges, I will cherry-pick it on top of release-1.6 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.6
/cherry-pick release-1.7

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.

@CecileRobertMichon
Copy link
Contributor Author

Could I get an /lgtm from one of you?

/assign @mboersma @jackfrancis

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

🐛 Thank you for the unit test!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 2, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b9798c94ed9f50679b5a560ba423aa5fd426f0c2

@CecileRobertMichon
Copy link
Contributor Author

/approve

self-approving since 1) this is a relatively small change (outside UTs) and fixes a user impacting bug 2) 3 people have reviewed and lgtm'ed including one project approver and one project reviewer

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2023
@k8s-ci-robot k8s-ci-robot merged commit 8c8e3f4 into kubernetes-sigs:main Feb 2, 2023
@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone Feb 2, 2023
@k8s-infra-cherrypick-robot

@CecileRobertMichon: #3138 failed to apply on top of branch "release-1.6":

Applying: Fix wrong LB idletimeout for node outbound
Using index info to reconstruct a base tree...
M	azure/scope/cluster.go
M	azure/scope/cluster_test.go
Falling back to patching base and 3-way merge...
Auto-merging azure/scope/cluster_test.go
Auto-merging azure/scope/cluster.go
CONFLICT (content): Merge conflict in azure/scope/cluster.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Fix wrong LB idletimeout for node outbound
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.6
/cherry-pick release-1.7

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.

@k8s-infra-cherrypick-robot

@CecileRobertMichon: new pull request created: #3140

In response to this:

/cherry-pick release-1.6
/cherry-pick release-1.7

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.

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

Panic during cluster creation / deletion if the controlPlaneOutboundLB is set but not the nodeOuboundLB
7 participants