hi enrico
> -----Original Message-----
> From: vserver-bounces@list.linux-vserver.org
> [mailto:vserver-bounces@list.linux-vserver.org] On Behalf Of
> lukas.rueegg [pixworx multimedia]
> Sent: Montag, 19. Dezember 2005 08:58
> To: vserver@list.linux-vserver.org
> Subject: [Vserver] all network interfaces go down with
> util-vserver-0.30.209
>
> hi
>
> we have a setup with kernel 2.6.14.4, just upgraded, patcht against
> vserver 2.0.1. the hosts use bridged network interfaces vor L2
> redundancy. also, we are working with VLANs to separate
> traffic between
> hosts and vservers.
>
> when we were installing util-vserver-0.30.209 every time we stopped a
> vserver, not only his private interface got down, but the whole bridge
> including all other interfaces of all vservers...
as far as I could understand vserver.functions the script
(_processSingleInterface) checks if the vlan-device is already created. if
not, it would be done by the script with a dummy address while enabling the
interface.
the same thing happens of course when the interface gets disabled. but
normally the interface then exists, so it won't be put into the
INTERFACE_CMDS_i array and therefore *not* removed.
now I suppose a bug in the line where you test the existance of the
interface:
test -f /proc/net/vlan
will allways fail (at least on our system) since it's a directory. the file
you should check against is
test -f "/proc/net/vlan/$dev"
right? if done so, it works on our installation.
here's the diff
mdr@dolomit:/usr/local/lib/util-vserver$ diff vserver.functions{,.orig}
1c1
< # $Id: vserver.functions,v 1.63mdr 2005/12/19 17:32:53 mdr Exp $ --*- sh
-*--
--- > # $Id: vserver.functions,v 1.63 2005/10/30 10:01:41 ensc Exp $ --*- sh -*-- 528c528 < test -f "/proc/net/vlan/$dev" || { --- > test -f /proc/net/vlan || { regards, martin. ___________________________________________________________________ Martin Rueegg Owner and IT staff member http://metaworx.ch metaworx rueegg mailto:support@metaworx.ch Site Office Germany Head Office Switzerland Birkentalstrasse 4 Ruetiweg 13 DE-97209 Veitshoechheim CH-8610 Uster tel: +49 (931) 710 55 90 tel: +41 (44) 99 44 044 fax: +49 (931) 970 90 88 fax: +41 (44) 99 44 043 gsm: +49 (1520) 8 563 549 gsm: +41 (79) 312 50 15 mailto:mrueegg@metaworx.ch skype: martin.rueegg ___________________________________________________________________ _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserverReceived on Mon Dec 19 16:35:29 2005