chrony.service doesn't start on LXD container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chrony (Ubuntu) |
Fix Released
|
High
|
Christian Ehrhardt |
Bug Description
As you can see below, there seems some problem with adjtimex on LXD container.
sudo systemctl status chrony.service
● chrony.service - LSB: Controls chronyd NTP time daemon
Loaded: loaded (/etc/init.
Active: active (exited) since Tue 2016-06-07 11:26:24 KST; 4min 33s ago
Docs: man:systemd-
Process: 1849 ExecStop=
Process: 1855 ExecStart=
Jun 07 11:26:24 ntp systemd[1]: Starting LSB: Controls chronyd NTP time daemon...
Jun 07 11:26:24 ntp chronyd[1861]: chronyd version 2.1.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -DEBUG +ASYNCDNS +IPV6 +SECHASH)
Jun 07 11:26:24 ntp chrony[1855]: adjtimex() failed
Jun 07 11:26:24 ntp systemd[1]: Started LSB: Controls chronyd NTP time daemon.
Jun 07 11:30:40 ntp systemd[1]: Started LSB: Controls chronyd NTP time daemon.
adjtimex -p
mode: 0
offset: -1511319
frequency: -205143
maxerror: 140500
esterror: 0
status: 24577
time_constant: 7
precision: 1
tolerance: 32768000
tick: 10000
raw time: 1465268304s 620580175us = 1465268304.
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
dpkg -l | egrep 'chrony|adjtimex'
ii adjtimex 1.29-7 amd64 kernel time variables configuration utility
ii chrony 2.1.1-1 amd64 Versatile implementation of the Network Time Protocol
Changed in chrony (Ubuntu): | |
assignee: | nobody → ChristianEhrhardt (paelzer) |
importance: | Undecided → High |
ntp seems to have the similar issue but does not stop the service.
Since LXC container is limited to access kernel variables, it might be difficult to make it.
sudo systemctl status ntp sysv-generator( 8) /etc/init. d/ntp stop (code=exited, status=0/SUCCESS) /etc/init. d/ntp start (code=exited, status=0/SUCCESS) slice/ntp. service
● ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
Active: active (running) since Tue 2016-06-07 12:20:52 KST; 4s ago
Docs: man:systemd-
Process: 6567 ExecStop=
Process: 6577 ExecStart=
Tasks: 2
Memory: 648.0K
CPU: 46ms
CGroup: /system.
└─6587 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 113:117
Jun 07 12:20:54 ntp ntpd[6587]: Soliciting pool server 211.233.84.186
Jun 07 12:20:54 ntp ntpd[6587]: Soliciting pool server 211.233.40.78
Jun 07 12:20:55 ntp ntpd[6587]: Soliciting pool server 80.241.0.72
Jun 07 12:20:55 ntp ntpd[6587]: Soliciting pool server 118.67.201.10
Jun 07 12:20:55 ntp ntpd[6587]: Soliciting pool server 218.234.23.44
Jun 07 12:20:55 ntp ntpd[6587]: adj_systime: Operation not permitted
Jun 07 12:20:56 ntp ntpd[6587]: Soliciting pool server 82.200.209.236
Jun 07 12:20:56 ntp ntpd[6587]: Soliciting pool server 62.201.225.9
Jun 07 12:20:56 ntp ntpd[6587]: Soliciting pool server 160.16.101.116
Jun 07 12:20:56 ntp ntpd[6587]: Soliciting pool server 106.247.248.106