The Embedded vCLS didn't power on in new created cluster as content with incorrect format in esxi /etc/hosts file .
search cancel

The Embedded vCLS didn't power on in new created cluster as content with incorrect format in esxi /etc/hosts file .

book

Article ID: 419657

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

The new created cluster didn't deployed the embedded vCLS VMs , and not any alarms in cluster's event and task UI .

As disable the retreat mode of cluster , the esxi host /var/run/log/infravisor.log complained logged spec.nodeName invalid value. 

YYYY-MM-DDTHH:MM:SS.58Z No(5) infravisor[2459511] time="YYYY-MM-DDTHH:MM:SS.956717Z" level=error msg="Failed to get resource from spec vcls.yaml: failed to decode pod from /etc/vmware/infravisor/manifests/vcls.yaml: ValidatePodCreate failed: [spec.nodeName: Invalid value: \"F1. F2.com\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')]"  

Environment

vSphere 8.0U3

Cause

The host use /etc/hosts to resolve the esxi host fqdn .  but the fqdn has incorrect format . there is a space between F1. and F2 .

$ cat etc/hosts
# Do not modify this file directly, please use esxcli.
127.0.0.1       localhost.localdomain localhost
::1             localhost.localdomain localhost
##.##.##.##  F1. F2.com F1

Resolution

correct the fqdn name , enanle retreat mode then disable the retreat mode .  

Additional Information

Japanese KB: ESXi の /etc/hosts ファイルに誤った形式が含まれているため、新しく作成されたクラスターで組み込み vCLS が電源オンになりません