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

Removing Node Pool from Cluster Breaks Ingress Conroller #649

Closed
dacox opened this issue Feb 26, 2019 · 9 comments
Closed

Removing Node Pool from Cluster Breaks Ingress Conroller #649

dacox opened this issue Feb 26, 2019 · 9 comments
Assignees
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

@dacox
Copy link

dacox commented Feb 26, 2019

Hi everyone,

we're currently on 1.11.6-gke.11. We've had some issues with gce-ingress in the past, and after a recent outage are trying to dig into the root cause.

We currently have a handful of Node Pools and use an Ingress to map traffic to two services in our cluster. This has created the Cloud Load Balancer with two Backend Services with one health check each. Each Backend Service points to the same Instance Group that is also created by the controller (am I getting this right?).

As I understand, because our Service's have externalTrafficPolicy=Cluster (default), both Backend Services show all nodes in the Cluster as healthy, not just the ones that pertain to our Services.

We recently removed a Node Pool from the Cluster. To do this, we cordoned each node in the pool and then drained them. A few hours later we removed the node pool.

Immediately upon deleting the pool, we experienced a large amount of downtime. It did not seem to be resolved when the last node went offline. At one point, we saw that both Backend Services reported 0/0 as healthy.

After about half an hour, we were able to stop the fire by kubectl delete ingress-myingress and then re-creating it.

We now understand that we would get some 502s when the nodes were being deleted due to our externalTrafficPolicy. What we are having a hard time grappling with is why the outage did not recover until we re-created the ingress.

Cheers!

@MrHohn
Copy link
Member

MrHohn commented Feb 28, 2019

We recently removed a Node Pool from the Cluster. To do this, we cordoned each node in the pool and then drained them. A few hours later we removed the node pool.

Humm, I thought cordoning a node should be enough for GCE Ingress controller to remove it from the target instance group, such that it shouldn't be receiving request/healthcheck. @freehan Is it not the case?

Immediately upon deleting the pool, we experienced a large amount of downtime. It did not seem to be resolved when the last node went offline. At one point, we saw that both Backend Services reported 0/0 as healthy.

While I understand instances that being terminated may fail health check, I'm also not understanding why the new nodes (assuming there are multiple node pools?) would become unhealthy as well, and why the LB doesn't self-resolve when the last node (for the old node pool) went offline. Were the nodes from new pool not added to the target instance group?

@dacox
Copy link
Author

dacox commented Mar 3, 2019

@MrHohn Yes, we thought so too. I have since created one or two test clusters to try and reproduce the issue, but so far haven't been able to. However, this is not the first time we've been struck by this issue - it also occurred once during a rolling GKE node upgrade.

The part that is confusing is that all of the remaining nodes seemed fine, but the load balancer seemed to think differently. For some context, there were three node pools originally. We added one, migrated some workloads to it, and spun down another.

The two services that are actually exposed to the load balancer actually reside solely on one pool, and that pool was no the one being shut down.

@freehan
Copy link
Contributor

freehan commented Mar 3, 2019

There was a recent bug #591
I will confirm and check if the fix is contained in the GKE version.

@dacox
Copy link
Author

dacox commented Mar 3, 2019

@freehan From my poking around the branches it doesn't seem like that fix has landed in a release yet, and I assume 1.11.6.gke-11 is also using v1.4.3

@freehan
Copy link
Contributor

freehan commented Mar 4, 2019

Just created a cherry pick PR.

@rramkumar1 rramkumar1 added the kind/bug Categorizes issue or PR as related to a bug. label Mar 4, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Jun 2, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/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 Jul 2, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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

6 participants