AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[BUG] Fix NodeNotReadyDetected NPD script failing due to case mismatch in node hostnames

Open aritraghosh opened this issue 1 year ago • 6 comments

Symptom: "NodeNotReadyDetected" events appear on some nodes, despite the nodes being in a healthy state.

Root Cause: These false positive events are triggered when the NPD (Node Problem Detector) plugin attempts to run diagnostics but fails with exit code 1 due to a case sensitivity mismatch between the uppercase hexadecimal node number in the local hostname and the lowercase version stored in Kubernetes.

Action Needed: None. This issue is being fixed and will be released soon. The bug will be closed once the fix is rolled out to all environments.

aritraghosh avatar May 04 '25 02:05 aritraghosh

Hi, may I ask if you guy have ETA for this fix?

duythai2108 avatar May 08 '25 09:05 duythai2108

The fix is rolling out, it should be in all regions in ~2 weeks

aritraghosh avatar May 09 '25 16:05 aritraghosh

hi ! Thanks a lot to share this issue ! Is it possible to know what's the error log ? In my case I have something like :

_Running Not Ready checks 2 times with 10s interval... Running Not Ready check 1 of 2... Checking if node is in Ready state... 
ERROR: Failed to get node status using kubectl. API Server may not be reachable.
Not Ready check 1 failed (failures: 1/2) Running Not Ready check 2 of 2... Checking if node is in Ready state... 
ERROR: Failed to get node status using kubectl. API Server may not be reachable. 
Not Ready check 2 failed (failures: 2/2) Not Ready check summary: 2 failures out of 2 checks Node Not Ready detected
(2/2 checks failed) Checking external DNS resolution for www.microsoft.com... Successfully resolved external DNS name: www.microsoft.com Checking node-to-node connectivity... Found another node IP to test: MY_INTERNAL_IP Testing connectivity to node MY_INTERNAL_IP... Successfully connected to node MY_INTERNAL_IP_ 

It happen since last week :( I also confirme that all my nodes are in Ready State and I was able to contact API Server / Restart the cluster

ttestu avatar May 12 '25 06:05 ttestu

hi ! Thanks a lot to share this issue ! Is it possible to know what's the error log ? In my case I have something like :

_Running Not Ready checks 2 times with 10s interval... Running Not Ready check 1 of 2... Checking if node is in Ready state... 
ERROR: Failed to get node status using kubectl. API Server may not be reachable.
Not Ready check 1 failed (failures: 1/2) Running Not Ready check 2 of 2... Checking if node is in Ready state... 
ERROR: Failed to get node status using kubectl. API Server may not be reachable. 
Not Ready check 2 failed (failures: 2/2) Not Ready check summary: 2 failures out of 2 checks Node Not Ready detected
(2/2 checks failed) Checking external DNS resolution for www.microsoft.com... Successfully resolved external DNS name: www.microsoft.com Checking node-to-node connectivity... Found another node IP to test: MY_INTERNAL_IP Testing connectivity to node MY_INTERNAL_IP... Successfully connected to node MY_INTERNAL_IP_ 

It happen since last week :( I also confirme that all my nodes are in Ready State and I was able to contact API Server / Restart the cluster

FYI: The error logs like below: "Failed to get node status using kubectl. API Server may not be reachable".

chenlong0715 avatar May 13 '25 02:05 chenlong0715

The fix has rolled out. Please check if your Node Pool or Cluster is in a failed state. AKS Operator is responsible for updating the VM Extension that includes NPD. If the Node Pool or Cluster is in a failed state then AKS Operator won't touch the Node Pool and the nodes won't get the updated extension/NPD.

davefellows avatar May 19 '25 17:05 davefellows

Thanks for reaching out. I'm closing this issue as it was marked with "resolution/fix-released" and it hasn't had activity for 7 days.