nvpnathan / py-vsphere-automation

8 stars 4 forks source link

Add DNS check for vCenter deployment and throw an error if it fails #1

Closed tkrausjr closed 4 years ago

tkrausjr commented 4 years ago

vCenter 7.0 will fail to start services if it cant resolve its own hostname with the DNS record configured in the parameters file.

If the deployed vCenter cant resolve the name used in VC_SYSTEM_NAME: with the DNS Server set in the VC_DNS_SERVERS: VCSA will fail to successfully come online. This is not good because of the amount of time it takes to deploy only to find out in the end you are missing an A Record.

Need to put a DNS check for this in the script and throw an error if we cant resolve VC_SYSTEM_NAME using the DNS server set in VC_DNS_SERVERS: