Re: Is NetworkManager-wait-online.service necessary by default?

2022-03-04 Thread Lennart Poettering
On Do, 24.02.22 10:14, Colin Walters (walt...@verbum.org) wrote: > I think instead you can use e.g. a systemd generator: > https://www.freedesktop.org/software/systemd/man/systemd.generator.html > The generator (which can be the same binary) can then enable iscsi.service > only if the directory

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-25 Thread Benjamin Berg
On Thu, 2022-02-24 at 10:14 -0500, Colin Walters wrote: > > On Thu, Feb 24, 2022, at 6:17 AM, Benjamin Berg wrote: > > > network-online-waitonly.target with > > After=network-online.target > > StopWhenUnneeded=yes > > > > which is then used inside iscsi.service > >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Daniel P . Berrangé
On Thu, Feb 24, 2022 at 04:30:53PM +, Tom Hughes via devel wrote: > On 24/02/2022 16:28, Tom Hughes wrote: > > On 24/02/2022 16:25, Cole Robinson wrote: > > > On 2/23/22 5:22 PM, Tom Hughes via devel wrote: > > > > On 23/02/2022 21:23, Zbigniew Jędrzejewski-Szmek wrote: > > > > > > > > > a)

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Tom Hughes via devel
On 24/02/2022 16:28, Tom Hughes wrote: On 24/02/2022 16:25, Cole Robinson wrote: On 2/23/22 5:22 PM, Tom Hughes via devel wrote: On 23/02/2022 21:23, Zbigniew Jędrzejewski-Szmek wrote: a) change libvirt-daemon-driver-storage Requires:libvirt-daemon-driver-storage-iscsi to

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Tom Hughes via devel
On 24/02/2022 16:25, Cole Robinson wrote: On 2/23/22 5:22 PM, Tom Hughes via devel wrote: On 23/02/2022 21:23, Zbigniew Jędrzejewski-Szmek wrote: a) change libvirt-daemon-driver-storage Requires:libvirt-daemon-driver-storage-iscsi     to Suggests:libvirt-daemon-driver-storage-iscsi, More

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Cole Robinson
On 2/23/22 5:22 PM, Tom Hughes via devel wrote: > On 23/02/2022 21:23, Zbigniew Jędrzejewski-Szmek wrote: > >> a) change libvirt-daemon-driver-storage >> Requires:libvirt-daemon-driver-storage-iscsi >>     to Suggests:libvirt-daemon-driver-storage-iscsi, > > More generally why does installing

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Colin Walters
On Thu, Feb 24, 2022, at 6:17 AM, Benjamin Berg wrote: > network-online-waitonly.target with > After=network-online.target > StopWhenUnneeded=yes > > which is then used inside iscsi.service > ExecStartPre=/usr/bin/systemctl start network-online-waitonly.target No, avoid such things

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Chris Adams
Once upon a time, Zbigniew Jędrzejewski-Szmek said: > Conditions are evaluated when the service would be exectued, so a unit > which is (eventually) skipped because of Conditions still has effect on > the boot ordering and may add additional jobs to the transaction. Okay, that's a nuance I

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-24 Thread Benjamin Berg
Hi, On Thu, 2022-02-24 at 07:47 +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Feb 24, 2022 at 12:17:27AM +, Gary Buhrmaster wrote: > > On Wed, Feb 23, 2022 at 11:55 PM Chris Adams wrote: > > > > > > Once upon a time, Zbigniew Jędrzejewski-Szmek said: > > > > So this is the culprit.

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 24, 2022 at 12:17:27AM +, Gary Buhrmaster wrote: > On Wed, Feb 23, 2022 at 11:55 PM Chris Adams wrote: > > > > Once upon a time, Zbigniew Jędrzejewski-Szmek said: > > > So this is the culprit. iscsi.service has Before=remote-fs-pre.target, > > > After=network-online.target, which

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Gary Buhrmaster
On Wed, Feb 23, 2022 at 11:55 PM Chris Adams wrote: > > Once upon a time, Zbigniew Jędrzejewski-Szmek said: > > So this is the culprit. iscsi.service has Before=remote-fs-pre.target, > > After=network-online.target, which means that it'll delay the boot. > > If that's the problem, there's some

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Chris Adams
Once upon a time, Zbigniew Jędrzejewski-Szmek said: > So this is the culprit. iscsi.service has Before=remote-fs-pre.target, > After=network-online.target, which means that it'll delay the boot. If that's the problem, there's some other issue. On my up-to-date F35 system, iscsi.service also

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Tom Hughes via devel
On 23/02/2022 21:23, Zbigniew Jędrzejewski-Szmek wrote: a) change libvirt-daemon-driver-storage Requires:libvirt-daemon-driver-storage-iscsi to Suggests:libvirt-daemon-driver-storage-iscsi, More generally why does installing libvirt neeed to force installation of about ten storage

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Michael Catanzaro
On Wed, Feb 23 2022 at 10:23:14 PM +0100, Zbigniew Jędrzejewski-Szmek wrote: I'd vote for a) Me too. I have a feeling this is going to dramatically improve our boot times. Shame we didn't notice this long ago. Oh well ___ devel mailing list

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Kevin P. Fleming
On Wed, Feb 23, 2022 at 4:25 PM Zbigniew Jędrzejewski-Szmek < zbys...@in.waw.pl> wrote: > So this is the culprit. iscsi.service has Before=remote-fs-pre.target, > After=network-online.target, which means that it'll delay the boot. > remote-fs-pre.target is Before remote-fs.target which is Before

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Feb 22, 2022 at 08:26:22PM -0700, Chris Murphy wrote: > On Tue, Feb 22, 2022 at 3:19 PM Lennart Poettering > wrote: > > > > On Di, 22.02.22 14:36, Chris Murphy (li...@colorremedies.com) wrote: > > > > > On Tue, Feb 22, 2022 at 12:34 PM Gary Buhrmaster > > > wrote: > > > > > > > >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
On Tue, Feb 22, 2022 at 3:19 PM Lennart Poettering wrote: > > On Di, 22.02.22 14:36, Chris Murphy (li...@colorremedies.com) wrote: > > > On Tue, Feb 22, 2022 at 12:34 PM Gary Buhrmaster > > wrote: > > > > > > Perhaps there are additional hints in: > > > > > >systemctl show -p

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Lennart Poettering
On Di, 22.02.22 14:36, Chris Murphy (li...@colorremedies.com) wrote: > On Tue, Feb 22, 2022 at 12:34 PM Gary Buhrmaster > wrote: > > > > Perhaps there are additional hints in: > > > >systemctl show -p WantedBy,RequiredBy,After,Before network-online.target > > > > I also suspect i don't

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Lennart Poettering
On Di, 22.02.22 10:32, Chris Murphy (li...@colorremedies.com) wrote: > > Normally, unlikely client software, server software should really > > watch rtnl or so and follow local network configuration to make its > > services available, and thus it doesn't have to wait for the online > > sync

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Lennart Poettering
On Di, 22.02.22 18:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > Clarification: it *is* a bug *if* the unit that is ordered after it is > ordered before the default boot target. So e.g. something that is started > at boot but does not delay the default boot target is not a problem.

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
On Tue, Feb 22, 2022 at 12:34 PM Gary Buhrmaster wrote: > > Perhaps there are additional hints in: > >systemctl show -p WantedBy,RequiredBy,After,Before network-online.target > > I also suspect i don't understand the > problem well enough to have the correct > clue to help. # systemctl

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Gary Buhrmaster
On Tue, Feb 22, 2022 at 5:42 PM Chris Murphy wrote: > $ cat /usr/lib/systemd/system/packagekit.service > [Unit] > Description=PackageKit Daemon > # PK doesn't know how to do anything on ostree-managed systems; > # currently the design is to have dedicated daemons like > # eos-updater and

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
On Tue, Feb 22, 2022 at 10:50 AM Zbigniew Jędrzejewski-Szmek wrote: > > On Tue, Feb 22, 2022 at 10:41:50AM -0700, Chris Murphy wrote: > > $ cat /usr/lib/systemd/system/dnf-makecache.timer > > [Unit] > > Description=dnf makecache --timer > > ConditionKernelCommandLine=!rd.live.image > > # See

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Gary Buhrmaster
On Tue, Feb 22, 2022 at 5:43 PM Zbigniew Jędrzejewski-Szmek wrote: > No, no. dnf-makecache.timer is "asynchronous" — it is not part of > multi-user.target. It is reasonable to order it after network is up > because this way it can just do its thing without spurious noise about > failed

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Feb 22, 2022 at 10:41:50AM -0700, Chris Murphy wrote: > $ cat /usr/lib/systemd/system/dnf-makecache.timer > [Unit] > Description=dnf makecache --timer > ConditionKernelCommandLine=!rd.live.image > # See comment in dnf-makecache.service > ConditionPathExists=!/run/ostree-booted >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Michael Catanzaro
On Tue, Feb 22 2022 at 06:14:19 PM +0100, Lennart Poettering wrote: dnf-makecache.timer nfs-server.service rpc-statd-notify.service rpc-statd.service nfs-mountd.service Another one: docker.service ___ devel mailing list --

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Feb 22, 2022 at 10:32:52AM -0700, Chris Murphy wrote: > On Tue, Feb 22, 2022 at 10:14 AM Lennart Poettering > wrote: > > > > On Di, 22.02.22 18:08, Lennart Poettering (mzerq...@0pointer.de) wrote: > > > > > And: NM-w-o.s actually being pulled in *is* a bug, unless you > > >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
$ cat /usr/lib/systemd/system/dnf-makecache.timer [Unit] Description=dnf makecache --timer ConditionKernelCommandLine=!rd.live.image # See comment in dnf-makecache.service ConditionPathExists=!/run/ostree-booted Wants=network-online.target [Timer] OnBootSec=10min OnUnitInactiveSec=1h

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
On Tue, Feb 22, 2022 at 10:14 AM Lennart Poettering wrote: > > On Di, 22.02.22 18:08, Lennart Poettering (mzerq...@0pointer.de) wrote: > > > And: NM-w-o.s actually being pulled in *is* a bug, unless you > > have something like configured NFS/SMB mounts in /etc/fstab, > >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Chris Murphy
On Tue, Feb 22, 2022 at 10:09 AM Lennart Poettering wrote: > > On Di, 22.02.22 09:38, Chris Murphy (li...@colorremedies.com) wrote: > > > Do any of Fedora desktop spins and Workstation edition need > > NetworkManager-wait-online.service enabled by default? > > > > Fedora 35 Workstation (updated,

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Lennart Poettering
On Di, 22.02.22 18:08, Lennart Poettering (mzerq...@0pointer.de) wrote: > And: NM-w-o.s actually being pulled in *is* a bug, unless you > have something like configured NFS/SMB mounts in /etc/fstab, > that really cannot work without the network actually being >

Re: Is NetworkManager-wait-online.service necessary by default?

2022-02-22 Thread Lennart Poettering
On Di, 22.02.22 09:38, Chris Murphy (li...@colorremedies.com) wrote: > Do any of Fedora desktop spins and Workstation edition need > NetworkManager-wait-online.service enabled by default? > > Fedora 35 Workstation (updated, default "preset-all" service units) > $ systemd-analyze > Startup