Bug 3804

Summary: connman offline mode doesn't work on qemu images
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: connectivityAssignee: Cristian Iorga <cristian.iorga>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: hongxu.jia, liang.li2, meta.mr.watcher, meta.watcher, Qi.Chen, ross.burton, sgw, sstncr, yi.zhao
Version: 1.4   
Target Milestone: 1.4 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on: 3227    
Bug Blocks:    

Description Yi Zhao 2013-01-29 08:38:35 UTC
Image location: http://autobuilder.yoctoproject.org/pub/nightly/20130122-2/
Tree/Branch: poky/master
Git Rev: 8d6e55bf2192524bda84138b5356a2791adbbe61

Steps:
1. Launch connman-properties after system booting
2. choose "offline mode" and check the connection of all network interfaces

There is no response when click the "OfflineMode" button. the network interfaces still connect.
Comment 1 Ross Burton 2013-01-30 12:44:46 UTC
This is probably because we're telling connman to ignore the statically configure networking channel.
Comment 2 Stefan Stanacar 2013-02-05 15:15:21 UTC
Hi Yi,

For qemu machines connman doesn't manage any ethX interface anymore, so all connman networking tests on qemu are irrelevant. 

Have a look at /etc/connman/main.conf:

[General]

NetworkInterfaceBlacklist = eth


Commit 7048fbdc05c1f2d9acaf1052550dec792c1f18da introduced connman-conf recipe for all qemu machines, blacklisting eth interfaces. The reason behind the change was that on qemu machines the interface is statically configured anyway at boot time (runqemu passes an ip to qemu) and restarting connman would have killed the network (reconfiguring the interface).
So, I'm not really sure how we should handle this, given that all connman tests on qemu are now irrelevant...
Comment 3 Cristian Iorga 2013-02-21 09:41:45 UTC
Hello, this situation is generated by a previous patch that I have introduced, meant to stop connman from messing up with qemu machines network configuration.
As a side effect, wired interface (in this case eth0) are no longer under connman's control.
A better fix is in the work.
The situation is a little bit difficult because of connman's inability of providing ethernet provisioning.
Comment 4 Cristian Iorga 2013-03-01 16:53:17 UTC
In connman 1.12, Ethernet provisioning is introduced.
Comment 6 Yi Zhao 2013-03-19 12:15:56 UTC
Verified with master branch: 4da406cd50cf02a63ed76810a670aba1eb561c79