[ovs-dev] [PATCH] rhel: fix ifup-ovs to delete ports first

Flavio Leitner fbl at redhat.com
Tue Jul 21 19:52:01 UTC 2015


On Tue, Jul 21, 2015 at 11:38:01AM -0700, Ben Pfaff wrote:
> On Fri, Jul 17, 2015 at 01:56:21PM -0300, Flavio Leitner wrote:
> > When ifdown isn't executed (system didn't shut down properly),
> > the interfaces remain in the openvswitch's database.  For the
> > internal ports or devices that are available when openvswitch
> > service starts that's not an issue.
> > 
> > However, ovs-vsctl won't do anything for devices created later
> > (Linux vlan devices for instance) since they are already in the
> > database. That leaves a inconsistency behind because they will
> > be left out of the kernel's datapath.
> > 
> > The ifup/ifdown will operate only on configured interfaces, so
> > this patch fixes the issue by deleting the interface from the
> > database before attempt to configure it.
> > 
> > Signed-off-by: Flavio Leitner <fbl at redhat.com>
> 
> Applied to master, with Jiri's ack, thanks!  Let me know if you want a
> backport to branch-2.4 or branch-2.3 or both.

This can save OSP users when the system crashes, for instance.
I'd say to apply on both.

Thanks Ben,
fbl



More information about the dev mailing list