VxRail: Fout bij toevoegen van knooppunt "Registering ESXi hosts with the vCenter"
Samenvatting: Fout bij het toevoegen van knooppunten "Registering ESXi hosts with the vCenter"
Symptomen
In de wizard voor het toevoegen van knooppunten mislukt het met het registreren van de host op het vCenter.
Probeer de host handmatig toe te voegen met behulp van ip op het vCenter door met de rechtermuisknop op het cluster te klikken en controleer of de onderstaande fout wordt weergegeven. Als u de onderstaande fout ziet, ligt het probleem tussen vCenter en de hostverbinding.
Oorzaak
In dayone.log
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.222863065Z stdout F 2023-02-27 09:13:51,222 [ERROR] <Dummy-194:140505078813256> utils.py wrapper() (101): log_call 1632, common.do.DoCaller.sync_call_do raise exception: {""code"": ""VMOMI_NOHOST"", ""message"": ""Cannot contact the specified host (hostname). The host may not be available on the network, a network configuration problem may exist, or the management services on this host may not be responding."", ""params"": [], ""context"": {}}"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.222987261Z stdout F 2023-02-27 09:13:51,222 [ERROR] <Dummy-194:140505078813256> utils.py wrapper() (102): log_call 1632 parameter args:('http://api-gateway:8080/rest/vxm/internal/do/v1/cluster/host', {'host_conn_info': {'host': 'xxx.xxx.xxx.xxx', 'username': 'root', 'p------d': 'xxxx'}, 'vc_conn_info': {'host': 'host.fqdn', 'username': 'administrator@vsphere.local', 'p------d': 'xxxx'}, 'cluster_id': 'domain-c1009', 'hostname': '', 'host_thumbprint': 'A8:D9:A2:A2:4A:xx:xx:xx:AD:66:FA:17:C5:xx:xx:xx:xx:Xx', 'vm_folder_name': '', 'vsan_name': None}) , kwargs:{} "
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223277247Z stdout F 2023-02-27 09:13:51,223 [ERROR] <Dummy-194:140505078813256> utils.py wrapper() (103): exception traceback:Traceback (most recent call last):"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223287491Z stdout F File ""/home/app/common/utils.py"", line 96, in wrapper"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223291474Z stdout F rets = func(*args, **kargs)"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223295171Z stdout F File ""/home/app/common/do.py"", line 339, in sync_call_do"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223299353Z stdout F raise DOError(**e)"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223303992Z stdout F common.do_exception.DOError: {""code"": ""VMOMI_NOHOST"", ""message"": ""Cannot contact the specified host (). The host may not be available on the network, a network configuration problem may exist, or the management services on this host may not be responding."", ""params"": [], ""context"": {}}"
"2023-02-27 09:13:52,066" microservice.nano-service "2023-02-27T09:13:51.223310194Z stdout F "
In short.term.log
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573245196Z stdout F 2023-02-27 09:14:24,573 [ERROR] <Dummy-194:140505078813256> utils.py wrapper() (103): exception traceback:Traceback (most recent call last):"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573255484Z stdout F File ""/home/app/hostaddintocluster/host_add_into_cluster.py"", line 138, in _do_add_host"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.57325807Z stdout F CLUSTER_ADD_HOST_URL), body)"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573260527Z stdout F File ""/home/app/common/utils.py"", line 104, in wrapper"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573263072Z stdout F raise e"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573265408Z stdout F File ""/home/app/common/utils.py"", line 96, in wrapper"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.57326773Z stdout F rets = func(*args, **kargs)"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573270116Z stdout F File ""/home/app/common/do.py"", line 339, in sync_call_do"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.57327265Z stdout F raise DOError(**e)"
"2023-02-27 09:14:25,066" microservice.nano-service "2023-02-27T09:14:24.573275908Z stdout F common.do_exception.DOError: {""code"": ""VMOMI_NOHOST"", ""message"": ""Cannot contact the specified host (host.fqdn). The host may not be available on the network, a network configuration problem may exist, or the management services on this host may not be responding."", ""params"": [], ""context"": {}}"Oplossing
Probleem hier is de verbinding tussen het vCenter en hosts.
Schakel de onderstaande poorten in op de firewall tussen de vCenter- en de ESXi-hosts.
https://kb.vmware.com/s/article/100518922 - SSH (TCP)
53 - DNS (TCP en UDP)
80 - HTTP (TCP/UDP)
902 - vCenter Server/VMware Infrastructure Client - UDP for ESX/ESXi Heartbeat (UDP en TCP)
903 - Remote Access to VM Console (TCP)
443 - Web Access (TCP)
U kunt testen met behulp van de onderstaande opdrachten op al deze poorten.
Van ESXI
nc -z vCenter IP port
Vanuit vCenter
curl -v telnet://esxiI_ip:Port