[Bug 933092] New: systemd-networkd.service does not alias network.service
http://bugzilla.suse.com/show_bug.cgi?id=933092 Bug ID: 933092 Summary: systemd-networkd.service does not alias network.service Classification: openSUSE Product: openSUSE Factory Version: 201505* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: pwieczorkiewicz@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The systemd-networkd.service file must contain an alias to network.service. This is the way wicked and NetworkManager work too. Otherwise it is unknown which service handles the network. Please add Alias=network.service in the [Install] section. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933092
Dr. Werner Fink
http://bugzilla.suse.com/show_bug.cgi?id=933092
--- Comment #2 from Jan Engelhardt
http://bugzilla.suse.com/show_bug.cgi?id=933092
Pawel Wieczorkiewicz
http://bugzilla.suse.com/show_bug.cgi?id=933092
Martin Pluskal
http://bugzilla.suse.com/show_bug.cgi?id=933092
Jan Engelhardt
This is the way wicked and NetworkManager work too. Otherwise it is unknown which service handles the network.
The upstream NetworkManager package does not have that Alias, it is instead a SUSE-specific patch that adds said Alias= line. wicked is a SUSE-produced (open)SUSE-specific (only used there) software, as well.
The systemd-networkd.service file must contain an alias to network.service.
I do not think it does, and I do not think NM or wicked should, either. Networking does not have to consist of a single service. A service which wants networking should Wants=network.target (or network-online.target). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933092
Marius Tomaschewski
Maybe also the reason why rcnetwork restart did not start my dhcp client?
Your service probably does not set the alias as it should. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933092
--- Comment #5 from Marius Tomaschewski
http://bugzilla.suse.com/show_bug.cgi?id=933092
--- Comment #6 from Pawel Wieczorkiewicz
http://bugzilla.suse.com/show_bug.cgi?id=933092
--- Comment #7 from Pawel Wieczorkiewicz
We would also need something like "Conficts" with other providers of network.service (something like Conflicts=network.service each service aliasing it -- preferably without a need to hardcode the other service names in each of them).
I tested adding 'Conflicts=network.service' to wicked.service and NetworkManager.service (and also systemd-networkd.service when present) and then start/stop/restart and switching between those two services on latest TW and 13.2. It allows to start one service what automatically stops a conflicting service and vice versa. However after short playing with enable/disable the services I got systemd to crash: Jun 03 15:55:40 c159 dhclient[1640]: Received signal 15, initiating shutdown. Jun 03 15:55:40 c159 NetworkManager[1489]: Received signal 15, initiating shutdown. Jun 03 15:55:40 c159 NetworkManager[1489]: <info> (ens3): canceled DHCP transaction, DHCP client pid 1640 Jun 03 15:55:41 c159 NetworkManager[1489]: <info> startup complete Jun 03 15:56:40 c159 kernel: systemd[1]: segfault at 7f3c9cec7760 ip 00007f3c9cec7760 sp 00007ffc8f405b08 error 15 Jun 03 15:57:07 c159 dbus[537]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out So it seems it's not an option. Shall we maintain the Conflicts= as a list of well known (and default?) tools like wicked, NetworkManager, systemd-networkd, ... ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=933092
http://bugzilla.suse.com/show_bug.cgi?id=933092#c10
Jan Engelhardt
http://bugzilla.suse.com/show_bug.cgi?id=933092
Marius Tomaschewski
http://bugzilla.suse.com/show_bug.cgi?id=933092
http://bugzilla.suse.com/show_bug.cgi?id=933092#c12
Franck Bui
We would also need something like "Conficts" with other providers of network.service (something like Conflicts=network.service each service aliasing it -- preferably without a need to hardcode the other service names in each of them).
Hi Marius, that doesn't sound correct. NetworkManager and systemd-networkd for example can be used at the same time because they can manage different interfaces. For example you may want NetworkManager to manage your wireless interface and systemd-networkd manage all your wired and static virtual interfaces. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com