AKS icon indicating copy to clipboard operation
AKS copied to clipboard

TLS handshake timeout again

Open amazaheri opened this issue 8 years ago • 26 comments

Kubectl stopped responding starting last night 😑

Central US 1.9.2

8f6558dc-8cae-41ea-b2a6-eeb38a584545

amazaheri avatar Mar 22 '18 21:03 amazaheri

Hi @amazaheri, I've seen this in the past weeks a lot, normally on lower-sized nodes. So out of interest, what node size do you have configured in this cluster? Thanks

Zimmergren avatar Mar 23 '18 07:03 Zimmergren

3, this one was running for a while and it went silent all of the sudden :)

amazaheri avatar Mar 23 '18 15:03 amazaheri

@slack any thoughts?

amazaheri avatar Mar 23 '18 15:03 amazaheri

@amazaheri sorry, I meant the size of the nodes (e.g. D2, A4, etc) :) I've experienced that when running A4 and up, my cluster is healther than if running A2, for example. (And I've got more than a dozen similar experiences with size combinations and cluster failures, unfortunately).

Zimmergren avatar Mar 23 '18 16:03 Zimmergren

@Zimmergren Hey! I've got the same issue. If there's anything to do with the size of the nodes, i am currently using B2ms.

LohithChanda avatar Mar 23 '18 16:03 LohithChanda

Interesting, I scaled out my cluster from 3 to 5 using Portal and I managed to connect again!

amazaheri avatar Mar 23 '18 16:03 amazaheri

I share that experience @amazaheri, that sometimes they self-heal correctly and all is fine. Sometimes not so much. While understanding it's a preview, I'm evaluating putting production workloads on top of it once it hits GA and if this happens as often as I'm getting it right now, scaling in and out and hoping for the best isn't my go-to plan ;-)

Zimmergren avatar Mar 23 '18 19:03 Zimmergren

yeap, it hit me again today

amazaheri avatar Mar 27 '18 01:03 amazaheri

we are running 2 clusters, one with 3x D32 nodes and other with 3x D12_v2_promo nodes. Seems like our d32 has no issues while d12 has that tls handshake error come and go. Both in central us

giorgited avatar Mar 27 '18 04:03 giorgited

Recently I switched staging cluster from self-created with kubeadm to AKS and I saw this error every day. The cluster is the same size as before and I didn't think that it would be this much troublesome.

sercand avatar May 03 '18 14:05 sercand

Hey guys, @sercand @giorgited @amazaheri @Zimmergren @LohithChanda

I am collecting info on the 'Unable to connect to the server: net/http: TLS handshake timeout' issue, costs, and workarounds in a question over on StackOverflow: https://stackoverflow.com/questions/50726534/why-cant-kubectl-connect-to-the-azure-aks-server-managing-my-cluster-net-http

If you guys could answer a couple of these (here or above on SOF)

  1. Have you had the TLS issue impact your Clusters more than once?
  2. How long did it take before your Cluster was back up and could be connected to (what was the outage duration)?
  3. Did it 'heal' itself / resolve / come back to life on it's own or did you have to post a support ticket — and wait for MS to fix it?
  4. If support, how long was that ticket posted for before the problem was solved on your Cluster?
  5. Did you notice anything weird with your CPU / Network IO dropping but your disk usage jumping higher?
  6. Would you be in favor of allowing AKS preview customers to create higher Severity Help Tickets (For this specific issue only) regardless of their support plan in order to achieve a more timely solution?

Just noticed amazaheri's solution (which also worked for me) and added it to my writeup. I still think allowing upgraded support tickets for the issue would be appropriate but I am unsure of the costs of that on MS side.

necevil avatar Jun 06 '18 18:06 necevil

  1. Only once
  2. 5 days. It was staging cluster not a big deal.
  3. It was fixed after support ticket
  4. 18 hours
  5. No

sercand avatar Jun 06 '18 20:06 sercand

  1. I had this issue 3 to 4 times.
  2. The cluster wasn't available until i scaled out the no. of nodes. (Accessed it with the dashboard in the mean time)
  3. Didn't post any support tickets.
  4. No

LohithChanda avatar Jun 06 '18 20:06 LohithChanda

  1. At least four times in my central cluster the last couple of weeks. More, if I count other clusters too.
  2. It varies. Sometimes it's a matter of minutes; sometimes it's a matter of hours or even days.
  3. It varies. Sometimes I re-create the cluster to get quickly up an running; Other times I've posted a support ticket where they helped fix it, and sometimes after some time it has started working again.
  4. Don't remember.
  5. No.
  6. No.

Zimmergren avatar Jun 06 '18 21:06 Zimmergren

@LohithChanda thanks! Added the fact that Scaling up your number of nodes actually worked to my list of workaround results over on StackOverflow (https://stackoverflow.com/questions/50726534/unable-to-connect-net-http-tls-handshake-timeout-why-cant-kubectl-connect?answertab=votes#tab-top).

@Zimmergren @sercand have you guys tried scaling? Thanks for the response guys. Will concatenate the other stuff as hopefully a few more posts / user instances roll in so hopefully people know more about what to expect when it strikes.

necevil avatar Jun 06 '18 22:06 necevil

@necevil yup. It worked sometimes, where the cluster self-healed a period after scaling. It failed sometimes with the same errors. I don't consider scaling a solution to this problem, as that causes other challenges depending on how things are set up. I wouldn't trust that routine for a GA workload, that's for sure. In the current preview, it's a bit wild west (and expected), and I'm happy to blow up the cluster and create a new one when this fails continuously.

Zimmergren avatar Jun 07 '18 05:06 Zimmergren

@necevil I tried scaling on the portal but it failed to scale.

sercand avatar Jun 07 '18 05:06 sercand

@Zimmergren updated my answer regarding scaling with your comment and also indicated that the actual Act of scaling itself may fail like it did in @sercand 's case.

Can you guys think of anything else that I should add over there that I have missed thus far?

Seems like the one piece of this that's critical is having the resources / self documentation in place to quickly re-deploy whatever clusters get impacted since the scaling may not be applicable in all scenarios (may break stuff) and may not even work to begin with.

necevil avatar Jun 07 '18 15:06 necevil

Have any of you guys developed scripts / resources that you utilize to quickly re-deploy your Clusters?

I am starting to think about what it might take to automate that process but figured I would see if anyone has done any prior art / work on the subject.

necevil avatar Jun 07 '18 16:06 necevil

@necevil yup, I'm re-creating a cluster in a matter of minutes and have everything back up and running without any data loss. It's pretty slick, even though it shouldn't be necessary. I cannot share the details of it right now without cleaning it up first, but am happy to help any effort to automate things if you've got a new project going.

Zimmergren avatar Jun 07 '18 18:06 Zimmergren