Unable to get NTP server name and/or address

Bug #1973245 reported by Pierre Bouffard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

Interface 'timeserver-control' allows the user to retrieve partial information about NTP on the system (e.g. NTP, CanNTP and NTPSynchronized - via bus 'org.freedesktop.timedate1', see [1]).

However, it is not possible to retrieve the NTP server name and address. This uses bus 'org.freedesktop.timesync1'.

Would it be possible to either update existing interface 'timeserver-control' - or to add a new interface?

For reference, I'm running Ubuntu Core 20.04.

[1] https://www.freedesktop.org/software/systemd/man/org.freedesktop.timedate1.html

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Extending existing interface timeserver-control interface sounds reasonable to me.

Changed in snappy:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Hold on, I got confused. The timeserver-control already allows reading of all properties of the timedate1 (NTP, CanNTP, NTPSynchronized etc). I don't see server name and address in the freedesktop spec. Did you mean to get server name/address from elsewhere (e.g. read access to ntp config?)

Revision history for this message
Pierre Bouffard (bouff) wrote :

Hi Pawel,

As you pointed out, there are no issues reading from 'timedate1' (NTP, CanNTP, NTPSynchronized, etc).

Interface 'timeserver-control' doesn't allow reading of 'timesync1'.

This issue was raised for the ability to read 'ServerName', 'ServerAddress'... Basically looking to obtain the information displayed when running '$ timedatectl show-timesync --all'.

Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.