Enhance SR-IOV agent to handle duplicate MAC addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
New
|
Undecided
|
Unassigned |
Bug Description
There are scenarios where a VNF wishes to to have the same MAC address in different VLANs or different provider_network types.
Tested so far:
1. Same MAC address used between 2 different VLAN networks ----> Success
2. Same MAC address used between 2 different SR-IOV networks ----> Success
3. Same MAC address used between 2 different VXLAN networks ----> Success
4. Same MAC address used between SR-IOV and VXLAN networks
a)created sriov port first then vxlan port -----> Success
b)created vxlan port first then sriov port ----> this scenario sometimes works and sometimes fails. It seems to be dependent on order of values returned from ports table
Examining the code, the SR-IOV agent requests device info by MAC address which calls into the function "get_port_
Enhancement is requested to allow SR-IOV agent to request device info by MAC address but filtered on host_id as it knows which host is making the request.
There is still an edge case where this won't work if ports are on the same host - in which case an informative error should be returned.
Raised upstream as https:/