Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392281 - sys-apps/openrc: net Bridge gets destroyed before unmounting nfs shares
Summary: sys-apps/openrc: net Bridge gets destroyed before unmounting nfs shares
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 14:23 UTC by Justin Lecher (RETIRED)
Modified: 2011-12-27 08:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-11-28 14:23:37 UTC
I have configured a bridge including only eth0. During shutdown the bridge gets destroyed before unmounting any nfs share, which lets the system hang.

Current configuration, which should work from all I see from the docs:

/etc/conf.d/net:

config_eth0="null"
rc_need_br0="net.eth0"
bridge_br0="eth0"

config_br0="134.94.119.22/23 brd 134.94.119.255"
routes_br0="default via 134.94.118.1"
fallback_br0="dhcp"
dhcpcd_br0="-t 60"

brctl_br0="
   setfd 0
   sethello 0
   stp off"

/etc/rc.conf:
rc_depend_strict="YES"
Comment 1 William Hubbs gentoo-dev 2011-12-16 23:30:56 UTC
(In reply to comment #0)
> I have configured a bridge including only eth0. During shutdown the bridge gets
> destroyed before unmounting any nfs share, which lets the system hang.
> 
> Current configuration, which should work from all I see from the docs:
> 
> /etc/conf.d/net:
> 
> config_eth0="null"
> rc_need_br0="net.eth0"

What if you add the following line below the rc_need above:

rc_need_netmount="net.br0"

Does that work?
Comment 2 William Hubbs gentoo-dev 2011-12-17 02:24:37 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > I have configured a bridge including only eth0. During shutdown the bridge gets
> > destroyed before unmounting any nfs share, which lets the system hang.
> > 
> > Current configuration, which should work from all I see from the docs:
> > 
> > /etc/conf.d/net:
> > 
> > config_eth0="null"
> > rc_need_br0="net.eth0"
> 
> What if you add the following line below the rc_need above:
> 
> rc_need_netmount="net.br0"

Slight correction:

rc_need_netmount="!net net.br0"
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-12-17 14:21:04 UTC
I resetuped the whole box, and now it is fine. The only difference which I can spot, is that on the old setup, I had net.eth0 additionally in runlevel=boot activated.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-26 23:52:39 UTC
Did you test the rc_need change that was proposed?
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-12-27 08:00:44 UTC
(In reply to comment #4)
> Did you test the rc_need change that was proposed?

Sadly not.
Perhaps we should close this bug, as I cannot reproduce it anymore.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-27 08:09:58 UTC
Ok, closing then.