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

TCP for Loadbalancer Monitor causes API server downtime during upgrades #1749

Closed
MPV opened this issue Nov 15, 2023 · 7 comments
Closed

TCP for Loadbalancer Monitor causes API server downtime during upgrades #1749

MPV opened this issue Nov 15, 2023 · 7 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@MPV
Copy link

MPV commented Nov 15, 2023

/kind bug

What steps did you take and what happened:

  1. Upgrade k8s version in a CAPO target cluster.
  2. When an old control plane node leaves, the API server is removed from the load balancer pool after it has stopped.
    • TCP health monitor fails at time 0s, node is removed at time 90s.
    • ...as the current implementation means:

      After 90 (=3*30) seconds of downtime, API server pool members will be marked as down.

    • ...as per:
      monitorCreateOpts := monitors.CreateOpts{
      Name: monitorName,
      PoolID: poolID,
      Type: "TCP",
      Delay: 10,
      MaxRetries: 5,
      MaxRetriesDown: 3,
      Timeout: 5,
      }
  3. This means any/all API server clients will get intermittent failures (as they round-robin will reach an API server node which isn't there anymore).

What did you expect to happen:

  1. ...
  2. No downtime/errors on the API server, and thus none of the sub-issues seen above.

Anything else you would like to add:

Could we start supporting either/both of:

Environment:

  • Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built): v0.7.0
  • Cluster-API version: v1.3.3
  • OpenStack version: ...
  • Minikube/KIND version: N/A
  • Kubernetes version (use kubectl version): 1.25 -> 1.26
  • OS (e.g. from /etc/os-release): N/A

...but we have manually changed our LB health monitor's to include the changes from #1360 (to alleviate issues seen in #1221 and #1375).

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 15, 2023
@MPV
Copy link
Author

MPV commented Nov 15, 2023

An example of a (semi-CAPO-related) symptom we've seen caused by this:

During this time:

  1. Intermittently, nodes can't connect to the API server during this time, thus marking themselves as unready.
  2. Then, pods on these nodes thus get evicted.
  3. ...and workloads starts shifting around in the cluster, potentially triggering cluster-autoscaler, which will have a hard time sizing the cluster correctly as the amount of ready nodes keep changing based on the intermittent (OK/error) answers from the API servers.

@mnaser
Copy link
Contributor

mnaser commented Nov 15, 2023

@MPV is there any conceivable way we can do this while kepeing TCP load balancer monitors?

@mdbooth
Copy link
Contributor

mdbooth commented Nov 24, 2023

Another use case to consider: @seanschneeweiss is using AdditionalPorts on the API loadbalancer to expose SSH on the control plane nodes. If we switch to something other than TCP checks we need to consider that not all ports may be serving https.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 22, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 23, 2024
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

@k8s-ci-robot k8s-ci-robot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 22, 2024
@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

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
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants