Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Andrei Borzenkov
В Sun, 12 Apr 2015 12:12:45 -0700 lynd...@your-mail.com пишет: Hi Lennart On Sun, Apr 12, 2015, at 11:06 AM, Lennart Poettering wrote: This looks like Fedora/Red Hat initscripts networking? Close; same style. But it's opensuse networking. If so, please file a bug against the

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Cameron Norman
On Sun, Apr 12, 2015 at 12:49 PM, Lennart Poettering lenn...@poettering.net wrote: On Sun, 12.04.15 12:35, lynd...@your-mail.com (lynd...@your-mail.com) wrote: If interface:IP = eno1:192.168.1.1, then it's all good. But, if interface:IP = br0(attached to eno1):192.168.1.1, then there's a

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread lyndat3
Hi On Sun, Apr 12, 2015, at 02:08 PM, Cameron Norman wrote: It's probably just a race that you see with the bridge because the bridge is up at a later time than the ethernet device. I guess that's kindof the point here. Using network.target and network-online.target doesn't apparently cause

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Lennart Poettering
On Fri, 10.04.15 15:52, lynd...@your-mail.com (lynd...@your-mail.com) wrote: My /etc/systemd/system/sshd.service has a After=network-online.target dependency. When my ethernet interface, eno1, is the primary 'net listener, cat /etc/sysconfig/network/ifcfg-eno1

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Reindl Harald
Am 12.04.2015 um 22:08 schrieb lynd...@your-mail.com: I can replicate the exact same error message, Cannot assign requested address, in BOTH cases -- eno1 and br0 -- by simply having sshd listen on a non-existent IP, e.g. 10.1.1.1 and why in the world don't you just configure sshd to

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread lyndat3
Hi Lennart On Sun, Apr 12, 2015, at 11:06 AM, Lennart Poettering wrote: This looks like Fedora/Red Hat initscripts networking? Close; same style. But it's opensuse networking. If so, please file a bug against the initscripts package. It's up to the networking management solution to fill

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Lennart Poettering
On Sun, 12.04.15 12:12, lynd...@your-mail.com (lynd...@your-mail.com) wrote: Hi Lennart On Sun, Apr 12, 2015, at 11:06 AM, Lennart Poettering wrote: This looks like Fedora/Red Hat initscripts networking? Close; same style. But it's opensuse networking. If so, please file a bug

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread Lennart Poettering
On Sun, 12.04.15 12:35, lynd...@your-mail.com (lynd...@your-mail.com) wrote: On Sun, Apr 12, 2015, at 12:25 PM, Lennart Poettering wrote: Seems to me that there should be *some* real check for the 'up' state of the bridge, not just waiting long enough and hoping. Well, I mean, the

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread lyndat3
On Sun, Apr 12, 2015, at 12:25 PM, Lennart Poettering wrote: Seems to me that there should be *some* real check for the 'up' state of the bridge, not just waiting long enough and hoping. Well, I mean, the entire logic of delaying the boot for external conditions is already pretty wrong. If

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread lyndat3
On Sun, Apr 12, 2015, at 12:49 PM, Lennart Poettering wrote: Hmm? why that? why does sshd care? Iiuc, sshd's LISTENER ip's must exist be available I am not having sshd listen on 0.0.0.0. I am specifying that it listens on 192.168.1.1 What precisely fails? I don't KNOW precisely, other

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-12 Thread lyndat3
On Sun, Apr 12, 2015, at 12:49 PM, Lennart Poettering wrote: Hmm? why that? why does sshd care? opensuse has a convenient interface status tool rpm -q --whatprovides `which ifstatus ` wicked-service-0.6.17-12.1.x86_64 ifstatus br0 br0

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-11 Thread Andrei Borzenkov
В Fri, 10 Apr 2015 18:02:49 -0700 lynd...@your-mail.com пишет: So though not clear on the real-intfc-only case, it's clearly not enough of a dependency check when the bridge interface comes into play. This is entirely up to implementation of waiting for network. As was already said,

[systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-10 Thread lyndat3
My /etc/systemd/system/sshd.service has a After=network-online.target dependency. When my ethernet interface, eno1, is the primary 'net listener, cat /etc/sysconfig/network/ifcfg-eno1 STARTMODE='auto' BOOTPROTO='static'

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-10 Thread Mantas Mikulėnas
On Sat, Apr 11, 2015 at 1:52 AM, lynd...@your-mail.com wrote: My /etc/systemd/system/sshd.service has a After=network-online.target dependency. ... Apparently, network-online waits for *real* interfaces only. By itself, if I remember correctly, network-online.target doesn't wait for

Re: [systemd-devel] sshd.service fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?

2015-04-10 Thread lyndat3
On Fri, Apr 10, 2015, at 05:54 PM, Mantas Mikulėnas wrote: By itself, if I remember correctly, network-online.target doesn't wait for *anything; *it needs the provider-specific services to also be enabled, like NetworkManager-wait-online.service (similarly for systemd-networkd and