DNS/NTP configuration/validation fails as "ntpq -pn" command fails
search cancel

DNS/NTP configuration/validation fails as "ntpq -pn" command fails

book

Article ID: 313348

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:

DNS/NTP configuration/validation fails with error in logs:
"Failed to validate ntp sync using [<ntp server>] on <host name>"
or
"NTP sync command output is blank. Time synchronization of the NTP servers [<ntp server>] failed on the entity <host ip>".


Environment

VMware Cloud Foundation 3.11

Cause

ntpq command failure. Before doing NTP configuration, the validation API validates if the incoming NTP server can be configured on VCF components.

Resolution

By default NTP sync validation is enabled. Disable the NTP sync validation by following the below mentioned steps:

  1. Login to SDDC Manager Virtual Machine using ‘VCF’ account. Switch to ‘root’ account.

  2. Take backup of operations manager configuration file using the command (The location can be changed to some other place if needed):

cp /opt/vmware/vcf/operationsmanager/application-prod.properties /home/vcf/application-prod.properties.backup

(This path is changed in the 4.x version)

  1. Append the following properties in operations manager configuration file (/opt/vmware/vcf/operationsmanager/application-prod.properties).

ntp.config.skip.validation=true

  1. Restart operations manager service.

systemctl restart operationsmanager

Run NTP configuration validation again.