Bug 364

Summary: network shutdown by connman caused the NFS hang during qemu poweroff/reboot
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Lianhao Lu <lianhao.lu>
Component: meta-yoctoAssignee: Dongxiao Xu <dongxiao.xu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dongxiao.xu, jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Lianhao Lu 2010-09-29 20:04:43 UTC
During the poweroff/restart of a nfs rootfs based qemu runtime, th network is shutdown by connman, which cause the poweroff/restart process hang with the output "nfs: server 192.168.7.1 not responding, still trying"
Comment 1 Jessica 2010-09-29 21:10:09 UTC
Lianhao,

Couple things to clarify for the bug:
1. nfs rootfs, you mean unfs right since there's old nfs support in poky-qemu
2. poweroff/restart of qemu you mean select the "shutdown" icon in qemu?
Comment 2 Lianhao Lu 2010-09-29 21:14:00 UTC
(In reply to comment #1)
> Lianhao,
> 
> Couple things to clarify for the bug:
> 1. nfs rootfs, you mean unfs right since there's old nfs support in poky-qemu

yes, it's should be unfs.

> 2. poweroff/restart of qemu you mean select the "shutdown" icon in qemu?
I booted the qemu into run level 3 instead of 5, and typed poweroff/restart. The run level 5 Sato should have the same issue.
Comment 3 Dongxiao Xu 2010-09-29 22:46:01 UTC
Currently when quit connmand, it will disconnect the network interfaces that are under its control. When shutdown or reboot, system will kill all the processes including connmand, which caused this bug.

Just have a talk with the MeeGo Connman owner, he said this was a design flaw that connman may not cover currently.

A workaround is to detect if system is using nfs. If so, connman should NOT take over the interface ownership.
Comment 5 Lianhao Lu 2010-10-17 20:03:50 UTC
Verified in M4 RC2.