Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111078 - During shutdown netmount tries to stop after net.br0 is brought down, hangs shutdown process.
Summary: During shutdown netmount tries to stop after net.br0 is brought down, hangs s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 18:40 UTC by Joe Kowalski
Modified: 2005-11-10 18:36 UTC (History)
1 user (show)

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 Joe Kowalski 2005-10-31 18:40:10 UTC
I have a virtual ethernet bridge (net.br0) configured on my system that bridges   
my virtual tap device (setup using vde) with my physical eth0 device.   
My /etc/conf.d/net is below:  
  
# /etc/conf.d/net:  
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18  
19:39:22 azarah Exp $  
  
# Global config file for net.* rc-scripts  
  
# This is basically the ifconfig argument without the ifconfig $iface  
#  
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"  
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"  
  
# For DHCP set iface_eth? to "dhcp"  
# For passing options to dhcpcd use dhcpcd_eth?  
#  
config_eth0=( "null" )  
  
config_tap0=( "null" )  
depend_tap0() {  
  need vde  
}  
  
brctl_br0=( "setfd 1" "sethello 1" "stp on" )  
bridge_br0="eth0 tap0"  
config_br0=( "dhcp" )  
depend_br0() {  
  need net.eth0 net.tap0  
}  
  
  
# For adding aliases to a interface  
#  
#alias_eth0="192.168.0.3 192.168.0.4"  
  
# NB:  The next is only used for aliases.  
#  
# To add a custom netmask/broadcast address to created aliases,  
# uncomment and change accordingly.  Leave commented to assign  
# defaults for that interface.  
#  
#broadcast_eth0="192.168.0.255 192.168.0.255"  
#netmask_eth0="255.255.255.0 255.255.255.0"  
  
  
# For setting the default gateway  
#  
#gateway="eth0/192.168.0.1"  
  
This networking configuration works quite well, and makes it very easy to have  
qemu machines access my whole local network.  However, netmount seems to forget  
that it needs a network as a dependency during shutdown, and thus my cifs mount  
can't be unmounted, and the shutdown hangs. This is with baselayout-1.11.13-r1. 
  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
The 'need net' dependency in netmount should recognize when a net.brx is the 
network connection needed to unmount a network filesystem during shutdown.
Comment 1 Joe Kowalski 2005-10-31 18:42:45 UTC
Okay, I should clarify, during shutdown/reboot, netmount is trying to stop 
AFTER net.br0 is stopped. 
Comment 2 SpanKY gentoo-dev 2005-10-31 18:55:21 UTC
you neglected to post `emerge info` like the bug report page told you to
Comment 3 Joe Kowalski 2005-11-01 02:08:07 UTC
This issue predates moving my system to gcc4: 
  
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-4.0.2, glibc-2.3.5-r2,  
2.6.14 x86_64)  
=================================================================  
System uname: 2.6.14 x86_64 AMD Athlon(tm) 64 Processor 3000+  
Gentoo Base System version 1.6.13  
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)  
[disabled]  
ccache version 2.3 [enabled]  
dev-lang/python:     2.3.5-r2, 2.4.2  
sys-apps/sandbox:    1.2.12  
sys-devel/autoconf:  2.13, 2.59-r6  
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1  
sys-devel/binutils:  2.16.1  
sys-devel/libtool:   1.5.20  
virtual/os-headers:  2.6.11-r2  
ACCEPT_KEYWORDS="amd64"  
AUTOCLEAN="yes"  
CBUILD="x86_64-pc-linux-gnu"  
CFLAGS="-march=athlon64 -Os -pipe"  
CHOST="x86_64-pc-linux-gnu"  
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/devel/env /usr/kde/devel/share/config /usr/kde/devel/shutdown /usr/lib/X11/xkb /usr/share/config /var/qmail/control"  
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"  
CXXFLAGS="-march=athlon64 -Os -pipe"  
DISTDIR="/usr/portage/distfiles"  
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"  
GENTOO_MIRRORS="http://gentoo.ccccom.com http://distfiles.gentoo.org   
http://www.ibiblio.org/pub/Linux/distributions/gentoo"  
MAKEOPTS="-j2"  
PKGDIR="/usr/portage/packages"  
PORTAGE_TMPDIR="/var/tmp"  
PORTDIR="/usr/portage"  
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/kde-live"  
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"  
USE="amd64 X alsa berkdb bitmap-fonts cdr crypt cups curl eds emboss encode  
flac foomaticdb fortran gdbm gif gpm gstreamer gtk2 imagemagick imlib java jpeg  
kde lzw lzw-tiff mad mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pam pdflib  
perl png python qt quicktime readline samba sdl spell sqlite ssl tcltk tcpd  
tiff truetype-fonts type1-fonts udev usb userlocales vorbis xine xinerama xml2  
xpm xv zlib userland_GNU kernel_linux elibc_glibc"  
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS  
  
  
Comment 4 Joe Kowalski 2005-11-01 05:09:22 UTC
Reopening, info provided.
Comment 5 SpanKY gentoo-dev 2005-11-01 20:30:55 UTC
iirc this is supposed to be fixed with baselayout-1.12.x ... care to test that
for us please ?
Comment 6 Joe Kowalski 2005-11-04 08:37:24 UTC
Okay, I installed baselayout 1.12.0_pre9-r1, ran etc-update and updated all the
config files.  This bug is still there.  After the update, I manually shutdown
netmount and rebooted.  When I tried to reboot again (with the whole system
booted under the new baselayout), it hung on unmounting my cifs mount as the
network had already been brought down.
Comment 7 SpanKY gentoo-dev 2005-11-04 10:30:34 UTC
uberlord: input ?
Comment 8 Roy Marples (RETIRED) gentoo-dev 2005-11-04 11:16:40 UTC
Sounds just like bug #104394 to me

