Bug 2590

Summary: Update candidate for knetworkmanager
Product: Mageia Reporter: John Balcaen <balcaen.john>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, eeeemail, qa-bugs, stormi-mageia, sysadmin-bugs, tmb
Version: 1Keywords: validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: knetworkmanager-0.9-1.20110810.1.1.mga1.src.rpm CVE:
Status comment:

Description John Balcaen 2011-09-02 01:47:42 CEST
This package is a bugfix release from upstream to fix several bugs & follow the KDE SC timeline
Here is the list of bug fixed :

- Changes networkmanagement_configshell to update an existing bluetooth connection instead of adding a second one.
. Force NM to update a connection when it's name changes instead of creating a new connection file in /etc/NetworkManager/system-connections/ with the name uuid.
. Set correct uuid when updating connection.
278231: Fix problem with modem HUAWEI E220 not working without auto-connect attribute
. Fix notifications localization.
. Fix user being unable to launch configshell from plasmoid after running ManageConnectionWidget from within Plasma.
253317: Fix edit connection dialog blocks plasma.
. Fill in the file name filter in kfile dialog when importing VPN configurations so that users can know what file extensions are supported.
276406: Fix closing network manager config window before dismissing policykit prompt results in crash.

269951: Save username from VPN configuration instead of defaulting to system's user name.
. Correctly initialize the Wireless80211WidgetBand spinbox.
. Use correct method to enable mobile broadband modems, this one works with non-root users.
273762: Fill in Wireless80211Widget and WirelessSecuritySettingWidget with access point info when selecting one in ScanWidget.
269250: Makes kded module starts to emit notifications only after the plasmoid has been created
. Fix NM version number check.
. Always shows the "Create connection" button in the interface added notification for modem interfaces. Until now it was only shown when there was no modem connection.
275163: Fix changing adapter display type disables networking system
275159: Disables "Show More" button instead of hidding it if there is no wireless interface available.
275160: Defaults to wired tab in ManageConnectionWidgets if wireless is disabled.
274702 275161:  Try to prevent opening kwallet when there is no secret to retrieve.
274797: Set right widget's width to fixed size to prevent unneeded graphical layout resizes.
146159 182984: Import VPN connections from configuration files. Only VPNC is implemented so far, but the hooks for other VPN types are in place now.
. Fix initial default route icon's state when starting kded module and a connection is already active.
274860: Change networkmanagement_shell into a singleton to prevent calling the edit connection dialog multiple times.
274859: Disable "Low signal strength" notification by default and increase the interval between "Low signal strenght" notifications to 5 minutes.
274846:  Backport fix for disconnecting auto-connect connections when compiled against Solid < 4.7.0.
. Fix some issues when entering wireless channel manually instead of using the spinbox buttons.
. Add text in main window to warn when using Plasma NM with wrong NM version.
274161: Prevents crash when configuring 3G modem.
273894: Prevent crashes when closing kcmshell too fast after closing the connection editor.
. Fix two crashes when editing IPv4 config.
273955: Prevents dangling pointer crash.
266268: Try to adjust plasmoid size automatically.
273265: Fix crash on editing connections in KCM module.
. Update main CMakeLists.txt file to indicate that now we need at least NetworkManager-0.8.1. That is because of the IPv6 implementation, which first appeared in 0.8.1.
. Fix UUID check for DUN and NAP services in networkmanagement_configshell which prevented adding new Bluetooth connections.
272942: Change the automatic launching of Mobile Connection Wizard into a notification.
157384: Allow automatically set connection's BSSID to the BSSID of the AP selected in scanwidget.
272841: Fix crash when clicking on the VPN interface.
254155: Prevent graphical artifact during tab transition in m_interfaceDetailsWidget.
228298: Show correct WEP key type (Passphrase/Hex) when editing/showing connection secrets.
272774: Wrap interface label in InterfaceItem class, now only the first line is displayed.
. Several memory leak fixes

So in fact a *lot* of bug fixes :)

Proposal of advisory :

« This update provides a more recent snapshot of knetworkmanager fixing essentially some crash but also some bugs regarding vpn support.
Connection should also work correctly now with modem HUAWEI E220. 
»

Packages to install to test the update :

on x86_64 
lib64knminternals4 lib64knmclient4 lib64knm_nm lib64knmservice4 lib64knmui4 lib64solidcontrolfuture4 plasma-applet-networkmanagement  knetworkmanager-common

on i586
libknminternals4 libknmclient4 libknm_nm libknmservice4 libknmui4 libsolidcontrolfuture4 plasma-applet-networkmanagement  knetworkmanager-common


Regarding vpn you can install 

knetworkmanager-openvpn , knetworkmanager-vpnc , knetworkmanager-pptp

You should verify that package can install without problem.
For vpn modules you should be able to add a vpn using the configuration window.
Comment 1 claire robinson 2011-09-06 16:38:18 CEST
There is potentially alot to test here but very little information to go on so I think testing is going to be limited, especially with specific hardware required.

