Repository navigation
Saat sapması: kontrol makinesi saatiyle bağımsız karşılaştırma (bayat chrony) - #10
Merged
Merged
Conversation
… chrony yeniden başlatma, açık seçenekle date -s Gerçek VM bulgusu: snapshot/rollback sonrası 13 gün geri saatte chronyc tracking sapmayı göstermedi. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorun (gerçek VM bulgusu)
Rollback'li ubuntutest'te sunucu saati 13 gün geride iken 0.1.1
durumntp_senkron=yes sapma_ms=0.0 secili_kaynak=yesdedi, plansaatiçermedi.chronyc tracking: "0.000000155 seconds slow", Ref time Oct 24 10:07 (sunucunun kendi yanlış saatinde).Kök neden (varsayım, LAB'da yeniden üretilemedi)
chrony'nin tüm sayıları (tracking, sources, Ref time, Last sample) kendi sistem saati çerçevesinde ve içten tutarlı. Snapshot/rollback ile saat ve chronyd durumu birlikte geri döner; chronyd yeni ölçüm yapmadığı sürece (poll aralığı uzun) eski, tutarlı sayıları gösterir: Ref time 10:07, şimdi 10:11, "bayat" görünmez. Sapmayı yalnız dışarıdaki bir referans (kontrol makinesi) görebilir. LAB konteynerinde gerçek chronyd/saat sıçraması yok; bu yüzden nedeni doğrulayamadım. VM'de doğrulama:
chronyc sources -v(LastRx),chronyc burst 4/4sonrasıchronyc tracking.Değişiklik
roles/ntp/tasks/skew.yml: hedefdate +%s- kontrolcüdate +%s; chrony'den bağımsız. Eşik 300 sn.durum: yenisaat_sapma_kontrolcuye_gore_sn=N|unknown; fark büyüksentp_senkron=no.preview/apply: fark > 300 sn ise plansaat+ uyarı (chrony göstermese de).apply: chrony bayat ise (kendi ölçümü sapma yok, kontrolcüye göre büyük fark) öncesystemctl restart chrony, sonra mevcut bekle + tek seferlikmakestep.utility_ntp_clock_from_controller(bool, varsayılan false): fark sürüyorsadate -u -s @<kontrolcü epoch>; chrony yeniden başlatma sonrası taze kaynakla doğruluyorsa dokunmaz (kontrol makinesi yanlış olabilir). Uyarı metinleri bunu söyler.date+chronyc), toplam 27/27 yeşil;test/run-all.sh, shellcheck, tutarlılık kontrolü yeşil.[Unreleased].DENENMEDİ
date -syolu,date -ssonrası chrony davranışı, RTC (hwclock) senkronu.Kural 5 gereği (saat adımlama mantığı, gerçek VM'de sınanmadı) otomatik birleşme AÇIK DEĞİL; Ziya birleştirir.
🤖 Generated with Claude Code