Bug #1792
Problem with duplicated MACs on filtering with Open vSwitch
Status: | Closed | Start date: | 03/02/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Jaime Melis | % Done: | 0% | |
Category: | Drivers - Auth | |||
Target version: | Release 4.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.8 |
Description
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.
Related issues
Associated revisions
bug #1792: Add dl_vlan filter contributed by Oriol Marti
bug #1792: Add dl_vlan filter contributed by Oriol Marti
(cherry picked from commit 37e144a8a51ad6221e2d739addc885f301710d7f)
History
#1 Updated by Ruben S. Montero over 8 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
Thanks
#2 Updated by Ruben S. Montero over 8 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed
Now in master!