On Jan 3, 2013, at 4:19 PM, Andrew Shadura wrote:
> I think it is actually a bug; not sure where exactly. Try to debug it
> by changing the shebang of /lib/bridge-utils/ifupdown.sh to #!/bin/sh -x
> and see what happens. It was supposed to bring the interface up, as I
> understand.

Ah, that is useful. On wheezy for br0.4094:

if test -d /sys/class/net/br0 -a             ! -d /sys/class/net/br0.4094 ;     
then         ip link set up dev br0;         ip link add link br0 name br0.4094 
type vlan id 4094;     fi
Configuring interface br0.4094=br0.4094 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
+ [ ! -x /sbin/brctl ]
+ . /lib/bridge-utils/bridge-utils.sh
+ INTERFACES=eth0.4094
+ [ start = start ]
+ [ ! -d /sys/class/net/br0.4094 ]
+ [ start = stop ]

Full-text for wheezy (VERBOSE=y, sh -x in ifupdown.sh): 
http://paste.debian.net/221661/

Full-text for squeeze (sh -x in ifupdown.sh) (=== echo'd start of script):
http://paste.debian.net/221662/

> Probably, I can teach ifupdown to know about bridge-utils existance, so it
> won't configure the link if it sees non-empty bridge_ports parameter.
> How do you think, should it be enough?
> 
> If I do that, this part:
> 
>> if test -d /sys/class/net/br0 -a ! -d /sys/class/net/br0.4094 ;     
>> then ip link set up dev br0;   
>>        ip link add link br0 name br0.4094 type vlan id 4094;     
>> fi
> 
> will be executed if and only if bridge_ports parameter isn't specified.

I think that will do the trick. Doing so will cause brctl addbr to run as 
desired.

>> I did notice there are some issues with the down process. For example,
>> when br1 goes down, it's also removing VLAN eth0.4094 though
>> technically eth0.4094 should be responsible for its own VLAN config.
> 
> Don't really understand what exactly it is, let's try to fix (1) and
> (2) and then look into this thing — I assume you can try to get some
> debug logs.

Sounds good to me.

>> run-parts: executing /etc/network/if-pre-up.d/bridge
>> Set name-type for VLAN subsystem. Should be visible
>> in /proc/net/vlan/config ERROR: trying to add VLAN #4094 to IF
>> -:eth0:-  error: File exists run-parts:
> 
> I guess there may be a bug in bridge-utils.

This happens in squeeze also. Seems to work regardless. I suspect
something lurking there. May cause issues down the road.

Thanks,
Michael

--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to