Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-26 Thread Santiago Ruano Rincón
El 26/01/23 a las 19:29, Cyril Brulebois escribió: > Hi Oleg, > > Oleg A. Arkhangelsky (2023-01-26): > > After some digging I think that there is more elegant way to stop > > ifup@*.service when stopping (or restarting) networking.serivce, we just > > need to add PartOf to /lib/systemd/system/ifu

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-26 Thread Cyril Brulebois
Hi Oleg, Oleg A. Arkhangelsky (2023-01-26): > After some digging I think that there is more elegant way to stop > ifup@*.service when stopping (or restarting) networking.serivce, we just > need to add PartOf to /lib/systemd/system/ifup@.service: > > [Unit] > ... > PartOf=networking.service

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-26 Thread Oleg A. Arkhangelsky
On Wed Jan 25, 2023 at 11:31 PM UTC, Pascal Hambourg wrote: > Maybe there is a more elegant way to stop ifup@*.service, e.g. using > systemd unit dependencies but I am not familiar enough with this topic. > > This setup causes no delay when (re)starting networking.service by hand > at boot time

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-25 Thread Pascal Hambourg
Sorry for the late (and long) answer... On 23/01/2023 à 19:36, Oleg A. Arkhangelsky wrote: I tried this *.deb (Pascal approach). It doesn't change behaviour introduced after this patch [1]. Yes, restart for "allow-hotplug" interfaces work but I got the same system boot lag in Jeff configuration

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-24 Thread Jeff King
On Tue, Jan 24, 2023 at 02:32:07PM +0100, Santiago Ruano Rincón wrote: > > Tests yesterday seem to indicate successful results, but again I've only > > tested a few combinations in a VM (to keep the feedback loop short). > > > > From the installer team point of view, I'd welcome a swift upload wi

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-24 Thread Santiago Ruano Rincón
Hi! El 23/01/23 a las 16:19, Cyril Brulebois escribió: > Hi Santiago, > > Santiago Ruano Rincón (2023-01-23): > > Thanks everybody for the inputs. I've applied Paul's solution, and the > > generated .deb can be downloaded from here: > > > > https://salsa.debian.org/debian/ifupdown/-/jobs/384139

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-23 Thread Cyril Brulebois
Hi Oleg, Oleg A. Arkhangelsky (2023-01-23): > I tried this *.deb (Pascal approach). It doesn't change behaviour > introduced after this patch [1]. Yes, restart for "allow-hotplug" > interfaces work but I got the same system boot lag in Jeff configuration. Right, I mostly tested that an available

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-23 Thread Jeff King
On Mon, Jan 23, 2023 at 03:55:50PM +0100, Santiago Ruano Rincón wrote: > > That seems needlessly convoluted. What about this: > > > > [Service] > > Type=oneshot > > EnvironmentFile=-/etc/default/networking > > ExecStart=/sbin/ifup -a --read-environment > > ExecStart=-/sbin/ifu

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-23 Thread Oleg A. Arkhangelsky
On Mon Jan 23, 2023 at 2:55 PM UTC, Santiago Ruano Rincón wrote: > Thanks everybody for the inputs. I've applied Paul's solution, and the > generated .deb can be downloaded from here: > > https://salsa.debian.org/debian/ifupdown/-/jobs/3841392/artifacts/raw/debian/output/ifupdown_0.8.41~1.gbp3a6fa

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-23 Thread Cyril Brulebois
Hi Santiago, Santiago Ruano Rincón (2023-01-23): > Thanks everybody for the inputs. I've applied Paul's solution, and the > generated .deb can be downloaded from here: > > https://salsa.debian.org/debian/ifupdown/-/jobs/3841392/artifacts/raw/debian/output/ifupdown_0.8.41~1.gbp3a6fae+salsaci+2023

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-23 Thread Santiago Ruano Rincón
El 23/01/23 a las 00:24, Pascal Hambourg escribió: > Oleg A. Arkhangelsky wrote: > > Note that we have to use '--ignore-errors'. Otherwise if we have real > > hotplug interface that is not present at the moment of restart, `ifup` > > returns non-zero and systemd unit fail. > > "--ignore-errors" ma

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-22 Thread Pascal Hambourg
Oleg A. Arkhangelsky wrote: Note that we have to use '--ignore-errors'. Otherwise if we have real hotplug interface that is not present at the moment of restart, `ifup` returns non-zero and systemd unit fail. "--ignore-errors" marks missing interfaces as configured, so ifup will not configure

Bug#1022843: Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-22 Thread Cyril Brulebois
Cyril Brulebois (2023-01-22): > The configuration found below manages to: > - let my allow-hotplug slow-to-appear wireless interface come up at >boot-up, via the udev integration; > - allow me to stop and start networking, losing then regaining all >relevant configs (main connection is w

Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-22 Thread Cyril Brulebois
Control: reopen 1022843 Control: found 1022843 0.8.40 Control: severity 1022843 serious Hi, Cyril Brulebois (2023-01-22): > d-i believes that everything should be allow-hotplug, and we end up > using that everywhere. I'm wondering whether to just use auto everywhere > instead, since the hotplug

Bug#1029352: Bug#1022843: ifupdown: network down after systemctl restart

2023-01-22 Thread Cyril Brulebois
Hi Oleg, Greetings with my Debian Installer hat on. Oleg A. Arkhangelsky (2023-01-21): > P.S.: Yes, probably Debian installer should add PCI NICs as auto, not > as allow-hotplug, but in this case after fresh installing Debian and > just adding your wlan0 configuration (not changing eth0 which wi