Your message dated Tue, 24 Jan 2023 13:37:06 +0000
with message-id <e1pkju2-008c8q...@fasolo.debian.org>
and subject line Bug#1022843: fixed in ifupdown 0.8.41
has caused the Debian Bug report #1022843,
regarding ifupdown: network down after systemctl restart
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1022843: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022843
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ifupdown
Version: 0.8.36
Severity: important
X-Debbugs-Cc: syso...@yandex.ru
Hello!
(Not sure why such rather important issue is not filled yet, but anyway. Sorry
if I'm creating duplicate.)
My network is down after running `systemctl restart networking` on fresh
installed Debian 11.5 (but the same issue is on Debian 10). There is no way to
start it with `systemctl start networking`. Not sure if this relevant but I'm
using static IPv4 config, no DHCP. The installation is very minimal without any
systemd-networkd or NetworkManager stuff.
The reason for this is that systemd unit file networking.service using `ifdown
-a` to stop network and then `ifup -a` to start it. According to the manual,
the first command unconditionally deconfigure _all_ interfaces defined in
/etc/network/interfaces, but the second one configure only interfaces which is
defined as "auto" in the configuraton and not as "allow-hotplug".
During the installation all interfaces (fixed PCI NICs too, because udev events
generated for PCI devices too [1]) in /etc/network/interfaces is created with
"allow-hotplug", so restarting networking with systemd leads to non-functional
network.
When using old-school `/etc/init.d/networking restart` (don't forget to set
SYSTEMCTL_SKIP_REDIRECT=1) the issue is not present. This is because of special
treatment for "allow-hotplug" interfaces in /etc/init.d/networking. See
ifup_hotplug () function. The functionality is lacking in systemd unit file.
Forgot to mention that the network starting normally during the system startup.
This is because of ifup@.service template unit which is started from udev rule
via /lib/udev/ifupdown-hotplug script which runs unit for specific interface.
This leads to running `ifup eth0`. When you run ifup this way, there is no need
to define interface as "auto".
Yes, everything can be fixed using "auto" instead of "allow-hotplug", but
"allow-hotplug" is set by Debian Installer [2]. This leads to the issue just
"by default".
Should we sync systemd unit file behaviour with old SysV script by implementing
something like ifup_hotplug() logic in unit file? Network must not be broken
after silly systemctl restart.
[1]
https://salsa.debian.org/installer-team/hw-detect/-/blob/master/net-hotplug.sh
[2]
https://salsa.debian.org/installer-team/netcfg/-/blob/master/write_interface.c
-- Package-specific info:
--- /etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
allow-hotplug eth0
iface eth0 inet static
address 172.17.0.3
netmask 255.255.0.0
gateway 172.17.0.1
--- /etc/network/interfaces.d/*:
cat: '/etc/network/interfaces.d/*': No such file or directory
--- up and down scripts installed:
/etc/network/if-down.d:
total 0
/etc/network/if-post-down.d:
total 0
/etc/network/if-pre-up.d:
total 0
/etc/network/if-up.d:
total 0
-- System Information:
Debian Release: 11.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.12.2 (SMP w/1 CPU thread)
Kernel taint flags: TAINT_FORCED_MODULE, TAINT_WARN, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ifupdown depends on:
ii adduser 3.118
ii iproute2 5.10.0-4
ii libc6 2.31-13+deb11u5
ii lsb-base 11.1.0
Versions of packages ifupdown recommends:
ii isc-dhcp-client [dhcp-client] 4.4.1-2.3+deb11u1
Versions of packages ifupdown suggests:
pn ppp <none>
pn rdnssd <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: ifupdown
Source-Version: 0.8.41
Done: Santiago Ruano Rincón <santi...@debian.org>
We believe that the bug you reported is fixed in the latest version of
ifupdown, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1022...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Ruano Rincón <santi...@debian.org> (supplier of updated ifupdown
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 24 Jan 2023 14:07:32 +0100
Source: ifupdown
Architecture: source
Version: 0.8.41
Distribution: unstable
Urgency: high
Maintainer: Josué Ortega <jo...@debian.org>
Changed-By: Santiago Ruano Rincón <santi...@debian.org>
Closes: 1022843 1029449
Changes:
ifupdown (0.8.41) unstable; urgency=high
.
* networking.service: Improve how to handle hotplug devices. Thanks to kibi,
Oleg A. Arkhangelsky <syso...@yandex.ru>, et al.
(Closes: #1022843, #1029449)
* d/tests/hotplug: add more tests, including unplugged dummy interface
Checksums-Sha1:
5b0b881b5095449d85673766a2d397b53c0b1b8b 1014 ifupdown_0.8.41.dsc
d5564441a0fc094b056ef1a84a07d68ec4d402ad 82136 ifupdown_0.8.41.tar.xz
858e72bfe08a0681d93c7562d75a5a71dd17d051 5353 ifupdown_0.8.41_amd64.buildinfo
Checksums-Sha256:
e521f66a66667e65f505b81c6a0378684a622591239e18b78247210481427518 1014
ifupdown_0.8.41.dsc
222c5bef313a9e71d9be4b946c73c8606c98f9e0229153191d9c6d8fb9b3599c 82136
ifupdown_0.8.41.tar.xz
c8dee6aaf707c459b34295a3ea896516dfa2cfde78eacd998bab77c817f12955 5353
ifupdown_0.8.41_amd64.buildinfo
Files:
0edd879c0b765774ebc113652f12cfbb 1014 admin important ifupdown_0.8.41.dsc
1d28ad5cac716063d8a28be77f308db7 82136 admin important ifupdown_0.8.41.tar.xz
fffed64bba7fba52edfd03ea5af79249 5353 admin important
ifupdown_0.8.41_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iIoEARYIADIWIQRZVjztY8b+Ty43oH1itBCJKh26HQUCY8/b3BQcc2FudGlhZ29A
ZGViaWFuLm9yZwAKCRBitBCJKh26HbTTAP9T+9gplI2HNs5hPajuJmvBZsvR8GP0
ScFyPMAnfzeq3AEAyJSrnkPkhaRtE86VDDGQHdLPHvf4IB3n5r0WHqekmQ8=
=IA8G
-----END PGP SIGNATURE-----
--- End Message ---