[Bug 436857] New: dummy0 interface doesn't bring up on boot
https://bugzilla.novell.com/show_bug.cgi?id=436857 Summary: dummy0 interface doesn't bring up on boot Product: openSUSE 10.3 Version: Final Platform: i686 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aron.ujvari@microsec.hu QAContact: qa@suse.de Found By: --- I have configured up the dummy0 interface in YaST, but id doesn't came up during boot. I suspect after some debugging that the problem is in /etc/init.d/network script (at line 487): for a in $(type_filter `ls -A /sys/class/net/`); do test -d /sys/class/net/$a || continue case "`get_iface_type $a`" in eth|tr|wlan) STAMPFILE=$STAMPFILE_STUB`cat /sys/class/net/$a/ifindex` if [ "$MODE" == onboot -a "$ACTION" == start ] ; then if [ ! -e "$STAMPFILE" ] ; then continue fi fi ;; Dummy interface is treated as a normal eth interface (according to get_interface_type result), but it doesn't have a STAMPFILE created. This way it is not recorded in the AVAILABLE_IFACES variable, and ifup won't run on it. The specified stamp file is created by ifup, which was previously run by udev according to the configuration file /etc/udev/rules.d/77-network.rules (at line 11): SUBSYSTEM=="net", ENV{INTERFACE}=="ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|bond*|vlan*|modem*|dsl*", GOTO="skip_ifup" SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug" This configuration file says that ifup should not be run for dummy interfaces, only for real ethernet devices and this way the stamp file doesn't became created. Meanwhile /etc/init.d/network thinks that dummy is a real ethernet device and expects that ifup should be run before and a stamp file should be already created. I think either get_iface_type should be modified to treat dummy interface as dummy type of interfaces and /etc/init.d/network should be modified accordingly, or just the pasted code from /etc/init.d/network should be fixed by adding and extra check for $a if it is not a dummy interface. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=436857
Robert Vojcik
https://bugzilla.novell.com/show_bug.cgi?id=436857
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c2
Marius Tomaschewski
I have configured up the dummy0 interface in YaST, but id doesn't came up during boot.
I suspect after some debugging that the problem is in /etc/init.d/network script (at line 487): [...] I think either get_iface_type should be modified to treat dummy interface as dummy type of interfaces and /etc/init.d/network should be modified accordingly
Exactly. The question is: Is there still a valid use case for a dummy interface? What you need a dummy interface for? Can't you assign the IPs to an another interface (lo or eth)? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=436857
User aron.ujvari@microsec.hu added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c3
--- Comment #3 from Aron Ujvari
https://bugzilla.novell.com/show_bug.cgi?id=436857
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c4
--- Comment #4 from Marius Tomaschewski
I think, abosolutely yes. [...]
OK, OK.
Moreover, regardless of that it is useful or not YaST has dummy interface handling capability, but it is not working well. As long YaST has this functionality the current behaviour is definitely a bug in my opinion.
This is true. Further it is a valid interface and was used before by default :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=436857
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c5
--- Comment #5 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=436857
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c6
--- Comment #6 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=436857
User aron.ujvari@microsec.hu added comment
https://bugzilla.novell.com/show_bug.cgi?id=436857#c7
--- Comment #7 from Aron Ujvari
https://bugzilla.novell.com/show_bug.cgi?id=436857
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com