Same mac-address on two different VNs should be allowed

Bug #1424773 reported by Vedamurthy Joshi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.1
Fix Committed
Medium
Prakash Bailkeri
Trunk
Fix Committed
Medium
Prakash Bailkeri

Bug Description

R2.1 Build 36 Ubuntu 12.04.3 Icehouse

There is a port with MAC 00:00:00:00:00:01 on vn1
Same mac on vn30 is not allowed.

In std openvswitch, it does allow.

root@nodei34:/var/log/contrail# neutron port-create vn30 --mac-address 00:00:00:00:00:01
409-{u'NeutronError': {u'message': u'Unable to complete operation for network cca982dc-b5bf-4867-8a16-16588290a118. The mac address 00:00:00:00:00:01 is in use.', u'type': u'MacAddressInUse', u'detail': u''}}
root@nodei34:/var/log/contrail# neutron port-list |grep 00:00:00:00:00:01
| ebcef198-70e0-49e5-900d-fad79617e2df | ebcef198-70e0-49e5-900d-fad79617e2df | 00:00:00:00:00:01 | {"subnet_id": "7dab9edf-a475-429f-b554-70f0f8a77f1d", "ip_address": "10.1.0.3"} |
root@nodei34:/var/log/contrail# neutron subnet-list
+--------------------------------------+------+-------------+----------------------------------------------+
| id | name | cidr | allocation_pools |
+--------------------------------------+------+-------------+----------------------------------------------+
| 7dab9edf-a475-429f-b554-70f0f8a77f1d | | 10.1.0.0/16 | {"start": "10.1.0.2", "end": "10.1.255.254"} |
| 52ab4a8a-d640-4250-8d21-8cb5805e6f5e | | 30.1.1.0/24 | {"start": "30.1.1.2", "end": "30.1.1.254"} |
+--------------------------------------+------+-------------+----------------------------------------------+
root@nodei34:/var/log/contrail#

root@nodei34:/var/log/contrail# neutron net-list
+--------------------------------------+-------------------------+--------------------------------------------------+
| id | name | subnets |
+--------------------------------------+-------------------------+--------------------------------------------------+
| 5688de8c-a2cb-4b9d-8bcd-1f44d51e445b | ip-fabric | |
| 3a6b5471-d537-48a1-86ff-ff6f1a51be96 | __link_local__ | |
| fa55dbdb-7a51-4817-877d-c002539a0b31 | default-virtual-network | |
| 6943e235-f74d-4d59-883d-a829a3778b63 | vn1 | 7dab9edf-a475-429f-b554-70f0f8a77f1d 10.1.0.0/16 |
| cca982dc-b5bf-4867-8a16-16588290a118 | vn30 | 52ab4a8a-d640-4250-8d21-8cb5805e6f5e 30.1.1.0/24 |
+--------------------------------------+-------------------------+--------------------------------------------------+
root@nodei34:/var/log/contrail#

Tags: neutron
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/8723
Submitter: Prakash Bailkeri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/8723
Committed: http://github.org/Juniper/contrail-controller/commit/113b674ca3d37d01749a39dcdf2d724fc6f421c6
Submitter: Zuul
Branch: master

commit 113b674ca3d37d01749a39dcdf2d724fc6f421c6
Author: Prakash Bailkeri <email address hidden>
Date: Mon Mar 30 04:30:20 2015 -0700

Allow same mac for VMIs across VN

While doing MAC address unique check, project uuid is passed as parent_uuid. This causes
all ports belonging to project to be returned.

Query port with only back_ref_id = VN-uuid. This will return ports in VN where port is getting created.

Change-Id: I6afe9a511ff26674643228f2d841a1b638dbec37
Closes-Bug: 1424773

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.1

Review in progress for https://review.opencontrail.org/9064
Submitter: Prakash Bailkeri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/9064
Committed: http://github.org/Juniper/contrail-controller/commit/4075451e8adcb8899da2d79c75cbef0e4715cbfb
Submitter: Zuul
Branch: R2.1

commit 4075451e8adcb8899da2d79c75cbef0e4715cbfb
Author: Prakash Bailkeri <email address hidden>
Date: Mon Mar 30 04:30:20 2015 -0700

Allow same mac for VMIs across VN

While doing MAC address unique check, project uuid is passed as parent_uuid. This causes
all ports belonging to project to be returned.

Query port with only back_ref_id = VN-uuid. This will return ports in VN where port is getting created.

Change-Id: I6afe9a511ff26674643228f2d841a1b638dbec37
Closes-Bug: 1424773

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.