[Bug 1832053] Re: systemd dhclient hook is causing md5sum cmds in inexistent files
Rafael David Tinoco
rafaeldtinoco at kernelpath.com
Thu Jul 18 12:57:10 UTC 2019
*** This bug is a duplicate of bug 1832050 ***
https://bugs.launchpad.net/bugs/1832050
** Also affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Also affects: chrony (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: Ubuntu Eoan
** Changed in: chrony (Ubuntu Eoan)
Status: New => In Progress
** Changed in: systemd (Ubuntu Eoan)
Status: New => In Progress
** This bug has been marked a duplicate of bug 1832050
chrony autopkgtest "time-sources-from-dhcp-servers" fails (produces stderr)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1832053
Title:
systemd dhclient hook is causing md5sum cmds in inexistent files
Status in Ubuntu:
Confirmed
Status in chrony package in Ubuntu:
In Progress
Status in systemd package in Ubuntu:
In Progress
Status in chrony source package in Eoan:
In Progress
Status in systemd source package in Eoan:
In Progress
Bug description:
I have discovered this issue by doing investigation for the BUG:
https://bugs.launchpad.net/ubuntu/+bug/1832050
"""
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/dhcpd.conf
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=""/INTERFACESv4="dummy0"/' /etc/default/isc-
dhcp-server
and
$ systemctl restart isc-dhcp-server
$ dhclient dummy0 <- problem happens here
"""
When trying a simple dhclient running on a bridge called "teste":
(c)inaddy at eoanchrony:~/work/sources/ubuntu/chrony/debian/tests$ sudo dhclient teste
md5sum: /run/systemd/resolved.conf.d/isc-dhcp-v4-teste.conf: No such file or directory
md5sum: /run/systemd/resolved.conf.d/isc-dhcp-v6-teste.conf: No such file or directory
md5sum: /run/systemd/resolved.conf.d/isc-dhcp-v4-teste.conf: No such file or directory
md5sum: /run/systemd/resolved.conf.d/isc-dhcp-v6-teste.conf: No such file or directory
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
I believe commit
+systemd (240-6ubuntu9) eoan; urgency=medium
caused this issue with a patch to file "debian/extra/dhclient-enter-
resolved-hook"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1832053/+subscriptions
More information about the foundations-bugs
mailing list