Bug #1792

Problem with duplicated MACs on filtering with Open vSwitch

Added by Oriol Marti over 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:03/02/2013
Priority:NormalDue date:
Assignee:Jaime Melis% Done:


Category:Drivers - Auth
Target version:Release 4.0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.8


There's a bug when you create 2 VNETs with the same range of IPs, if ONE decides to put two VMs in the same node you could have the same MAC for two VMs, the problem arrives if you have defined BLACK or WHITE ports or ICMP rules, then you will have all the dropped ports to the two machines.
This is caused by the rules with ovs-ofctl are applied by MAC, then as you have the same MAC in different VMs, the openvswitch does not know which port is referring and it applies the rule for the two ports.

I've resolved the problem by adding the tag dl_vlan when you are adding the rule, with this tag you specify the vlan tag that the port you want to filter has. If you don't have tags in the vlans I think this problem does not have solution, but in my case, I have modified the sunstone interface to don't show the VLAN select and is sending "YES"

I've modified the file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb sending the dl_vlan parameter to the ovs-ofctl if you have set the VLAN variable to YES. Attached you can file the file.

OpenvSwitch.rb Magnifier - Modified file /var/lib/one/remotes/vnm/ovswitch/OpenvSwitch.rb (4.9 KB) Oriol Marti, 03/02/2013 10:39 PM

Related issues

Duplicated by Bug #1787: the filtering rules for openvswitch don't work properly i... Closed 02/27/2013

Associated revisions

Revision 37e144a8
Added by Ruben S. Montero about 7 years ago

bug #1792: Add dl_vlan filter contributed by Oriol Marti

Revision 5a61ed4d
Added by Ruben S. Montero about 7 years ago

bug #1792: Add dl_vlan filter contributed by Oriol Marti

(cherry picked from commit 37e144a8a51ad6221e2d739addc885f301710d7f)


#1 Updated by Ruben S. Montero over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Jaime Melis
  • Target version changed from Release 3.8.3 to Release 4.0

THANKS for the patch!!!

We'll take a look ASAP and merge it upstream


#2 Updated by Ruben S. Montero about 7 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Now in master!

Also available in: Atom PDF