aks-engine icon indicating copy to clipboard operation
aks-engine copied to clipboard

AKS Kubernetes cluster nodes in NotReady State

Open unovip opened this issue 6 years ago • 8 comments

After resarting two nodes the kubernetes cluster stopped working, can't get the application to work on it.

the nodes show NotReady state: [apiusr@ipaas-bootstrap ~]$ kubectl get nodes NAME STATUS ROLES AGE VERSION k8s-agentpri-39331603-0 NotReady agent 366d v1.12.8 k8s-agentpri-39331603-1 NotReady agent 366d v1.12.8 k8s-agentpri-39331603-2 NotReady agent 366d v1.12.8 k8s-agentpri-39331603-3 NotReady agent 366d v1.12.8 k8s-agentpri-39331603-4 NotReady agent 366d v1.12.8 k8s-master-39331603-0 NotReady master 366d v1.12.8 k8s-master-39331603-1 NotReady master 366d v1.12.8 k8s-master-39331603-2 NotReady master 366d v1.12.8 [apiusr@ipaas-bootstrap ~]$

I need to get data from this cluster so it is important. How to get this cluster back online ?

cluster-provision.log

unovip avatar Aug 07 '20 15:08 unovip

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

welcome[bot] avatar Aug 07 '20 15:08 welcome[bot]

@unovip what does kubectl describe nodes show? Sometimes there will be a clue in the conditions or status fields. Otherwise, you should SSH into the nodes and check the kubelet logs to see if some error is being reported.

Also, this is the AKS Engine project, so I want to clarify if this is an AKS or AKS Engine cluster.

mboersma avatar Aug 10 '20 18:08 mboersma

Hi,

i checked the kubelet logs, i get this error in journalctl -xe -u kubelet:

580 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Unauthorized 295 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Node: Unauthorized 426 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:442: Failed to list *v1.Service: Unauthorized 513 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 697 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 136 10861 eviction_manager.go:247] eviction manager: failed to get get summary stats: failed to get node info: node "k8s-master-39331603-0" not 993 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 209 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 457 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 694 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 906 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 184 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 432 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 667 10861 kubelet.go:2236] node "k8s-master-39331603-0" not found 050 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:47: Failed to list *v1.Pod: Unauthorized 754 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:451: Failed to list *v1.Node: Unauthorized 910 10861 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go:442: Failed to list *v1.Service: Unauthorized lines 967-1001/1001 (END)

also in agents the same error: Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.641070 34955 kubelet.go:2236] node "k8s-agentpri-39331603-0" not found Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.741342 34955 kubelet.go:2236] node "k8s-agentpri-39331603-0" not found Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.841671 34955 kubelet.go:2236] node "k8s-agentpri-39331603-0" not found Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.934269 34955 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go: Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.934796 34955 reflector.go:125] k8s.io/kubernetes/pkg/kubelet/kubelet.go: Aug 12 07:43:05 k8s-agentpri-39331603-0 kubelet[34955]: E0812 07:43:05.941923 34955 kubelet.go:2236] node "k8s-agentpri-39331603-0" not found

i tried to restart the node, but did not help, i get this error on all nodes.

Please advise.

On Mon, Aug 10, 2020 at 9:24 PM Matt Boersma [email protected] wrote:

@unovip https://github.com/unovip what does kubectl describe nodes show? Sometimes there will be a clue in the conditions or status fields. Otherwise, you should SSH into the nodes and check the kubelet logs to see if some error is being reported.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/aks-engine/issues/3676#issuecomment-671513760, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALENUSV7MCTVNGVFPXAE6G3SAA3NHANCNFSM4PXYSWPQ .

-- "Be the change you wish to see in the world " - Mahatma Ghandi

unovip avatar Aug 12 '20 07:08 unovip

@unovip I'm not sure what the problem after restart is. We're only able to help with issues that are clearly aks-engine related, and it sounds like this is an AKS cluster. I suggest opening a support ticket with Azure, or creating an issue at the Azure/AKS repo.

mboersma avatar Aug 12 '20 15:08 mboersma

I don't know what is wrong. I tried all that I found on the internet, from restarting kubelet service to deleting the .kube and /etc/kubernetes folder, but with no use. did not help. (folders were renamed not deleted).

Does it help if I restart all the servers one by one starting with the masters then the workers ?

I mean my problem is only running a script against the Elastic search, pulling the data then decommissioning the cluster.

On Wed, Aug 12, 2020 at 6:16 PM Matt Boersma [email protected] wrote:

@unovip https://github.com/unovip I'm not sure what the problem after restart is. We're only able to help with issues that are clearly aks-engine related, and it sounds like this is an AKS cluster. I suggest opening a support ticket https://azure.microsoft.com/support/create-ticket/ with Azure, or creating an issue at the Azure/AKS https://github.com/Azure/AKS repo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Azure/aks-engine/issues/3676#issuecomment-672936447, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALENUSR27KRUXKHKP73SZJDSAKW5NANCNFSM4PXYSWPQ .

-- "Be the change you wish to see in the world " - Mahatma Ghandi

unovip avatar Aug 12 '20 15:08 unovip

I am having a similar error and in my case I believe it is caused by the Service Principal credentials being expired. I noticed this because it happened exactly 1 year after I created the cluster (using aks-engine) and according to the docs, the Service Principal credentials expire after 1 year by default. There is a page on the Azure docs on how to reset these credentials and how to apply the changes if the cluster was created with aks. I have tried to achieve the same result with aks-engine using either upgrade or scale commands but with no luck: is there a way to re-deploy the cluster with a modified apimodel without upgrading/scaling?

mfabiani-av avatar Sep 02 '20 08:09 mfabiani-av

is there a way to re-deploy the cluster with a modified apimodel without upgrading/scaling?

@mfabiani-av there isn't for AKS Engine, unfortunately.

mboersma avatar Sep 03 '20 22:09 mboersma

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 16 '20 03:11 stale[bot]