Activity log for bug #1685484

Date Who What changed Old value New value Message
2017-04-22 11:54:12 slodki bug added bug
2017-04-22 11:57:09 slodki description I think it's regression for https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1578663 in zesty. 1. NTP servers are send via DHCP and seen by NM: $ nmcli con show connection1 | grep ntp DHCP4.OPTION[30]: requested_ntp_servers = 1 DHCP4.OPTION[31]: ntp_servers = 80.50.231.226 217.96.29.26 212.160.106.226 2. timesyncd is using hardcoded default NTP server: $ systemctl -n 200 status systemd-timesyncd.service * systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/systemd-timesyncd.service.d `-disable-with-time-daemon.conf Active: active (running) since Sat 2017-04-22 13:12:23 CEST; 16min ago Docs: man:systemd-timesyncd.service(8) Main PID: 576 (systemd-timesyn) Status: "Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com)." Tasks: 2 (limit: 4915) Memory: 1.5M CPU: 20ms CGroup: /system.slice/systemd-timesyncd.service `-576 /lib/systemd/systemd-timesyncd Apr 22 13:12:23 slodki systemd[1]: Starting Network Time Synchronization... Apr 22 13:12:23 slodki systemd[1]: Started Network Time Synchronization. Apr 22 13:12:53 slodki systemd-timesyncd[576]: Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com). 3. There are not other time sync deamons installed: $ cat /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf [Unit] # don't run timesyncd if we have another NTP daemon installed ConditionFileIsExecutable=!/usr/sbin/ntpd ConditionFileIsExecutable=!/usr/sbin/openntpd ConditionFileIsExecutable=!/usr/sbin/chronyd ConditionFileIsExecutable=!/usr/sbin/VBoxService $ ls -l /usr/sbin/{ntpd,openntpd,chronyd,VBoxService} ls: cannot access '/usr/sbin/ntpd': No such file or directory ls: cannot access '/usr/sbin/openntpd': No such file or directory ls: cannot access '/usr/sbin/chronyd': No such file or directory ls: cannot access '/usr/sbin/VBoxService': No such file or directory 4. There is only one default timesyncd.conf file with default values: $ sudo find / -iname \*timesync\* /etc/systemd/timesyncd.conf /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service /etc/dhcp/dhclient-exit-hooks.d/timesyncd /usr/share/man/man5/timesyncd.conf.d.5.gz /usr/share/man/man5/timesyncd.conf.5.gz /usr/share/man/man8/systemd-timesyncd.8.gz /usr/share/man/man8/systemd-timesyncd.service.8.gz /tmp/systemd-private-d029f63116924e99b9fc44caf622e299-systemd-timesyncd.service-6NwdRT /lib/systemd/systemd-timesyncd /lib/systemd/system/systemd-timesyncd.service /lib/systemd/system/systemd-timesyncd.service.d /var/tmp/systemd-private-d029f63116924e99b9fc44caf622e299-systemd-timesyncd.service-jz0q47 $ cat /etc/systemd/timesyncd.conf # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details. [Time] #NTP= #FallbackNTP=ntp.ubuntu.com 5. DHCP hook installed as /etc/dhcp/dhclient-exit-hooks.d/timesyncd is not working, TIMESYNCD_CONF=/run/systemd/timesyncd.conf.d/01-dhclient.conf is not created. 6. After manually executing steps from hook all works as expected: $ sudo mkdir -p /run/systemd/timesyncd.conf.d/ $ sudo cat <<EOF >/run/systemd/timesyncd.conf.d/01-dhclient.conf > [Time] > NTP=80.50.231.226 217.96.29.26 212.160.106.226 > EOF $ sudo systemctl try-restart systemd-timesyncd.service $ sudo systemctl status systemd-timesyncd.service * systemd-timesyncd.service - Network Time Synchronization Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/systemd-timesyncd.service.d `-disable-with-time-daemon.conf Active: active (running) since Sat 2017-04-22 13:47:28 CEST; 2min 6s ago Docs: man:systemd-timesyncd.service(8) Main PID: 3094 (systemd-timesyn) Status: "Synchronized to time server 80.50.231.226:123 (80.50.231.226)." Tasks: 2 (limit: 4915) Memory: 764.0K CPU: 19ms CGroup: /system.slice/systemd-timesyncd.service `-3094 /lib/systemd/systemd-timesyncd Apr 22 13:47:27 slodki systemd[1]: Starting Network Time Synchronization... Apr 22 13:47:28 slodki systemd[1]: Started Network Time Synchronization. Apr 22 13:47:28 slodki systemd-timesyncd[3094]: Synchronized to time server 80.50.231.226:123 (80.50.231.226). So ook is not triggered and NTP servers configuration not passed from DHCP/NM to timesyncd. Kubuntu zesty amd64, systemd 232-21ubuntu3, network-manager 1.4.4-1ubuntu3 I think it's regression for https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1578663 in zesty. 1. NTP servers are send via DHCP and seen by NM: $ nmcli con show connection1 | grep ntp DHCP4.OPTION[30]: requested_ntp_servers = 1 DHCP4.OPTION[31]: ntp_servers = 80.50.231.226 217.96.29.26 212.160.106.226 2. timesyncd is using hardcoded default NTP server: $ systemctl -n 200 status systemd-timesyncd.service * systemd-timesyncd.service - Network Time Synchronization    Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)   Drop-In: /lib/systemd/system/systemd-timesyncd.service.d            `-disable-with-time-daemon.conf    Active: active (running) since Sat 2017-04-22 13:12:23 CEST; 16min ago      Docs: man:systemd-timesyncd.service(8)  Main PID: 576 (systemd-timesyn)    Status: "Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com)."     Tasks: 2 (limit: 4915)    Memory: 1.5M       CPU: 20ms    CGroup: /system.slice/systemd-timesyncd.service            `-576 /lib/systemd/systemd-timesyncd Apr 22 13:12:23 slodki systemd[1]: Starting Network Time Synchronization... Apr 22 13:12:23 slodki systemd[1]: Started Network Time Synchronization. Apr 22 13:12:53 slodki systemd-timesyncd[576]: Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com). 3. There are not other time sync deamons installed: $ cat /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf [Unit] # don't run timesyncd if we have another NTP daemon installed ConditionFileIsExecutable=!/usr/sbin/ntpd ConditionFileIsExecutable=!/usr/sbin/openntpd ConditionFileIsExecutable=!/usr/sbin/chronyd ConditionFileIsExecutable=!/usr/sbin/VBoxService $ ls -l /usr/sbin/{ntpd,openntpd,chronyd,VBoxService} ls: cannot access '/usr/sbin/ntpd': No such file or directory ls: cannot access '/usr/sbin/openntpd': No such file or directory ls: cannot access '/usr/sbin/chronyd': No such file or directory ls: cannot access '/usr/sbin/VBoxService': No such file or directory 4. There is only one default timesyncd.conf file with default values: $ sudo find / -iname \*timesync\* /etc/systemd/timesyncd.conf /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service /etc/dhcp/dhclient-exit-hooks.d/timesyncd /usr/share/man/man5/timesyncd.conf.d.5.gz /usr/share/man/man5/timesyncd.conf.5.gz /usr/share/man/man8/systemd-timesyncd.8.gz /usr/share/man/man8/systemd-timesyncd.service.8.gz /tmp/systemd-private-d029f63116924e99b9fc44caf622e299-systemd-timesyncd.service-6NwdRT /lib/systemd/systemd-timesyncd /lib/systemd/system/systemd-timesyncd.service /lib/systemd/system/systemd-timesyncd.service.d /var/tmp/systemd-private-d029f63116924e99b9fc44caf622e299-systemd-timesyncd.service-jz0q47 $ cat /etc/systemd/timesyncd.conf # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # Entries in this file show the compile time defaults. # You can change settings by editing this file. # Defaults can be restored by simply deleting this file. # # See timesyncd.conf(5) for details. [Time] #NTP= #FallbackNTP=ntp.ubuntu.com 5. DHCP hook installed as /etc/dhcp/dhclient-exit-hooks.d/timesyncd is not working, TIMESYNCD_CONF=/run/systemd/timesyncd.conf.d/01-dhclient.conf is not created. 6. After manually executing steps from hook all works as expected: $ sudo mkdir -p /run/systemd/timesyncd.conf.d/ $ sudo cat <<EOF >/run/systemd/timesyncd.conf.d/01-dhclient.conf > [Time] > NTP=80.50.231.226 217.96.29.26 212.160.106.226 > EOF $ sudo systemctl try-restart systemd-timesyncd.service $ sudo systemctl status systemd-timesyncd.service * systemd-timesyncd.service - Network Time Synchronization    Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)   Drop-In: /lib/systemd/system/systemd-timesyncd.service.d            `-disable-with-time-daemon.conf    Active: active (running) since Sat 2017-04-22 13:47:28 CEST; 2min 6s ago      Docs: man:systemd-timesyncd.service(8)  Main PID: 3094 (systemd-timesyn)    Status: "Synchronized to time server 80.50.231.226:123 (80.50.231.226)."     Tasks: 2 (limit: 4915)    Memory: 764.0K       CPU: 19ms    CGroup: /system.slice/systemd-timesyncd.service            `-3094 /lib/systemd/systemd-timesyncd Apr 22 13:47:27 slodki systemd[1]: Starting Network Time Synchronization... Apr 22 13:47:28 slodki systemd[1]: Started Network Time Synchronization. Apr 22 13:47:28 slodki systemd-timesyncd[3094]: Synchronized to time server 80.50.231.226:123 (80.50.231.226). So hook is not triggered and NTP servers configuration not passed from DHCP/NM to timesyncd. Kubuntu zesty amd64, systemd 232-21ubuntu3, network-manager 1.4.4-1ubuntu3
2017-04-22 11:59:52 slodki bug added subscriber Martin Pitt
2017-04-28 20:13:59 Brian Murray systemd (Ubuntu): assignee Balint Reczey (rbalint)
2017-04-28 21:19:27 Brian Murray tags dhcp hook ntp regression-release timesyncd zesty dhcp hook ntp regression-release rls-aa-incoming timesyncd zesty
2017-05-03 12:02:51 Balint Reczey systemd (Ubuntu): status New In Progress
2017-05-03 19:43:18 Balint Reczey summary DHCP exit hook for setting NTP servers doesn't work DHCP exit hook for setting systemd-timesyncd NTP servers doesn't work
2017-05-03 19:48:18 Balint Reczey bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861769
2017-05-03 19:48:18 Balint Reczey bug task added systemd (Debian)
2017-05-03 19:48:34 Balint Reczey systemd (Ubuntu): status In Progress Confirmed
2017-05-03 23:27:21 Bug Watch Updater systemd (Debian): status Unknown New
2017-05-29 15:18:09 Bug Watch Updater systemd (Debian): status New Fix Released
2017-05-31 18:10:55 Bug Watch Updater systemd (Debian): status Fix Released New
2017-06-30 08:52:31 Philip Roche bug added subscriber Philip Roche
2017-07-27 15:55:06 Steve Langasek systemd (Ubuntu): importance Undecided Medium
2017-07-27 15:57:21 Dimitri John Ledkov bug task added network-manager (Ubuntu)
2017-07-27 15:57:26 Dimitri John Ledkov network-manager (Ubuntu): status New Confirmed
2017-07-27 15:57:35 Dimitri John Ledkov network-manager (Ubuntu): assignee Dimitri John Ledkov (xnox)
2017-07-27 15:57:42 Dimitri John Ledkov network-manager (Ubuntu): milestone ubuntu-17.09
2018-09-08 15:21:33 Paul Boot bug added subscriber Paul Boot
2018-10-11 10:02:05 Balint Reczey systemd (Ubuntu): assignee Balint Reczey (rbalint)
2018-10-11 10:02:16 Balint Reczey systemd (Ubuntu): importance Medium Low
2018-10-11 14:50:24 Brian Murray tags dhcp hook ntp regression-release rls-aa-incoming timesyncd zesty dhcp hook ntp regression-release timesyncd zesty
2019-03-06 14:36:57 Alex Tomlins bug added subscriber Alex Tomlins
2019-09-02 23:08:26 Bug Watch Updater systemd (Debian): status New Fix Released
2021-06-30 20:15:18 Dan Streetman systemd (Ubuntu): status Confirmed Won't Fix