/var/log/vmware/vcf/lcm/thirdparty/upgrades/########-####-####-####-############/sddcmanager-migration-app/logs/sddcmanager_migration_app_upgrade.log showsYYYY-MM-DDTHH:MM:SS+0000 DEBUG [vcf_lcm,################,####] [c.v.v.s.c.s.SecurityConfigurationServiceImpl,main] Security config retrieved {"fipsMode":false}YYYY-MM-DDTHH:MM:SS+0000 ERROR [vcf_lcm,################,####] [c.v.e.s.m.s.s.ExportDataService,main] Error while fetching inventory data org.springframework.web.reactive.function.client.WebClientRequestException: Failed to resolve 'localhost' [A(1)] at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:136) Suppressed: reacto.core.publisher.FluxOnAssembly$OnAssemblyException: Error has been observed at the following site(s): *__checkpoint ⇢ Request to GET http://localhost/inventory/export [DefaultWebClient]Original Stack Trace: at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:136) at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55)
VCF 5.2.2
The commented entries appear as:
#127.0.0.1 hostname.domain hostname localhost
#::1 hostname.domain hostname localhost ipv6-localhost ipv6-loopback
To resolve this issue, correct the /etc/hosts file configuration:
vcf user.root user:su -
cp -p /etc/hosts /etc/hosts.backup
/etc/hosts configuration:
cat /etc/hosts
/etc/hosts file:
vi /etc/hosts
# Begin /etc/hosts (network card version)127.0.0.1 localhost.localdomain127.0.0.1 localhost127.0.0.1 photon# End /etc/hosts (network card version)ESC, type :wq, press Enter).cat /etc/hosts
systemctl start postgres/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.shThe upgrade proceed successfully.
Note: A reboot of the SDDC manager might be needed after making the changes to the SDDC manager hosts file.
Before starting any upgrade to VCF 5.2.2.0, verify localhost entries exist:
grep -E "^127.0.0.1.*localhost" /etc/hosts
If no results appear, apply the resolution steps before upgrading.
Always create a snapshot of the SDDC Manager VM before making configuration changes. This provides a rollback option if issues occur.