-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Use systemd-timesyncd for Ubuntu 20.04 #9182
Conversation
/cc @rifelpet |
@@ -46,7 +46,10 @@ func (b *NTPBuilder) Build(c *fi.ModelBuilderContext) error { | |||
return nil | |||
} | |||
|
|||
if b.Distribution.IsDebianFamily() { | |||
if b.Distribution == distros.DistributionFocal { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if b.Distribution == distros.DistributionFocal { | |
if b.Distribution.IsUbuntu() && b.Distribution != distros.DistributionXenial && b.Distribution != distros.DistributionBionic { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be ok to leave it as is? Seems simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue would be whether a new major version of Ubuntu is used with kops 1.17. But I suppose code would have to be added to 1.17 to support it and that's not likely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. I don't think there is any plan to support any other distro in the near future. Thanks!
/lgtm |
Sounds good to me; I'm also wondering whether we should install this in more distros, but thinking about e.g. debian buster. In any case, this is a good change - thanks @hakman, and @johngmyers for reviewing! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman, justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This probably undid the effect of #8312 for Focal. We should see about configuring systemd-timesyncd with any cloud provider supplied time source. |
@johngmyers what do you mean? I think that is only in 1.18+. |
I mean the corresponding change in 1.18. |
I think my change in 1.18 kept the spirit and also fixed what was broken in that PR: |
…pstream-release-1.16 Automated cherry pick of #9182: Use systemd-timesyncd for Ubuntu 20.04
systemd-timesyncd
is the default service for clock synchronisation in Ubuntu 20.04. Installingntp
seems to makekops-configuration
crash as reported in #9180.We already use
systemd-timesyncd
for Ubuntu in 1.18 and this issue is not noticeable. Using it in 1.17 and 1.16 instead ofntp
seems the best way to go.kops/nodeup/pkg/model/ntp.go
Lines 60 to 64 in 8225736