I've installed the packages but struggling to do anything with it (No Network Interfaces). Is it incompatible with Mageia Network Centre?

I managed to add a ptpp vpn connection but unable to activate it anywhere. All the other tabs are greyed out and non clickable.

I usually use Gnome so don't want to leave it unable to connect other than in KDE which I'm not very familiar with. I'm happy to test if possible.

Could you give some instructions please to reproduce some of the bugs, thanks.

CC: (none) => eeeemail

Comment 2 John Balcaen 2011-09-07 13:03:22 CEST
Well you can't possibly check all thoses bugfixes.
Regarding configuration with Mageia Network Center you need to enable Nm support in the Mageia Network Center & disable the start of the interface on boot so it's going to be managed by Networkmanager.

An ugly & fast workaround is to do this
-> service network stop
-> rm /etc/sysconfig/network-scripts/ifcfg-eth0 (for a wired connection)
-> service networkmanager restart
& then nm should managed your connection network.
You should be then able to configure/enable/add options via the networkmanagement applet (available in the systray if enable) or directly via systemsettings
Comment 3 claire robinson 2011-09-07 13:18:15 CEST
Thankyou John

I'll check it out. Maybe mv instead of rm though! 

Already had it unable to boot to a desktop after installing NetworkManager. Should it be made to conflict with that do you think?
Comment 4 John Balcaen 2011-09-07 13:31:02 CEST
unable to boot ?
It should not be related at all with NetworkManager since the one available in Mageia 1 does support ifcfg and should not conflict at all with mandriva's scripts.
Do you have the error message eventually ?
Comment 5 claire robinson 2011-09-07 14:54:22 CEST
It booted but after logging in the Gnome desktop would not start properly until I killed and disabled the NetworkManager service, which started at boot. 

I'll try and reproduce it and see if I can find any error messages.
Comment 6 claire robinson 2011-09-07 14:57:10 CEST
I am able to use networkmanager by chmod'ing ifcfg by the way. Just trying to reproduce bugs from the list and I will update it.
Comment 7 claire robinson 2011-09-07 17:15:18 CEST
I've been unable to reproduce the desktop problems John so not sure what was going on there.

I've been mostly unable to reproduce any of the major bugs in the list too so testing is going to be limited to whether it updates and works as it should.

The update was OK.

I have tried to setup and connect to a vpn, so far I get connection failed.

Syslog snippet:

Sep  7 16:02:37 localhost NetworkManager[20022]: <info> Starting VPN service 'pptp'...
Sep  7 16:02:37 localhost NetworkManager[20022]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 21863
Sep  7 16:02:37 localhost NetworkManager[20022]: <info> VPN service 'pptp' appeared; activating connections
Sep  7 16:02:37 localhost NetworkManager[20022]: <info> VPN plugin state changed: 1
Sep  7 16:02:37 localhost NetworkManager[20022]: <info> VPN plugin state changed: 3
Sep  7 16:02:37 localhost NetworkManager[20022]: <info> VPN connection 'vpntest' (Connect) reply received.
Sep  7 16:02:37 localhost pppd[21864]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Sep  7 16:02:37 localhost pppd[21864]: pppd 2.4.5 started by clairer, uid 0
Sep  7 16:02:37 localhost pppd[21864]: Using interface ppp0
Sep  7 16:02:37 localhost pppd[21864]: Connect: ppp0 <--> /dev/pts/3
Sep  7 16:02:37 localhost NetworkManager[20022]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Sep  7 16:02:37 localhost pptp[21866]: nm-pptp-service-21863 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Sep  7 16:03:08 localhost pppd[21864]: LCP: timeout sending Config-Requests
Sep  7 16:03:08 localhost pppd[21864]: Connection terminated.
Sep  7 16:03:08 localhost pppd[21864]: Modem hangup
Sep  7 16:03:08 localhost NetworkManager[20022]: <warn> VPN plugin failed: 1
Sep  7 16:03:08 localhost NetworkManager[20022]: <warn> VPN plugin failed: 1
Sep  7 16:03:13 localhost pppd[21864]: Exit.
Sep  7 16:03:13 localhost NetworkManager[20022]: <warn> VPN plugin failed: 1
Sep  7 16:03:13 localhost NetworkManager[20022]: <info> VPN plugin state changed: 6
Sep  7 16:03:13 localhost NetworkManager[20022]: <info> VPN plugin state change reason: 0
Sep  7 16:03:13 localhost NetworkManager[20022]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Sep  7 16:03:13 localhost NetworkManager[20022]: <info> Policy set 'mynetwork' (eth1) as default for IPv4 routing and DNS.
Sep  7 16:03:18 localhost NetworkManager[20022]: <info> VPN service 'pptp' disappeared

