Bug#916516: systemd: timedatectl mangles IPv6 address of NTP server

Ben Harris bjh21 at bjh21.me.uk
Sat Dec 15 10:24:56 GMT 2018


Package: systemd
Version: 239-13
Severity: minor
Tags: ipv6

Dear Maintainer,

I have configured timesyncd to use sntp.cam.ac.uk as an NTP server (see 
configuration below).  That name resolves to 2001:630:212:8::123:20.  
However, if I run "timedatectl timesync-status" I get a different 
address:

wraith:~$ timedatectl timesync-status | head -1
       Server: ::2001:630:212:8:0:0 (sntp.cam.ac.uk)

Something similar happens if I run "timedatectl show-timesync":

wraith:~$ timedatectl show-timesync | grep ^ServerAddress=
ServerAddress=::2001:630:212:8:0:0

It looks like the NTP server address is being shifted right by 32 bits:

right: 2001:0630:0212:0008:0000:0000:0123:0020
wrong: 0000:0000:2001:0630:0212:0008:0000:0000

Since timesyncd is working (and ::2001:630:212:8:0:0 isn't a working NTP 
server), it seems that the problem is only in the display of IPv6 
addresses in timedatectl.

-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.18.0-1-686-pae (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser          3.118
ii  libacl1          2.2.52-3+b1
ii  libapparmor1     2.13.1-3+b1
ii  libaudit1        1:2.8.4-2
ii  libblkid1        2.32.1-0.1
ii  libc6            2.27-8
ii  libcap2          1:2.25-1.2
ii  libcryptsetup12  2:2.0.5-2
ii  libgcrypt20      1.8.4-4
ii  libgnutls30      3.5.19-1+b1
ii  libgpg-error0    1.32-3
ii  libidn11         1.33-2.2
ii  libip4tc0        1.8.2-2
ii  libkmod2         25-2
ii  liblz4-1         1.8.2-1
ii  liblzma5         5.2.2-1.3
ii  libmount1        2.32.1-0.1
ii  libpam0g         1.1.8-3.8
ii  libseccomp2      2.3.3-3
ii  libselinux1      2.8-1+b1
ii  libsystemd0      239-13
ii  mount            2.32.1-0.1
ii  procps           2:3.3.15-2
ii  util-linux       2.32.1-0.1

Versions of packages systemd recommends:
ii  dbus            1.12.10-1
ii  libpam-systemd  239-13

Versions of packages systemd suggests:
ii  policykit-1        0.105-22
pn  systemd-container  <none>

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.132
ii  udev             239-13

-- Configuration Files:
/etc/systemd/timesyncd.conf changed:
[Time]
NTP=sntp.cam.ac.uk


-- no debconf information



More information about the Pkg-systemd-maintainers mailing list