[Bug 907495] New: adding a manual route to a dhcp configured interface results in failed dhcp setup (wicked managed)
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Bug ID: 907495 Summary: adding a manual route to a dhcp configured interface results in failed dhcp setup (wicked managed) Classification: openSUSE Product: openSUSE 12.3 Version: Final Hardware: Other OS: openSUSE 13.2 Status: NEW Severity: Major Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: hpj@urpla.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- When adding a manual route to a dhcp configured eth interface managed by wicked, the dhcp setup fails with a silly message: device enp7s0 failed: "call to org.opensuse.Network.Addrconf.ipv4.static.requestLease failed: General failure" Add a manual route to a dhcp configured interface and restart your system. Be prepared, that this interface will not come up correctly. BTW: the routing editor allows selecting configured interfaces only. The usual order is: setup interface, add route, but you have to confirm the interface setup first, reenter yast network and add the interface based route there after. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com Assignee|bnc-team-screening@forge.pr |wicked-maintainers@suse.de |ovo.novell.com | --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- sounds like another duplicate of bug 895219 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 --- Comment #2 from Hans-Peter Jansen <hpj@urpla.net> --- Okay, here are my use cases: 1) I have a dlan network with a different gateway 2) I have a vpn server, that runs independent from default gateway. The easiest way to setup such things is an additional static route - both are completely independent from DHCP setting, and should not interfere with it. Sure, I can use dhcp settings nowadays, but this setup is working since way more than 10 years using various suse distributions, and I cannot see a reason for the necessity to break it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Network |Network Version|Final |13.2 Product|openSUSE 12.3 |openSUSE Distribution Target Milestone|--- |13.2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Marius Tomaschewski <mt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mt@suse.com Resolution|--- |DUPLICATE --- Comment #3 from Marius Tomaschewski <mt@suse.com> --- Incomplete route config, see: https://bugzilla.opensuse.org/show_bug.cgi?id=905743#c3 *** This bug has been marked as a duplicate of bug 905743 *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |--- --- Comment #4 from Hans-Peter Jansen <hpj@urpla.net> --- Marius, thanks for your answer. With all due respect, but I really think, that this is a regression - at least from a usability perspective. Discussion: Sure, wicked was developed to have a clean network setup. In the light of a _damaged_ network setup, if some static routing is used (tried), simply pointing to some obscure (again usability wise) dhcp option is a little 90s, isn't it? At least, yast2 network should completely disable the static routing dialog, if DHCP is selected, pointing out, that openSUSE is unable to setup static routes in this context. Since some automated setup tools (including mine) does add such config files directly, this is still not sufficient, hence a README explaining this situation in /etc/sysconfig/network is in order (static-routes-with-dhcp-controlled-interfaces.txt). This file should document the following: Due to openSUSEs new network setup scheme (wicked), static routing for DHCP controlled interfaces can only configured in your DHCP server setup. Bad luck, if it's not flexible enough to allow you such configuration. (You're always free to setup your own named/dhcpd infrastructure, of course..) If you're lucky, eg. you have control over a ISC dhcpd, you need to add a global option similar to: option static-routes code 121 = array of integer 8; Within you devices section, either pool, group, or single host definition, add something similar to: option static-routes 0,172,16,32,1,24,192,168,0,172,16,32,2,24,10,9,0,172,16,32,2; which would result in: 0,172,16,32,1 # ip route add default via 172.16.32.1 24,192,168,0,172,16,32,2 # ip route add 192.168.0.0/24 via 172.16.32.2 24,10,9,0,172,16,32,2 # ip route add 10.9.0.0/24 via 172.16.32.2 You need to add a default route here, since dhcpcd ignores any default route definition, when static routes are defined. That's a beauty, isn't it. The real question is, what is so hard with hooking these commands into the dhcpcd --script option? I haven't looked at the code and can imagine, that this wouldn't be nice code. So either fix yast2 network or wicked, but don't annoy your advanced long term users for no good reason, please. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Bill Merriam <bill@merriam.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bill@merriam.net -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 Stefan Brüns <stefan.bruens@rwth-aachen.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan.bruens@rwth-aachen.d | |e --- Comment #13 from Stefan Brüns <stefan.bruens@rwth-aachen.de> ---
(In reply to Hans-Peter Jansen from comment #9)
Okay, the direct routes prepended did the trick.
That still doesn't solve the problem for users, that define such routes with yast.
?? There is no problem -- you can define such routes with yast2.
Unfortunately, yast2 displays the routes not in the order defined in the file, but in significance order. E.g. if you first define the network route and then the gateway route, the gateway route will be first in yast. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 http://bugzilla.opensuse.org/show_bug.cgi?id=907495#c16 Ralf Habacker <ralf.habacker@freenet.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ralf.habacker@freenet.de --- Comment #16 from Ralf Habacker <ralf.habacker@freenet.de> --- Regardless of a possible extension of wicket, it seems to me that the biggest problem with the current state of wicked is that wicket quietly ignores static routes when configured to use dhcp and does not inform the user about them, which takes a lot of time to figure out this lack of support. (just happened to a trainee here and I spent several hours afterwards trying to determine the cause). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 http://bugzilla.opensuse.org/show_bug.cgi?id=907495#c17 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ralf.habacker@fre | |enet.de) --- Comment #17 from Hans-Peter Jansen <hpj@urpla.net> --- Dear Ralf, given, a lot of time has passed since I opened this issue, would you please take the time and read this issue carefully, including the possible solutions. wicked does respect static routes, but they need to follow certain rules. If that does not provide a fix to your issue, open a new issue for it. If you leave a comment about the new issue number, I'm happy to follow it and provide feedback, based on the distribution, package versions and described scenario. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907495 http://bugzilla.opensuse.org/show_bug.cgi?id=907495#c18 --- Comment #18 from Ralf Habacker <ralf.habacker@freenet.de> --- (In reply to Hans-Peter Jansen from comment #17)
If that does not provide a fix to your issue, open a new issue for it. https://bugzilla.opensuse.org/show_bug.cgi?id=1202658
If you leave a comment about the new issue number, I'm happy to follow it and provide feedback, based on the distribution, package versions and described scenario. Thanks, see above.
-- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com