/var/run/log/etcd.log
health check for peer <ETCD_MEMBER> could not connect: dial tcp: lookup <ESXi_HOST> on <ESXi_HOST_IP>:53: no such host
/var/run/log/vmkernel.log
cpu84:(1001394011)VmkAccess: SocketInetConnect:149: etcd: running in etcdDom(49): ipAddr = <IPV6_ADDRESS>::, port = 9: Access denied by vmkernel access control policy
/var/run/log/clusterAgent.log
No(5) clusterAgent[525412]: WARN grpc: addrConn.createTransport failed to connect to <ESXi_HOST>:2379 <nil> 0 <nil>}. Err :connection error: desc = "transport: Error while dialing dial tcp: lookup <ESXi_HOST>: no such host". Reconnecting...
YYYY-MM-DDTHH:MM:SSZ No(5) clusterAgent[525412]: ERROR Failed to prepare supervisor state
/vmfs/volumes/#######-####-######/cache/datafiles/esx#cluster_agent_data/etcd.yml) will reference the host's previous name:
initial-cluster: <ETCD_CLUSTER_ID>=https://<OLD_HOSTNAME>:2380{
"state": "hosted",
"cluster_id": "<CLUSTER_ID>",
"is_in_alarm": true,
"alarm_cause": "Timeout",
"is_in_cluster": true,
"members": {
"available": false
}
}
VMware vSphere ESXi 8.x
/var/run/log/etcd.logetcd.yml configuration file:
find /vmfs/volumes -name etcd.yml -print | head -n 1/vmfs/volumes/<VMFS_VOLUME_ID>/cache/datafiles/esx#cluster_agent_data/etcd.ymlinitial-cluster: <ETCD_CLUSTER_ID>=https://<OLD_HOSTNAME>:2380/usr/lib/vmware/clusterAgent/bin/clusterAdmin cluster forceStandalone (Successful execution results in no output being generated)service-control --restart vpxd etcd.yaml file referenced above has the current hostname. /var/log/etcd.log no longer has messages referring to not being able to connect to the old hostname/usr/lib/vmware/clusterAgent/bin/clusterAdmin cluster status"members": [
{
"peer_address": "<ESX_HOST1>:2380",
"api_address": "<ESX_HOST1>:2379",
"reachable": true,
"primary": "no",
"learner": false
},
{
"peer_address": "<ESX_HOST2>:2380",
"api_address": "<ESX_HOST2>:2379",
"reachable": true,
"primary": "yes",
"learner": false
},
{
"peer_address": "<ESX_HOST3>:2380",
"api_address": "<ESX_HOST3>:2379",
"reachable": true,
"primary": "no",
"learner": false
}
In a vSphere 8 environment, even if no K8S-related services or applications are in use, the cluster will still designate three hosts as etcd nodes and activate the etcdClientComm and etcdPeerComm services on them.
The command to check the etcd cluster status on the ESXi host : /usr/lib/vmware/clusterAgent/bin/clusterAdmin cluster status