Error: TKG worker nodes enter NotReady state due to systemd-networkd and systemd-resolved stopping automatically
search cancel

Error: TKG worker nodes enter NotReady state due to systemd-networkd and systemd-resolved stopping automatically

book

Article ID: 435256

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Management VMware Telco Cloud Platform VMware vSphere ESXi

Issue/Introduction

  • After upgrading TKG, worker nodes intermittently enter a NotReady state.
  • The IP address assigned to the worker node is removed, and the systemd-networkd and systemd-resolved services stop automatically.

Environment

  • TKG 2.5

  • TCP: 3, 4.x, 4.0.1, 5.x, 5.0. 5.0.1, 5.0.2

Cause

  • A conflicting configuration file, /etc/systemd/network/99-no-dhcp-en.network, interferes with standard DHCP address acquisition and causes the network stack to flap and fail following address acquisition.

Resolution

  1. Create a backup or snapshot of the affected TKG worker node before proceeding with file system modifications.

  2. Log in to the affected worker node via SSH or console.

  3. Change to the network configuration directory:

    cd /etc/systemd/network/
    
  4. Move the conflicting configuration file to a backup location:

    sudo mv 99-no-dhcp-en.network /tmp/99-no-dhcp-en.network.bak
    
  5. Restart the networking services:

    sudo systemctl restart systemd-networkd systemd-resolved
    
  6. Verify that the node has re-acquired its IP address and returned to a Ready state:

    kubectl get nodes
    

 

For further assistance, visit Broadcom Support.