[Bug 870370] New: ifup / STARTMODE=manual / network connection after boot not possible
https://bugzilla.novell.com/show_bug.cgi?id=870370 https://bugzilla.novell.com/show_bug.cgi?id=870370#c0 Summary: ifup / STARTMODE=manual / network connection after boot not possible Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: 32bit OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cupra2@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25 If ifup is used for network connection and startmode is set to "manual", it's not possible to establish a connection after boot via qinternet. Device control for non-root user via qinternet is enabled. If startmode is set to "auto" or "onboot", connection becomes established automatically after boot. Now it's possible to disconnect and reconnect via qinternet without problems. 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=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c
Norman Gorlt
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c1
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c3
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c4
--- Comment #4 from Norman Gorlt
https://bugzilla.novell.com/show_bug.cgi?id=870370
https://bugzilla.novell.com/show_bug.cgi?id=870370#c5
--- Comment #5 from Norman Gorlt
http://bugzilla.novell.com/show_bug.cgi?id=870370
Axel Köllhofer
In startmode "manual", you have to manually call "ifup" on it as the interfaces are omitted in normal network start.
Well, this is still possible of course, but before it was also possible to use qinternet/cinternet for that task. It is also not an issue related to access permissions, even as root the Wired and Wireless interfaces with "STARTMODE='manual'" are missing. What is interesting though according to your statement I cited above cinternet -I 01 i modem0 the interface "modem0" is set to "STARTMODE=manual" but smpppd still can "see" it (thatŽ s why I wrote "wired and wireless interfaces", at least interfaces being handled by pppd have not disappeared). Greetings, AK -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=870370
Axel Köllhofer
http://bugzilla.novell.com/show_bug.cgi?id=870370
--- Comment #8 from Axel Köllhofer
http://bugzilla.novell.com/show_bug.cgi?id=870370
--- Comment #9 from Axel Köllhofer
http://bugzilla.novell.com/show_bug.cgi?id=870370 --- Comment #10 from Axel Köllhofer--- Created attachment 612883 --> http://bugzilla.novell.com/attachment.cgi?id=612883&action=edit improved patch, takes also care of ifdown After some more testing, I found a (corner?) case, where my hack does not work as expected. If the interface is brought up via smpppd (cinternet/qinternet) it can not be taken down by ifdown. So the hack needs a little extra changes: @@ -323,7 +330,11 @@ ;; ifdown) if test "$SYSTEMD_REDIRECT" = "yes" ; then - exec systemctl stop "network@${INTERFACE}.service" + if systemctl is-active "network@${INTERFACE}.service" >/dev/null ; then + exec systemctl stop "network@${INTERFACE}.service" + else + SYSTEMD_REDIRECT=no + fi fi # /etc/init.d/network has been killed, don't stop This change checks first if the interface has been activated via ifup (via the $SYSTEMD_REDIRECT variable) and if not sets the variable "$SYSTEMD_REDIRECT" to no so the "classic" ifdown routines will be executed. What still does not work is taking down the interface with systemct stop network@DEVICENAME.service after it has been brought up cia smpppd (cinternet/qinternet). For this one might even have to change the way smpppd handles communication to ifup/systemd. At least I donŽt really have an idea how to implement this in ifup/ifdown scripts but maybe people who are more involved into this infrastructure are. Greetings, AK -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=870370
--- Comment #11 from Norman Gorlt
http://bugzilla.novell.com/show_bug.cgi?id=870370
--- Comment #12 from Axel Köllhofer
Strange, I can't detect a network@INTERFACE.service via systemctl independent whether connected or disconnected.
Nope, not strange but expected behaviour (as pointed out in my previous posts). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com