I think we need Az on this one
Comment 9 Roy Marples (RETIRED) gentoo-dev 2005-11-07 08:16:20 UTC
Reporter, please post the output of

ls -l /etc/runlevels/*/netmount
Comment 10 Joe Kowalski 2005-11-10 09:34:26 UTC
Requested info provided:

ls -l /etc/runlevels/*/netmount
lrwxrwxrwx  1 root root 20 Nov  5 07:33 /etc/runlevels/default/netmount ->
/etc/init.d/netmount
Comment 11 Roy Marples (RETIRED) gentoo-dev 2005-11-10 09:49:07 UTC
Reporter, can you emerge pre10 and download this script into /etc/init.d
http://dev.gentoo.org/~uberlord/baselayout/trace-test

Start it and attach the output here please.
Comment 12 Joe Kowalski 2005-11-10 18:36:14 UTC
Okay, I updated to baselayout-1.12.0_pre10-r1 and ran etc-update.   I then
installed and ran the trace-test.  The output is as follows:
----------------------------------------------------------
sudo /etc/init.d/trace-test start
Password:
Boot services:
checkroot hostname modules checkfs localmount clock domainname bootmisc keymaps
hotplug consolefont coldplug net.lo rmnologin serial urandom

default services
checkroot hostname modules checkfs localmount clock domainname bootmisc coldplug
hotplug alsasound net.eth0 vde net.tap0 net.br0 net.lo syslog-ng cupsd
foldingathome dbus hald lm_sensors keymaps consolefont netmount ntpd rmnologin
serial splash sshd urandom vixie-cron xdm local

Shutdown services
local xdm vixie-cron urandom sshd splash serial rmnologin ntpd netmount
lm_sensors hald foldingathome dbus cupsd syslog-ng net.lo net.br0 net.tap0 vde
net.eth0 consolefont keymaps alsasound hotplug coldplug bootmisc domainname
clock localmount checkfs modules hostname checkroot
------------------------------------------------------------

The latest baselayout fixed this one.  As is indicated in the shutdown portion
of the trace-test, netmount is stopping before the network interface does, and
thus is able to properly unmount the cifs mount.