Improve NTP connectivity error message
On hosts where pool.ntp.org is not reachable, it's not obvious which
NTP server the clock synchronization check attempted to use and that
NTP_HOST
can be set. This commit improves the error message.
For example, with NTP_HOST
set to example.com
, we can see:
Before
FAIL: clock synchronization: praefect: query ntp: read udp 192.168.1.109:56948->93.184.216.34:123: i/o timeout
After
FAIL: clock synchronization: praefect: query ntp host example.com: read udp 192.168.1.109:56948->93.184.216.34:123: i/o timeout
Or if NTP_HOST
is not set:
Before
FAIL: clock synchronization: praefect: query ntp host: read udp 192.168.1.109:56948->51.255.142.175:123: i/o timeout
After
FAIL: clock synchronization: praefect: query ntp host pool.ntp.org: read udp 192.168.1.109:56948->51.255.142.175:123: i/o timeout (NTP_HOST was not set)
ZD: https://gitlab-federal-support.zendesk.com/agent/tickets/4135
Changelog: changed
Edited by Stan Hu