'praefect check' NTP_HOST doesn't work with praefect['env'] in gitlab.rb
Context: gitaly cluster in a private networking behind Proxy, we use our own NTP server.
Issue:
'praefect check' command fatal error in checking clock synchronization:
Checking clock synchronization - checks if system clock is in sync with NTP service. You can use NTP_HOST env var to provide NTP service URL to query and DRIFT_THRESHOLD to provide allowed drift as a duration (1ms, 20sec, etc.) [fatal]
2 ways to add NTP_HOST:
- in gitlab.rb. It doesn't work, always fatal error
praefect['env'] = {
"NTP_HOST" => "ntp.example.com"
}
- in system env. It works with checking pass
export NTP_HOST=ntp.example.com
Expected:
It works with praefect['env'] as all-in-one configuration.
related issue: #4273