[Bug 846361] New: pppd does not reconnect (option persist)
https://bugzilla.novell.com/show_bug.cgi?id=846361 https://bugzilla.novell.com/show_bug.cgi?id=846361#c0 Summary: pppd does not reconnect (option persist) Classification: openSUSE Product: openSUSE 13.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sweet_f_a@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 Hi, after upgrading to 13.1 pppd does not reconnected after lcp-echo-failure happened: 2013-10-16T19:31:27.924893+02:00 tenfore pppd[5405]: No response to 2 echo-requests 2013-10-16T19:31:28.121107+02:00 tenfore pppd[5405]: Serial link appears to be disconnected. 2013-10-16T19:31:28.121745+02:00 tenfore pppd[5405]: Connect time 8532.1 minutes. 2013-10-16T19:31:28.144737+02:00 tenfore pppd[5405]: Sent 576240611 bytes, received 4264384411 bytes. 2013-10-16T19:31:28.894514+02:00 tenfore pppd[5405]: Script /etc/ppp/ip-down finished (pid 5193), status = 0x0 2013-10-16T19:31:32.227775+02:00 tenfore pppd[5405]: Connection terminated. 2013-10-16T19:31:32.245382+02:00 tenfore pppd[5405]: Sent PADT 2013-10-16T19:31:32.257248+02:00 tenfore pppd[5405]: Modem hangup 2013-10-16T19:31:32.266251+02:00 tenfore systemd[1]: Stopping ifup managed network interface dsl0... .. then it did not reconnect. My setup was working since openSUSE 11.4. On my former installations it did not sent PADT. maxfail 0 lcp-echo-interval 60 lcp-echo-failure 2 persist I don't know how to reproduce. It works when I plug off/on any cables. I guess I need to trick "No response to 2 echo-requests" somehow else. Could be that these recently added patches have something todo with this problem?: Mon Sep 2 14:41:21 UTC 2013 - max@suse.com - Add ppp-terminate-correct.patch, fix the pppd's hang after exit (bnc#693469). ------------------------------------------------------------------- Wed Jul 24 12:54:01 UTC 2013 - max@suse.com - ppp-send-padt.patch: Send PADT at the end of a PPPoE session. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c1
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c2
Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c3
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c4
--- Comment #4 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c5
--- Comment #5 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c6
Reinhard Max
The question is who sends SIGTERM to pppd? I've tracked that down. It's killed by by the command "ifdown ds0". Who called this? udev, systemd, smpppd?
Marius, can you shed some more light on this? -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c7
--- Comment #7 from Ruediger Meier
(In reply to comment #4)
The question is who sends SIGTERM to pppd? I've tracked that down. It's killed by by the command "ifdown ds0". Who called this? udev, systemd, smpppd?
Marius, can you shed some more light on this?
Ok, I increased systemd debug output. Looks like it is the damn systemd who calls "ifdown dsl0": 2014-01-15T22:14:10.766283+01:00 tenfore pppd[29591]: Hangup (SIGHUP) 2014-01-15T22:14:10.766754+01:00 tenfore pppd[29591]: Connect time 0.7 minutes. 2014-01-15T22:14:10.767066+01:00 tenfore pppd[29591]: Sent 31140 bytes, received 50526 bytes. 2014-01-15T22:14:10.768260+01:00 tenfore pppd[29591]: Script /etc/ppp/ip-down started (pid 30376) 2014-01-15T22:14:10.768839+01:00 tenfore pppd[29591]: sent [LCP TermReq id=0x2 "User request"] 2014-01-15T22:14:10.776684+01:00 tenfore pppd[29591]: rcvd [LCP TermAck id=0x2] 2014-01-15T22:14:10.777363+01:00 tenfore pppd[29591]: Connection terminated. 2014-01-15T22:14:10.777853+01:00 tenfore systemd[1]: sys-subsystem-net-devices-dsl0.device changed plugged -> dead 2014-01-15T22:14:10.778689+01:00 tenfore systemd[1]: Trying to enqueue job network@dsl0.service/stop/replace 2014-01-15T22:14:10.779185+01:00 tenfore systemd[1]: Installed new job network@dsl0.service/stop as 3713 2014-01-15T22:14:10.779632+01:00 tenfore systemd[1]: Enqueued job network@dsl0.service/stop as 3713 2014-01-15T22:14:10.780087+01:00 tenfore systemd[1]: sys-devices-virtual-net-dsl0.device changed plugged -> dead 2014-01-15T22:14:10.780538+01:00 tenfore systemd[1]: Collecting sys-devices-virtual-net-dsl0.device 2014-01-15T22:14:10.781109+01:00 tenfore systemd[1]: Stopping ifup managed network interface dsl0... 2014-01-15T22:14:10.781565+01:00 tenfore systemd[1]: About to execute: /sbin/ifdown dsl0 2014-01-15T22:14:10.782245+01:00 tenfore systemd[1]: Forked /sbin/ifdown as 30383 2014-01-15T22:14:10.782602+01:00 tenfore systemd[1]: network@dsl0.service changed running -> stop 2014-01-15T22:14:10.782975+01:00 tenfore systemd[1]: Set up jobs progress timerfd. 2014-01-15T22:14:10.783352+01:00 tenfore systemd[1]: Set up idle_pipe watch. 2014-01-15T22:14:10.784460+01:00 tenfore systemd[30383]: Executing: /sbin/ifdown dsl0 2014-01-15T22:14:10.796217+01:00 tenfore pppd[29591]: Send PPPOE Discovery V1T1 PADT session 0xc96 length 8 2014-01-15T22:14:10.796816+01:00 tenfore pppd[29591]: dst 0:30:88:1:66:53 src 0:19:d1:99:f3:a4 2014-01-15T22:14:10.797272+01:00 tenfore pppd[29591]: [host-uniq 97 73 00 00] 2014-01-15T22:14:10.797715+01:00 tenfore pppd[29591]: Sent PADT 2014-01-15T22:14:10.801804+01:00 tenfore systemd[1]: Accepted connection on private bus. 2014-01-15T22:14:10.802764+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/network_2eservice 2014-01-15T22:14:10.803443+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local 2014-01-15T22:14:10.848339+01:00 tenfore systemd[1]: Accepted connection on private bus. 2014-01-15T22:14:10.849013+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/network_2eservice 2014-01-15T22:14:10.849800+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local 2014-01-15T22:14:10.865070+01:00 tenfore systemd[1]: Accepted connection on private bus. 2014-01-15T22:14:10.866529+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/network_2eservice 2014-01-15T22:14:10.867285+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local 2014-01-15T22:14:10.880654+01:00 tenfore ifdown[30383]: dsl0 no such interface 2014-01-15T22:14:10.882327+01:00 tenfore ifdown[30383]: dsl0 no such interface 2014-01-15T22:14:10.909510+01:00 tenfore systemd[1]: Accepted connection on private bus. 2014-01-15T22:14:10.911164+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.GetAll() on /org/freedesktop/systemd1/unit/network_2eservice 2014-01-15T22:14:10.912018+01:00 tenfore systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local 2014-01-15T22:14:10.955248+01:00 tenfore SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ... 2014-01-15T22:14:10.958998+01:00 tenfore pppd[29591]: Terminating on signal 15 How can I stop systemd doing anything with my network devices? -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c8
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c9
--- Comment #9 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c10
--- Comment #10 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c11
Noble Huang
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c12
--- Comment #12 from Ruediger Meier
Revert this patch prevent systemd to manage the virtual network interface dsl0. https://github.com/openSUSE/sysconfig/commit/2466b14065729f2c8a4c13aae97f9f4...
I can confirm this. Reverting 2466b140 (and followups) fixes the problem.
When dsl0 is managed by systemd, after /etc/ppp/ip-down execute, systemd think the device is dead and call /etc/ifdown to bring down it, which will remove dsl0 and terminate pppd. Thus cause reconnect abort.
Maybe one should filter out some interfaces based on $INTERFACETYPE in that patch.
Actually I don't see why it redirects to systemd at all. Choosing "traditional ifup setup" should give us _traditional_ setup without stupid managed network interface services whatever. After "network start" nothing else should should be done automatically. -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c13
--- Comment #13 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c14
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c15
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c16
--- Comment #16 from Ruediger Meier
Created an attachment (id=580172) --> (http://bugzilla.novell.com/attachment.cgi?id=580172) [details] ifup: do not redirect to systemd for ppp
Thanks, this does work now. -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c17
--- Comment #17 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c18
--- Comment #18 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c19
Marius Tomaschewski
One thing to add. I see that now pppd even survives "rcnetwork" stop. Don't know if this is how it should be.
rcnetwork calls "ifdown xxx" -- this usually stops the network@xxx service; in ppp case it is forwarded to "/usr/sbin/smpppd-ifcfg --down" now instead. Everything else is in the hands of the smpppd. -- 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=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c20
--- Comment #20 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c21
--- Comment #21 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=846361
https://bugzilla.novell.com/show_bug.cgi?id=846361#c22
--- Comment #22 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com