chrony autopkgtest "time-sources-from-dhcp-servers" fails (produces stderr)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Confirmed
|
Undecided
|
Dimitri John Ledkov | ||
Eoan |
Confirmed
|
Undecided
|
Dimitri John Ledkov |
Bug Description
iproute2 fix in -proposed (https:/
From autopkgtest output:
"""
Generating /etc/default/
Created symlink /etc/systemd/
Created symlink /etc/systemd/
Setting up autopkgtest-satdep (0) ...
Processing triggers for systemd (240-6ubuntu9) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
(Reading database ... 62774 files and directories currently installed.)
Removing autopkgtest-satdep (0) ...
autopkgtest [20:50:33]: test time-sources-
Preparing the dummy network interface and dhcpd configuration…
md5sum: /run/systemd/
md5sum: /run/systemd/
md5sum: /run/systemd/
md5sum: /run/systemd/
Done!
Check if the NTP server is made available to chronyd…
SUCCESS!
Release the current lease and check if the NTP server has been correctly removed…
SUCCESS!
"""
It is likely that the stdout from md5sum coming out of the dhclient command caused the "regression".
I have reproduced the issue by hand doing:
$ apt-get install isc-dhcp-server
$ modprobe dummy
$ ip link add name dummy0 type dummy
$ ip address add 192.168.1.1/24 dev dummy0
$ ip link set dev dummy0 up
cat <<EOF > /etc/dhcp/
default-lease-time 600;
max-lease-time 7200;
authorative;
subnet 192.168.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option ntp-servers 192.168.1.50;
range 192.168.1.42 192.168.1.100;
}
EOF
$ sed -i 's/INTERFACESv4
and
$ systemctl restart isc-dhcp-server
$ dhclient dummy0 <- problem happens here
It could be a "isc-dhcp-
Changed in ubuntu: | |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
importance: | Undecided → Medium |
status: | New → In Progress |
no longer affects: | ubuntu |
no longer affects: | Ubuntu Eoan |
Changed in systemd (Ubuntu Eoan): | |
status: | New → Confirmed |
Changed in chrony (Ubuntu Eoan): | |
status: | New → Confirmed |
assignee: | nobody → Dimitri John Ledkov (xnox) |
assignee: | Dimitri John Ledkov (xnox) → nobody |
Changed in systemd (Ubuntu Eoan): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in systemd (Ubuntu Eoan): | |
status: | Confirmed → Fix Released |
status: | Fix Released → Confirmed |
tags: | added: id-5d8a536c3eb49122f14145aa |
When trying a simple dhclient running on a bridge called "teste":
(c)inaddy@ eoanchrony: ~/work/ sources/ ubuntu/ chrony/ debian/ tests$ sudo dhclient teste resolved. conf.d/ isc-dhcp- v4-teste. conf: No such file or directory resolved. conf.d/ isc-dhcp- v6-teste. conf: No such file or directory resolved. conf.d/ isc-dhcp- v4-teste. conf: No such file or directory resolved. conf.d/ isc-dhcp- v6-teste. conf: No such file or directory
md5sum: /run/systemd/
md5sum: /run/systemd/
md5sum: /run/systemd/
md5sum: /run/systemd/
The problem is caused by the hook script:
/etc/dhcp/ dhclient- enter-hooks. d/resolved
In the following line:
md5sum $statedir/ isc-dhcp- v4-$interface. conf $statedir/ isc-dhcp- v6-$interface. conf &> $oldstate