Skip to content
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

No way to configure timesyncd specifically #2978

Closed
ubuntu-server-builder opened this issue May 11, 2023 · 1 comment
Closed

No way to configure timesyncd specifically #2978

ubuntu-server-builder opened this issue May 11, 2023 · 1 comment
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1711466

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = None
assignee_name = None
date_closed = 2023-05-05T09:08:45.744126+00:00
date_created = 2017-08-17T21:41:12.404752+00:00
date_fix_committed = 2023-05-05T09:08:45.744126+00:00
date_fix_released = 2023-05-05T09:08:45.744126+00:00
id = 1711466
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1711466
milestone = None
owner = andreserl
owner_name = Andres Rodriguez
private = False
status = fix_released
submitter = andreserl
submitter_name = Andres Rodriguez
tags = []
duplicates = []

Launchpad user Andres Rodriguez(andreserl) wrote on 2017-08-17T21:41:12.404752+00:00

Ubuntu (starting from Xenial), uses timesyncd by default as a NTP client.

When configuring NTP, instead of configuring Ubuntu's default NTP client, it installs and configures 'ntp' daemon. In Ubuntu Core, however, it configures 'timesyncd' (obviously) because Ubuntu Core doesn't support 'ntp'.

First, it would be nice to have consistency between both Ubuntu and Ubuntu Core and configure timesyncd (as it is the default anyway).

Second, lets imagine the use case scenario where a image is configured with NTP and you have an NTP snap or a snap that also needs to run NTP.

In Ubuntu core this works nicely because the OS' uses timesyncd as time source while the snap would provided NTP services from the snap itself to its client.

However, in Ubuntu this doesn't work nicely because 'ntp' is running in the host as an NTP client, however, the snap having NTP inside needs to provide NTP services, but it won't be able to provided that the host OS also has 'ntp' installed.

As such, it would be nice to either keep consistency (and configure timesyncd for both Ubuntu Core and Ubuntu), or have the ability to specifically configure 'timesyncd' instead of 'ntpd'.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 11, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user James Falcon(falcojr) wrote on 2023-05-05T09:08:39.055145+00:00

cc_ntp.py allows for configuring timesyncd and provides defaults for each distro. This was addressed in https://bugs.launchpad.net/cloud-init/+bug/1749722

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant