[Bug 629348] New: opevpn not taken down by NetworkManager correctly
http://bugzilla.novell.com/show_bug.cgi?id=629348 http://bugzilla.novell.com/show_bug.cgi?id=629348#c0 Summary: opevpn not taken down by NetworkManager correctly Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: volker@openbios.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=381407) --> (http://bugzilla.novell.com/attachment.cgi?id=381407) hwinfo User-Agent: Mozilla/5.0 (compatible; Konqueror/4.4; Linux) KHTML/4.4.4 (like Gecko) SUSE Establishing a NM managed openvpn connection works ok, however when openvpn connection is disconnected by user following error occurs " Message from syslogd@thinkpad at Aug 7 09:41:18 ... kernel:[13804.232067] unregister_netdevice: waiting for tap0 to become free. Usage count = 3 " The error is repeated in 10sec intervals and spilled everywhere: into /var/log/messages, into kde notifications, onto *every* console of whatever user logged in. openvpn is trapped in uninterruptible sleep. Here is the ps-entry when situation occurs: root 23732 0.5 0.2 8364 3160 ? D 10:05 0:00 /usr/sbin/openvpn --remote vpn.domain.de --comp-lzo --nobind --dev tap --proto udp --port 1194 --auth-nocache --syslog nm-openvpn --script-security 2 --up /usr/lib/nm-openvpn-service-openvpn-helper --up-restart --persist-key --persist-tun --management 127.0.0.1 1194 --management-query-passwords --route-noexec --client --ca /etc/openvpn/my.ca.crt --cert /etc/openvpn/my.crt --key /etc/openvpn/my.key Sometimes openvpn eventually dies after some minutes and error messages cease. A X-server kill always ends the situation. Reproducible: Always Steps to Reproduce: 1. Configure a openvpn connection using tap device in NM 2. Start openvpn connection via NM 3. Stop openvpn connection via NM -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c1
--- Comment #1 from Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c2
Volker _
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c3
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=629348
http://bugzilla.novell.com/show_bug.cgi?id=629348#c4
Volker _
So it still can stop the openvpn? Please attach your NetworkManager's log when it was failed. When i instruct knetworkmanager to disconnect from vpn, the tap device and it's routes are removed instantly. However, the error messages persist for several minutes and the half-dead openvpn process hangs around.
The log at that time: Aug 11 09:19:24 thinkpad nm-openvpn[3697]: /bin/ip addr del dev tap0 192.168.0.200/24 Aug 11 09:19:24 thinkpad NetworkManager: <debug> [1281511164.526432] run_netconfig(): Spawning '/sbin/netconfig modify --service NetworkManager' Aug 11 09:19:24 thinkpad nm-openvpn[3697]: Linux ip addr del failed: external program exited with error status: 2 Aug 11 09:19:24 thinkpad NetworkManager: <debug> [1281511164.528883] write_to_netconfig(): Writing to netconfig: INTERFACE='tap0'#012 Aug 11 09:19:24 thinkpad NetworkManager: <debug> [1281511164.528947] write_to_netconfig(): Writing to netconfig: DNSSEARCH='fritz.box fritz.box'#012 Aug 11 09:19:24 thinkpad NetworkManager: <debug> [1281511164.528970] write_to_netconfig(): Writing to netconfig: DNSSERVERS='192.168.7.254'#012 Aug 11 09:19:24 thinkpad NetworkManager: <info> Clearing nscd hosts cache. Aug 11 09:19:25 thinkpad NetworkManager: <debug> [1281511165.545570] run_netconfig(): Spawning '/sbin/netconfig modify --service NetworkManager' Aug 11 09:19:25 thinkpad NetworkManager: <debug> [1281511165.548113] write_to_netconfig(): Writing to netconfig: INTERFACE='wlan0'#012 Aug 11 09:19:25 thinkpad NetworkManager: <debug> [1281511165.548241] write_to_netconfig(): Writing to netconfig: DNSSEARCH='fritz.box fritz.box'#012 Aug 11 09:19:25 thinkpad NetworkManager: <debug> [1281511165.548313] write_to_netconfig(): Writing to netconfig: DNSSERVERS='192.168.7.254'#012 Aug 11 09:19:25 thinkpad NetworkManager: <info> Clearing nscd hosts cache. Aug 11 09:19:25 thinkpad NetworkManager: <info> Policy set 'BLUB' (wlan0) as default for routing and DNS. Aug 11 09:19:25 thinkpad nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/netcontrol_services' exited with error status 127. Error msgs continued after this until 09:23:15: {...] Message from syslogd@thinkpad at Aug 11 09:23:05 ... kernel:[ 363.916062] unregister_netdevice: waiting for tap0 to become free. Usage count = 3 Message from syslogd@thinkpad at Aug 11 09:23:15 ... kernel:[ 373.956078] unregister_netdevice: waiting for tap0 to become free. Usage count = 3
kill the NetworkManager then run 'NetworkManager --no-daemon' in terminal with root permission. Then try again.
Tried it, same behavior. (Btw knetworkmanager crashes when NetworkManager --no-daemon is started. Had to start knetworkmanager again) -- Configure bugmail: http://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=629348
https://bugzilla.novell.com/show_bug.cgi?id=629348#c5
Sven Burmeister
https://bugzilla.novell.com/show_bug.cgi?id=629348
https://bugzilla.novell.com/show_bug.cgi?id=629348#c6
Li Bin
https://bugzilla.novell.com/show_bug.cgi?id=629348
https://bugzilla.novell.com/show_bug.cgi?id=629348#c7
Li Bin
participants (1)
-
bugzilla_noreply@novell.com