Plugging a VIFOpenVSwitch vif creates extraneous linux bridge and veth pair
Bug #1595614 reported by
Rawlin Peters
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-vif |
Fix Released
|
Undecided
|
Rawlin Peters |
Bug Description
A vif of type VIFOpenVSwitch only needs to be attached directly to the OVS bridge. However, due to VIFOpenVSwitch inheriting from VIFBridge, the ovs plugin incorrectly tries to plug the VIFOpenVSwitch vif like a VIFBridge. Because of this, the ovs plugin creates an extraneous linux bridge and connects it to the target OVS bridge using a veth pair. We end up with the following example: http://
Changed in os-vif: | |
assignee: | nobody → Rawlin Peters (rawlin-peters) |
Changed in os-vif: | |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/333486 /git.openstack. org/cgit/ openstack/ os-vif/ commit/ ?id=d5b119ba37d 5c724d1279cb229 2dce05c32b51a0
Committed: https:/
Submitter: Jenkins
Branch: master
commit d5b119ba37d5c72 4d1279cb2292dce 05c32b51a0
Author: Rawlin Peters <email address hidden>
Date: Thu Jun 23 10:34:25 2016 -0600
Don't create extraneous linux bridge/veth pair for VIFOpenVSwitch
VIFOpenVSwitch vifs will be booted by libvirt directly on the target
bridge. Don't create an extraneous linux bridge with a veth pair
connection to the target bridge.
VIFOpenVSwitch inherits from VIFBridge, so the following check causes
_plug_bridge() to be incorrectly executed for vifs of type
VIFOpenVSwitch:
if isinstance(vif, objects. vif.VIFBridge) :
self. _plug_bridge( vif, instance_info)
Fix this to check for instances of VIFOpenVSwitch first and do nothing
in that case.
Closes-Bug: #1595614 c21fa714b76f4cb 1f5e79846ae
Change-Id: I447395cc50aa8f