Bug 364 - network shutdown by connman caused the NFS hang during qemu poweroff/reboot
Summary: network shutdown by connman caused the NFS hang during qemu poweroff/reboot
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 0.9 M4
Assignee: Dongxiao Xu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-09-29 20:04 UTC by Lianhao Lu
Modified: 2010-12-21 06:07 UTC (History)
7 users (show)

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


Attachments

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