-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTP time sync in the future throws more into the future #8771
Comments
smira
added a commit
to smira/ntp
that referenced
this issue
May 22, 2024
The problem here is that `time.Duration` and `time.Time` types don't exactly match the NTP 64-bit time value, so the expected calculations for big time jumps (including across NTP eras) don't work properly. See: * https://www.eecis.udel.edu/~mills/y2k.html * https://www.eecis.udel.edu/~mills/time.html Ref: siderolabs/talos#8771 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
beevik
pushed a commit
to beevik/ntp
that referenced
this issue
May 23, 2024
The problem here is that `time.Duration` and `time.Time` types don't exactly match the NTP 64-bit time value, so the expected calculations for big time jumps (including across NTP eras) don't work properly. See: * https://www.eecis.udel.edu/~mills/y2k.html * https://www.eecis.udel.edu/~mills/time.html Ref: siderolabs/talos#8771 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira
added a commit
to smira/talos
that referenced
this issue
May 24, 2024
Logs: ``` [ 7.127481] [talos] adjusting time (jump) by -205704h26m36.111961385s via 162.159.200.1, state TIME_OK, status STA_NANO {"component": "controller-runtime", "controller":t} ``` Fix: beevik/ntp#47 Fixes: siderolabs#8771 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>#
smira
added a commit
to smira/talos
that referenced
this issue
May 28, 2024
Logs: ``` [ 7.127481] [talos] adjusting time (jump) by -205704h26m36.111961385s via 162.159.200.1, state TIME_OK, status STA_NANO {"component": "controller-runtime", "controller":t} ``` Fix: beevik/ntp#47 Fixes: siderolabs#8771 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit 01ea820)
smira
added a commit
to smira/talos
that referenced
this issue
May 29, 2024
Logs: ``` [ 7.127481] [talos] adjusting time (jump) by -205704h26m36.111961385s via 162.159.200.1, state TIME_OK, status STA_NANO {"component": "controller-runtime", "controller":t} ``` Fix: beevik/ntp#47 Fixes: siderolabs#8771 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit 01ea820)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Time before: 2047, time after 2160 🤯
Description
Logs
Environment
The text was updated successfully, but these errors were encountered: