"[Error Code = '1001', Error Message = ' NTP Service is not up', Affected Entities = '[]'.]"
/var/run/log/nsx-syslog.log shows the following error. 2023-02-02T07:05:19.343Z cfgAgent[2101387]: NSX 2101387 - [nsx@6876 comp="nsx-controller" subcomp="cfgAgent" tid="915AB700" level="error" errorCode="LCP01163"] dfw: Invalid ntp config command output err:0
2023-02-02T07:06:48.368Z cfgAgent[2101387]: NSX 2101387 - [nsx@6876 comp="nsx-controller" subcomp="cfgAgent" tid="915AB700" level="error"] vsipfw: VsipFWUtil.cpp:RunCommandWithTimeout():3242 Kill stuck child process /bin/check_ntp_cfg.sh
(ntpq -p) command is taking more than 30 seconds to show the output. Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware NSX
ntpq -p command to check the NTP status for Time-Based Policy, and the timeout is 30 seconds. This is a known issue impacting VMware NSX.
Workaround:
/etc/vmware/nsx/nsx-cfgagent.xml using the vi editor and changing the skip_ntp_check to true./etc/init.d/nsx-cfgagent stop
/etc/init.d/nsx-cfgagent start