[ovs-git] Open vSwitch: xenserver: In vif script, tolerate port existing when we (re)add it. (next)

dev at openvswitch.org dev at openvswitch.org
Thu Feb 25 22:51:15 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, next has been updated
       via  867cc7bd395b32a3516112127a04d41d9f1b15fc (commit)
       via  dcdf169e831c0697f04eecbdda216959eace2ce8 (commit)
       via  a9f4baa6d0f0210cbd40500b968173e63380665e (commit)
      from  7e56c85c02c547deda93ec09a589eae7e253fc58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 867cc7bd395b32a3516112127a04d41d9f1b15fc
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=867cc7bd395b32a3516112127a04d41d9f1b15fc
Author: Ben Pfaff <blp at nicira.com>
		
xenserver: In vif script, tolerate port existing when we (re)add it.
		
When a Windows VM boots, it initially has "vif" devices.  Then, when
XS Tools loads during boot, those "vif" devices disappear and then are
recreated under the same name.  The vif script is not called to remove
the old devices, but it is called to add the new ones.  It refused to do
this, however, because it saw the new device as having a duplicate name
(because the old was wasn't deleted).

This commit fixes the problem by making the vif script delete the port,
if it exists, before it adds it.

Bug #2425.

CC: Ian Campbell <ian.campbell at citrix.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


commit dcdf169e831c0697f04eecbdda216959eace2ce8
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=dcdf169e831c0697f04eecbdda216959eace2ce8
Author: Ben Pfaff <blp at nicira.com>
		
ovs-brcompatd: Delete Bridge record when deleting a bridge.
		
del_bridge() removed the reference to the Bridge record from the
Open_vSwitch table, but it didn't actually delete the Bridge record itself.
This fixes the problem.

Bug #2425.


commit a9f4baa6d0f0210cbd40500b968173e63380665e
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a9f4baa6d0f0210cbd40500b968173e63380665e
Author: Ben Pfaff <blp at nicira.com>
		
ovs-brcompatd: Fix dangling reference in del_port().
		
Until now, del_port() was deleting Interface records without deleting the
Port record that referred to them.  OVSDB rejected that because it would
have caused a dangling reference from the Port to the Interfaces.  This
commit fixes the problem.

Bug #2425.


-----------------------------------------------------------------------

Summary of changes:
 vswitchd/ovs-brcompatd.c            |    5 +++++
 xenserver/etc_xensource_scripts_vif |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list