feat: Increase ntpdate timeout

from default 2 s to 5 s:
> ntpdate[…]: no server suitable for synchronization found
This commit is contained in:
Philipp Hahn 2022-10-17 17:36:57 +02:00
parent 728cab3774
commit d5020d11bf

View File

@ -98,6 +98,6 @@ class KerberosConfigurator(ConflictChecker):
def synchronize_time_with_master(self, dc_ip: str) -> None:
userinfo_logger.info('Synchronizing time with the DC')
subprocess.check_output(
['ntpdate', '-bu', dc_ip],
['ntpdate', '-b', '-u', '-t', '5', dc_ip],
stderr=subprocess.STDOUT
)