Bug 3804 - connman offline mode doesn't work on qemu images
Summary: connman offline mode doesn't work on qemu images
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4 M4
Assignee: Cristian Iorga
QA Contact:
URL:
Whiteboard:
Depends on: 3227
Blocks:
  Show dependency tree
 
Reported: 2013-01-29 08:38 UTC by Yi Zhao
Modified: 2013-03-19 12:15 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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