Environment details retrieval for the given hostname Failed <VCF Operations FQDN>./var/log/vmware/vcf/domainmanager/domainmanager.log, IP address of VCF Operations is returned in the "address" field instead of the expected FQDN: Received VCF Operations cluster status: {"nodes_states":[{"name":"<node name>","address":"<ip address>","uuid":"<uuid>","role":"MASTER","state":"CONFIGURED"}],"cluster_state":"INITIALIZED"}"......GET_ENVIRONMENT_BY_HOSTNAME_FAILED Environment details retrieval for the given hostname failed <VCF Operations FQDN>com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Environment details retrieval for the given hostname failed <VCF Operations FQDN>nslookup <VCF Operations FQDN>nslookup <VCF Operations IP address>VMware Cloud Foundation 9.0.x
This issue occurs if VCF Operations was initially deployed using its IP address instead of its FQDN. This typically happens if DNS resolution fails during the initial bring-up process.
The VCF installer specifically relies on the VCF Operations FQDN to query and retrieve environment details from the Fleet Management appliance. The VCF installer begins by fetching all environment records from Fleet Management appliance and looks for a match against the VCF Operations FQDN. If there is a match, VCF installer uses that environment and adds VCF Operations collector to it.
If the VCF Operations was originally deployed using IP address, the environment details will be populated with the IP address instead of FQDN, which will prevent VCF installer from retrieving the correct VCF Operations environment details.
As a workaround, follow below steps to manually inject the FQDN entry into the Fleet Management appliance inventory database:
su - postgres/opt/vmware/vpostgres/current/bin/psql -U postgres vrlcmselect * from vm_lcops_node_properties;insert into vm_lcops_node_properties (node_vmid, value, key)values ('<node_vmid>', '<FQDN>', 'hostName');Retry the failed step in VCF installer after applying the workaround.