* RE: network-bridge script reworked
@ 2005-10-19 21:44 Ian Pratt
2005-10-19 22:00 ` Ted Kaczmarek
0 siblings, 1 reply; 14+ messages in thread
From: Ian Pratt @ 2005-10-19 21:44 UTC (permalink / raw)
To: Kurt Garloff, Xen development list
> I hacked on the network-bridge script.
>
> It now works much better for me:
> * we got rid of ifconfig
> * it works for netdev != eth0
> * arp on and off are symmetric as are ifdown and ifup
Didn't we decide we needed to also set 'arp off' on the bridge to avoid
the 'seen packet with own mac address' complaints?
Thanks,
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: network-bridge script reworked
2005-10-19 21:44 network-bridge script reworked Ian Pratt
@ 2005-10-19 22:00 ` Ted Kaczmarek
2005-10-19 22:10 ` Nivedita Singhvi
2005-10-19 22:40 ` Ewan Mellor
0 siblings, 2 replies; 14+ messages in thread
From: Ted Kaczmarek @ 2005-10-19 22:00 UTC (permalink / raw)
To: Ian Pratt; +Cc: Xen development list, Kurt Garloff
On Wed, 2005-10-19 at 22:44 +0100, Ian Pratt wrote:
> > I hacked on the network-bridge script.
> >
> > It now works much better for me:
> > * we got rid of ifconfig
> > * it works for netdev != eth0
> > * arp on and off are symmetric as are ifdown and ifup
>
> Didn't we decide we needed to also set 'arp off' on the bridge to avoid
> the 'seen packet with own mac address' complaints?
>
> Thanks,
> Ian
I was hoping one of those guys working for one of those big shops would
have put a tap on this by now. Would be nice to know what this ethernet
frame before disabling the arp.
Regards,
Ted
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: network-bridge script reworked
2005-10-19 22:00 ` Ted Kaczmarek
@ 2005-10-19 22:10 ` Nivedita Singhvi
2005-10-19 22:40 ` Ewan Mellor
1 sibling, 0 replies; 14+ messages in thread
From: Nivedita Singhvi @ 2005-10-19 22:10 UTC (permalink / raw)
To: Ted Kaczmarek; +Cc: Ian Pratt, Xen development list, Kurt Garloff
Ted Kaczmarek wrote:
> On Wed, 2005-10-19 at 22:44 +0100, Ian Pratt wrote:
>
>> > I hacked on the network-bridge script.
>>
>>>It now works much better for me:
>>>* we got rid of ifconfig
>>>* it works for netdev != eth0
>>>* arp on and off are symmetric as are ifdown and ifup
>>
>>Didn't we decide we needed to also set 'arp off' on the bridge to avoid
>>the 'seen packet with own mac address' complaints?
>>
>>Thanks,
>>Ian
>
>
> I was hoping one of those guys working for one of those big shops would
> have put a tap on this by now. Would be nice to know what this ethernet
> frame before disabling the arp.
Retrying stuff this afternoon with new patch (the merge done by Ewan)
and possibly patch for new patch. Stay tuned...
thanks,
Nivedita
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: network-bridge script reworked
2005-10-19 22:00 ` Ted Kaczmarek
2005-10-19 22:10 ` Nivedita Singhvi
@ 2005-10-19 22:40 ` Ewan Mellor
2005-10-19 22:59 ` Ted Kaczmarek
1 sibling, 1 reply; 14+ messages in thread
From: Ewan Mellor @ 2005-10-19 22:40 UTC (permalink / raw)
To: xen-devel
On Wed, Oct 19, 2005 at 06:00:15PM -0400, Ted Kaczmarek wrote:
> On Wed, 2005-10-19 at 22:44 +0100, Ian Pratt wrote:
> > > I hacked on the network-bridge script.
> > >
> > > It now works much better for me:
> > > * we got rid of ifconfig
> > > * it works for netdev != eth0
> > > * arp on and off are symmetric as are ifdown and ifup
> >
> > Didn't we decide we needed to also set 'arp off' on the bridge to avoid
> > the 'seen packet with own mac address' complaints?
> >
> > Thanks,
> > Ian
>
> I was hoping one of those guys working for one of those big shops would
> have put a tap on this by now. Would be nice to know what this ethernet
> frame before disabling the arp.
We have seen the old script get things into a state whereby the machine's
routing tables claim to be going through peth0 rather than eth0. At the very
least, if this happened with two Xen machines on the network, then one would
complain about packets coming from the other, and I have observed this behaviour
directly.
Can anyone claim to have seen the error message with only one Xen machine on
the network?
Ewan.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: network-bridge script reworked
2005-10-19 22:40 ` Ewan Mellor
@ 2005-10-19 22:59 ` Ted Kaczmarek
2005-10-19 23:45 ` Nivedita Singhvi
0 siblings, 1 reply; 14+ messages in thread
From: Ted Kaczmarek @ 2005-10-19 22:59 UTC (permalink / raw)
To: Ewan Mellor; +Cc: xen-devel
On Wed, 2005-10-19 at 23:40 +0100, Ewan Mellor wrote:
> On Wed, Oct 19, 2005 at 06:00:15PM -0400, Ted Kaczmarek wrote:
>
> > On Wed, 2005-10-19 at 22:44 +0100, Ian Pratt wrote:
> > > > I hacked on the network-bridge script.
> > > >
> > > > It now works much better for me:
> > > > * we got rid of ifconfig
> > > > * it works for netdev != eth0
> > > > * arp on and off are symmetric as are ifdown and ifup
> > >
> > > Didn't we decide we needed to also set 'arp off' on the bridge to avoid
> > > the 'seen packet with own mac address' complaints?
> > >
> > > Thanks,
> > > Ian
> >
> > I was hoping one of those guys working for one of those big shops would
> > have put a tap on this by now. Would be nice to know what this ethernet
> > frame before disabling the arp.
>
> We have seen the old script get things into a state whereby the machine's
> routing tables claim to be going through peth0 rather than eth0. At the very
> least, if this happened with two Xen machines on the network, then one would
> complain about packets coming from the other, and I have observed this behaviour
> directly.
>
> Can anyone claim to have seen the error message with only one Xen machine on
> the network?
>
> Ewan.
Nope, I have repeatedly tested and have only seen this when the
domU's/DomO's share a broadcast domain on the peth interface. Been
running test bed where eth0 is disconnected and xen-br0 is enslaved to
it for almost two days now. Not a single instance of this message.
Regards,
Ted
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: network-bridge script reworked
2005-10-19 22:59 ` Ted Kaczmarek
@ 2005-10-19 23:45 ` Nivedita Singhvi
2005-10-20 11:00 ` Ted Kaczmarek
0 siblings, 1 reply; 14+ messages in thread
From: Nivedita Singhvi @ 2005-10-19 23:45 UTC (permalink / raw)
To: Ted Kaczmarek; +Cc: xen-devel, Ewan Mellor
Ted Kaczmarek wrote:
>>We have seen the old script get things into a state whereby the machine's
>>routing tables claim to be going through peth0 rather than eth0. At the very
>>least, if this happened with two Xen machines on the network, then one would
>>complain about packets coming from the other, and I have observed this behaviour
>>directly.
>>
>>Can anyone claim to have seen the error message with only one Xen machine on
>>the network?
>>
>>Ewan.
>
> Nope, I have repeatedly tested and have only seen this when the
> domU's/DomO's share a broadcast domain on the peth interface. Been
> running test bed where eth0 is disconnected and xen-br0 is enslaved to
> it for almost two days now. Not a single instance of this message.
Ted, are you saying only one machine, or was that multiple machines?
Because we have not seen it with a single machine on the network (ok,
would someone from the "big shop" correct me if they have?).
Jerone has been trying to recreate it right now and hasn't seen it
so far.
I believe it is the scenario that Ewan describes above.
thanks,
Nivedita
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: network-bridge script reworked
2005-10-19 23:45 ` Nivedita Singhvi
@ 2005-10-20 11:00 ` Ted Kaczmarek
0 siblings, 0 replies; 14+ messages in thread
From: Ted Kaczmarek @ 2005-10-20 11:00 UTC (permalink / raw)
To: Nivedita Singhvi; +Cc: xen-devel, Ewan Mellor
On Wed, 2005-10-19 at 16:45 -0700, Nivedita Singhvi wrote:
> Ted Kaczmarek wrote:
>
> >>We have seen the old script get things into a state whereby the machine's
> >>routing tables claim to be going through peth0 rather than eth0. At the very
> >>least, if this happened with two Xen machines on the network, then one would
> >>complain about packets coming from the other, and I have observed this behaviour
> >>directly.
> >>
> >>Can anyone claim to have seen the error message with only one Xen machine on
> >>the network?
> >>
> >>Ewan.
> >
> > Nope, I have repeatedly tested and have only seen this when the
> > domU's/DomO's share a broadcast domain on the peth interface. Been
> > running test bed where eth0 is disconnected and xen-br0 is enslaved to
> > it for almost two days now. Not a single instance of this message.
>
> Ted, are you saying only one machine, or was that multiple machines?
> Because we have not seen it with a single machine on the network (ok,
> would someone from the "big shop" correct me if they have?).
>
> Jerone has been trying to recreate it right now and hasn't seen it
> so far.
>
> I believe it is the scenario that Ewan describes above.
>
> thanks,
> Nivedita
With 2 machines and dom0/U's sharing a broadcast domain this problem
always occurs.
Ted
^ permalink raw reply [flat|nested] 14+ messages in thread
* network-bridge script reworked
@ 2005-10-19 9:35 Kurt Garloff
2005-10-19 10:58 ` Ewan Mellor
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Kurt Garloff @ 2005-10-19 9:35 UTC (permalink / raw)
To: Xen development list
[-- Attachment #1.1: Type: text/plain, Size: 634 bytes --]
Hi,
I hacked on the network-bridge script.
It now works much better for me:
* we got rid of ifconfig
* it works for netdev != eth0
* arp on and off are symmetric as are ifdown and ifup
* ifup will be passed the ifcfg config file name if needed
(the ifup may otherwise figure that the veth0 hardware is
NOT the same as the original ${netdev} and not use the same
config -- this happens on SUSE. Charles Coffing tracked this
one down.)
Please merge.
Let me know if you prefer a patch vs. the new script.
Signed-off-by: Kurt Garloff <garloff@suse.de>
--
Kurt Garloff, Director SUSE Labs, Novell Inc.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-19 9:35 Kurt Garloff
@ 2005-10-19 10:58 ` Ewan Mellor
2005-10-19 11:15 ` Charles Duffy
2005-10-20 10:41 ` Ewan Mellor
2 siblings, 0 replies; 14+ messages in thread
From: Ewan Mellor @ 2005-10-19 10:58 UTC (permalink / raw)
To: xen-devel; +Cc: Kurt Garloff
On Wed, Oct 19, 2005 at 11:35:02AM +0200, Kurt Garloff wrote:
> Hi,
>
> I hacked on the network-bridge script.
>
> It now works much better for me:
> * we got rid of ifconfig
> * it works for netdev != eth0
> * arp on and off are symmetric as are ifdown and ifup
> * ifup will be passed the ifcfg config file name if needed
> (the ifup may otherwise figure that the veth0 hardware is
> NOT the same as the original ${netdev} and not use the same
> config -- this happens on SUSE. Charles Coffing tracked this
> one down.)
>
> Please merge.
> Let me know if you prefer a patch vs. the new script.
Either is fine.
Thanks for doing this work Kurt -- I would like to apply it straight away.
Ewan.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-19 9:35 Kurt Garloff
2005-10-19 10:58 ` Ewan Mellor
@ 2005-10-19 11:15 ` Charles Duffy
2005-10-20 10:41 ` Ewan Mellor
2 siblings, 0 replies; 14+ messages in thread
From: Charles Duffy @ 2005-10-19 11:15 UTC (permalink / raw)
To: xen-devel
Kurt Garloff wrote:
> It now works much better for me:
> * we got rid of ifconfig
> * it works for netdev != eth0
> * arp on and off are symmetric as are ifdown and ifup
> * ifup will be passed the ifcfg config file name if needed
> (the ifup may otherwise figure that the veth0 hardware is
> NOT the same as the original ${netdev} and not use the same
> config -- this happens on SUSE. Charles Coffing tracked this
> one down.)
Does this updated network-bridge, like my patch posted to this list on
10/14 under the title "[PATCH] network-bridge script support for
multiple external interfaces", allow support for multiple loopback
interfaces?
I have a situation where my Xen host has physical interfaces on multiple
networks and gives Xen instances access to one or the other based on
where they're supposed to be; this implies modifying all the hardcoded
references to veth0 or vif0.0.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-19 9:35 Kurt Garloff
2005-10-19 10:58 ` Ewan Mellor
2005-10-19 11:15 ` Charles Duffy
@ 2005-10-20 10:41 ` Ewan Mellor
2005-10-20 18:22 ` Kurt Garloff
2 siblings, 1 reply; 14+ messages in thread
From: Ewan Mellor @ 2005-10-20 10:41 UTC (permalink / raw)
To: xen-devel; +Cc: Kurt Garloff
On Wed, Oct 19, 2005 at 11:35:02AM +0200, Kurt Garloff wrote:
> I hacked on the network-bridge script.
Kurt, this line
eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- ${netdev}`
looks a bit SuSE-specific to me. It's certainly not working on my Debian
system. What's the intention here? Do you know what we can do to make this
more portable?
Ewan.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-20 10:41 ` Ewan Mellor
@ 2005-10-20 18:22 ` Kurt Garloff
2005-10-21 13:48 ` Ewan Mellor
0 siblings, 1 reply; 14+ messages in thread
From: Kurt Garloff @ 2005-10-20 18:22 UTC (permalink / raw)
To: Ewan Mellor; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1295 bytes --]
Hi Ewan,
On Thu, Oct 20, 2005 at 11:41:00AM +0100, Ewan Mellor wrote:
> Kurt, this line
>
> eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- ${netdev}`
>
> looks a bit SuSE-specific to me.
Right, I should have removed that hunk or at least do something like
test -e /etc/SuSE-release && eval `...`
Sorry!
> It's certainly not working on my Debian system.
Networking setup scripts differ quite a lot between distributions,
unfortunately.
> What's the intention here?
It sets HWD_CONFIG_0 which is used a bit later
if ! ifup ${HWD_CONFIG_0} ${netdev} ; then
and does make sure, ifup uses the right configuration file for your
network device. The issue is that ifup (on SUSE) does more than looking
at the MAC address to identify a network interface and locate the right
config file.
> Do you know what we can do to make this more portable?
The config file matching may not be an issue on other distros, so the
test -e solution is not that bad. If you dislike it, please let me know;
we'll carry it around as custom patch then. It would of course not help
those folks that test your upstream versions rather than our RPMs, so I
think that's the second best solution.
Best,
--
Kurt Garloff, Director SUSE Labs, Novell Inc.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-20 18:22 ` Kurt Garloff
@ 2005-10-21 13:48 ` Ewan Mellor
2005-10-21 14:44 ` Kurt Garloff
0 siblings, 1 reply; 14+ messages in thread
From: Ewan Mellor @ 2005-10-21 13:48 UTC (permalink / raw)
To: xen-devel; +Cc: Kurt Garloff
On Thu, Oct 20, 2005 at 08:22:20PM +0200, Kurt Garloff wrote:
> Hi Ewan,
>
> On Thu, Oct 20, 2005 at 11:41:00AM +0100, Ewan Mellor wrote:
> > Kurt, this line
> >
> > eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- ${netdev}`
> >
> > looks a bit SuSE-specific to me.
>
> Right, I should have removed that hunk or at least do something like
> test -e /etc/SuSE-release && eval `...`
Is this a reasonable solution:
if [ -e /etc/SuSE-release ]
then
ifup()
{
eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
/sbin/ifup ${HWD_CONFIG_0} $1
}
ifdown()
{
eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
/sbin/ifdown ${HWD_CONFIG_0} $1
}
In other words, override ifup and ifdown to do the right thing on SuSE. That
way, in our scripts we can just write "ifup eth0". We already are doing this
for Gentoo, so this would be my preferred solution, as it keeps all the
distro-specific stuff out of the script bodies.
My only doubt is that you use the eval before ifup and ifdown in op_start(),
but not in op_stop(), and I wonder whether that is important.
Ewan.
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: network-bridge script reworked
2005-10-21 13:48 ` Ewan Mellor
@ 2005-10-21 14:44 ` Kurt Garloff
0 siblings, 0 replies; 14+ messages in thread
From: Kurt Garloff @ 2005-10-21 14:44 UTC (permalink / raw)
To: Ewan Mellor; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1521 bytes --]
On Fri, Oct 21, 2005 at 02:48:09PM +0100, Ewan Mellor wrote:
> On Thu, Oct 20, 2005 at 08:22:20PM +0200, Kurt Garloff wrote:
> Is this a reasonable solution:
>
> if [ -e /etc/SuSE-release ]
> then
> ifup()
> {
> eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
> /sbin/ifup ${HWD_CONFIG_0} $1
> }
> ifdown()
> {
> eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
> /sbin/ifdown ${HWD_CONFIG_0} $1
> }
I like the approachm but it won't work.
The reason is that we do the eval before the renaming of network
interfaces.
So we get the config of the physical device in ${HWD_CONFIG_0}, then
do the renaming, reassignment of MAC addresses and then use the config
to ifup the virtual device.
> In other words, override ifup and ifdown to do the right thing on SuSE. That
> way, in our scripts we can just write "ifup eth0". We already are doing this
> for Gentoo, so this would be my preferred solution, as it keeps all the
> distro-specific stuff out of the script bodies.
>
> My only doubt is that you use the eval before ifup and ifdown in op_start(),
> but not in op_stop(), and I wonder whether that is important.
It's cleaner and safer to do it at both places.
But it's hard to get it right due to the interface renaming for ifdown.
So I did not address this: ifdown does little more than ip link down and
kill dhcpcd ... so this is not an issue in real life.
Best,
--
Kurt Garloff, Director SUSE Labs, Novell Inc.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-10-21 14:44 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19 21:44 network-bridge script reworked Ian Pratt
2005-10-19 22:00 ` Ted Kaczmarek
2005-10-19 22:10 ` Nivedita Singhvi
2005-10-19 22:40 ` Ewan Mellor
2005-10-19 22:59 ` Ted Kaczmarek
2005-10-19 23:45 ` Nivedita Singhvi
2005-10-20 11:00 ` Ted Kaczmarek
-- strict thread matches above, loose matches on Subject: below --
2005-10-19 9:35 Kurt Garloff
2005-10-19 10:58 ` Ewan Mellor
2005-10-19 11:15 ` Charles Duffy
2005-10-20 10:41 ` Ewan Mellor
2005-10-20 18:22 ` Kurt Garloff
2005-10-21 13:48 ` Ewan Mellor
2005-10-21 14:44 ` Kurt Garloff
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.