|
Bugzilla – Full Text Bug Listing |
| Summary: | tap network device not fully supported and breaking routing | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Ralf Hülsmann <ralf> |
| Component: | YaST2 | Assignee: | Michal Zugec <mzugec> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Major | ||
| Priority: | P5 - None | CC: | mt |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE 11.1 | ||
| Whiteboard: | maint:released:sle11:23597 | ||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
y2log - see later pdf
screenshoots how the log was generated |
||
|
Description
Ralf Hülsmann
2009-03-08 11:58:01 UTC
Please attach y2logs. If you are in doubt follow: http://en.opensuse.org/Bugs/YaST Thanks! Created attachment 280162 [details]
y2log - see later pdf
Created attachment 280166 [details]
screenshoots how the log was generated
(In reply to comment #0) > Steps to Reproduce: > 1. set up a system without a tap, including functional network config with a > standard gateway > 2. add a tapp via Yast2 (does not matter wether GUI or CLI) > 3. try to add an IP-adress to the tap > 4. close Yast2 with the tap configured > Actual Results: > 1. you are not able to add an IP via Yast2 > 2. your standard gatway is lost > (at least on 4 seperate testmachnines on X86, X86_64) > > Expected Results: > 1. you could configure a persistent IP > 2. standard gateway is untouched > > The bad thing is: it breaks the standard gateway. > And it breaks it each time you call the network module and finish saving it. That yast2 does not allow to set IP for the tap is a bug. That a default route gets deleted, is a bug too. We've to investigate why this happens (yes, it is a bad thing). > The not so bad thing is: IP must be configured at CLI via ifconfig tap0 > 192.168.100.1. Since yast2 can't set it (at the moment), you've to correct it manually: echo "IPADDR='192.168.100.1/24'" >> ifcfg-tap0 and call then: ifdown tap0 ifup tap0 or rcnetwork restart tap0 > Furthermore the tap is not persistent, so next time you need to go through This is AFAIS not true. I've tested it just now and yast2 created a persistent tap config (/etc/sysconfig/network/ifcfg-tap0): BOOTPROTO='static' STARTMODE='onboot' TUNNEL='tap' TUNNEL_SET_GROUP='' TUNNEL_SET_OWNER='' TUNNEL_SET_PERSISTENT='yes' # added manually IPADDR='192.168.100.1/24' You can also set owner/group in yast2, but uid 0 as owner is default. Further, you can use PRE_UP_SCRIPT, POST_UP_SCRIPT, PRE_DOWN_SCRIPT, POST_DOWN_SCRIPT or scripts in ifservices-tap0 or also if-{up,down}.d to start/stop whatever you like when the tap interface gets up and down via ifup and ifdown (e.g. network restart). BTW: Please note also, that tap interfaces are started by the /etc/init.d/network-remotefs (requires already mounted $remote_fs [nfs, cifs]) script. When the system is booting I mean. (In reply to comment #0) > Furthermore the tap is not persistent, so next time you need to go through It was created with TUNNEL_SET_PERSISTENT=yes -- from your logs: network/lan/address.ycp:182 initTunnel $["BOOTPROTO":"dhcp", "STARTMODE":"onboot", "TUNNEL":"tap", "TUNNEL_SET_GROUP":"", "TUNNEL_SET_OWNER":"", "TUNNEL_SET_PERSISTENT":"yes"] [It even cannot be created non-persistently via ifcfg file or yast2. A non-persistent interface can be created only by a daemon driving the tap, that actively holds the interface open and starting of such a daemon is not supported yet in the ifup-tunnel script (this error message you'll get from ifup when you try to set it to "no").] (In reply to comment #0) > Steps to Reproduce: > 1. set up a system without a tap, including functional network config with a > standard gateway I was unable to reproduce that the default route gets deleted. Did you add the default route manually? Or was it configured in /etc/sysconfig/network/{routes,ifroute-eth0} ? I reproduced it /etc/sysconfig/network/routes information is deleted by YaST (I'm going to fix it) fixed in yast2-network-2.18.22 so there is no step needed from my side any more ? will this be available by YOU after a while ? cheers Ralf >> so there is no step needed from my side any more ? correct >> will this be available by YOU after a while ? No, because it was fixed for 11.2. It's not security bug But I'll create fixed package in my OBS http://download.opensuse.org/repositories/home://mzugec/openSUSE_11.1/ fixed version is yast2-network-2.17.78 The deletion of the default route is IMO at least major. The SWAMPID for this issue is 23570. Please submit the patch and patchinfo file using this ID. (https://swamp.suse.de/webswamp/wf/23570) close as fixed Update released for: yast2-network, yast2-network-devel-doc Products: SLE-DESKTOP 11 (i386, x86_64) SLE-SDK 11 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11 (i386, ia64, ppc64, s390x, x86_64) Update released for: yast2-network, yast2-network-devel-doc Products: openSUSE 11.1 (i586, ppc, x86_64) |