I'm not sure if this is down to the host vpnreactor or something wrong here. They don't give instructions for linux ptpp on their website, only openvpn (which isn't supported for free accounts), but I can't see how it could be a problem.

FWIW openvpn did try and connect but was refused as I only registered for a free account.
Comment 8 claire robinson 2011-09-07 17:29:21 CEST
I have tried with bestfreevpn.com now too and unable to connect using pptp. Same logs.
Comment 9 John Balcaen 2011-09-07 17:37:00 CEST
Well i'm only using openvpn plugin but i can't be part of the test :p
Regarding pptp i'll try tonight if i can provide more informations for testing it.
Comment 10 claire robinson 2011-09-07 17:39:07 CEST
Hmm OK, so I needed to enable PPTP passthrough on the router.

After doing, that much more happens.

It tries to negotiate the connection but says it require MPPE

When I enable MPPE in NetworkManager settings I get another error and it fails instantly.

Sep  7 16:35:44 localhost pppd[23220]: unrecognized option 'require-mppe'
Comment 11 claire robinson 2011-09-07 19:19:17 CEST
Also every 10 minutes, more or less exactly it gives these messages, not sure if it is normal behaviour..

Sep  7 18:13:02 localhost NetworkManager[20022]: <info> (eth1): supplicant connection state:  completed -> group handshake
Sep  7 18:13:02 localhost NetworkManager[20022]: <info> (eth1): supplicant connection state:  group handshake -> completed
Comment 12 claire robinson 2011-09-13 14:25:56 CEST
John I'm assigning back to you to look at.

There appears to be a bug with the PPTP VPN or one with pppd which you might decide will block it. See comment 10 and comment 11.

Overall, aside conflicting with the normal network daemon which causes the desktop to become unresponsive if ifcfg-eth* exist (difficult to workaround on boot as they are created automatically even with network daemon disabled), it connects fine and the plasma applet works well.

Tested well i586. Please reassign to QA when you're happy and I'll test x86_64 also.

Assignee: qa-bugs => balcaen.john

Comment 13 claire robinson 2011-09-13 14:26:35 CEST
Added QA to CC

CC: (none) => qa-bugs

Comment 14 John Balcaen 2011-09-29 01:54:44 CEST
ok after trying with vpnreactor i'm having the same problem as you because in fact our pppd does not support mppe.
The support is in fact disable in mageia (there's a patch for it) due to license & patent restrictions.
The vpn is working here as expected :)

CC: (none) => balcaen.john

Comment 15 Samuel Verschelde 2011-10-10 15:43:14 CEST
What's the status for this update candidate? Must QA testing continue? (currently assigned to maintainer)

CC: (none) => stormi

Comment 16 John Balcaen 2011-10-10 16:42:00 CEST
We should push it as the problem discovers by claire is not related with knetworkmanager but rather with ppp itself.
Comment 17 Samuel Verschelde 2011-10-10 16:53:52 CEST
so we can test x86_64 (claire wanted to do it, from comment #12) and then push it.

Assignee: balcaen.john => qa-bugs

Comment 18 claire robinson 2011-10-15 11:38:11 CEST
I will test this next week x86_64
Comment 19 claire robinson 2011-11-03 13:36:07 CET
Testing x86_64


service network stop
removed ifcfg-*
service networkmanager start

networkmanager controls the connection with no problems.

I'm having problems with the plasma applet.

Hovering over it says No Network Interfaces

If i click on the spanner to bring up the widget settings it is stuck on VPN and everything else is greyed out, including the add edit delete buttons.

If I click on the red cross on the where the widget should be it brings up a window with Interfaces and Connections. No interfaces are shown but enable networking is checked.

If I click in there on Manage Connections it brings up KDE Control Module which shows eth0 and all the other tabs which should be available in the widget. All are accessible and usable apart from VPN which has the buttons greyed out.

NetworkManager is controlling eth0 and I'm using it now.
Comment 20 John Balcaen 2011-11-03 13:43:27 CET
did you log out/log in after starting nm ?
The vpn is available only if you're installing a vpn plugin for knetworkmanager.
Comment 21 claire robinson 2011-11-03 13:46:41 CET
Yes you're right - it was that simple :D

duhhh!


plasma widget now working. I'll do some other tests and then validate

Thankyou John
Comment 22 claire robinson 2011-11-03 14:40:35 CET
Everything seems OK

I couldn't find a free openvpn provider I trusted to give my details to to test it with but as far as the interface is concerned it is at least accessible to configure.

I'm going to validate


Advisory
-------------
This update provides a more recent snapshot of knetworkmanager fixing
essentially some crashes but also some bugs regarding VPN support.

Connections should also work correctly now with modem HUAWEI E220.
-------------

SRPM: knetworkmanager-0.9-1.20110810.1.1.mga1.src.rpm


Could sysadmin please push from core/updates_testing to core/updates

Thankyou!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 23 Thomas Backlund 2011-11-03 23:39:28 CET
Update pushed.

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED