summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorBalazs Gibizer <balazs.gibizer@est.tech>2022-02-15 13:56:34 +0100
committerBalazs Gibizer <gibi@redhat.com>2022-04-21 11:31:05 +0200
commit4e78aaa694683f812d091a794bd140a7d363dd9b (patch)
tree137610470e0e854bd3dbc72fec631c674b37364b /releasenotes
parentfc3d3cc8242f0f42004b7d6aaae470cc9a182716 (diff)
downloadneutron-4e78aaa694683f812d091a794bd140a7d363dd9b.tar.gz
Update port MAC from binding profile for PFs
Today Nova updates the mac_address of a direct-physical port to reflect the MAC address of the physical device the port is bound to. But this can only be done before the port is bound. However during migration Nova is not able to update the MAC when the port is bound to a different physical device on the destination host. This patch extends port binding logic for direct-physical ports to allow providing the MAC address of the physical device via the binding profile. If it is provided then Neutron overwrites the value of the mac_address field of the port with the value from the active binding profile. Also when the port is being unbound or the MAC address is removed from the active binding porfile then neutron resets the mac_address field of port to a generated MAC to avoid duplicated MAC issues when another port is being bound to the same physical device. The shim API extension for this change is being proposed in I54b4c85ffc4856fba7ad5e9e29f77f74815e1275 in neutron-lib. Depends-On: https://review.opendev.org/c/openstack/neutron-lib/+/831935 Closes-Bug: #1942329 Change-Id: Ib0638f5db69cb92daf6932890cb89e83cf84f295
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/bug-1942329-7687504f9b177f80.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/releasenotes/notes/bug-1942329-7687504f9b177f80.yaml b/releasenotes/notes/bug-1942329-7687504f9b177f80.yaml
new file mode 100644
index 0000000000..707e6aba19
--- /dev/null
+++ b/releasenotes/notes/bug-1942329-7687504f9b177f80.yaml
@@ -0,0 +1,14 @@
+---
+fixes:
+ - |
+ `1942329 <https://bugs.launchpad.net/neutron/+bug/1942329>`_
+ Port binding logic for direct-physical ports has been extended to allow
+ providing the MAC address of the physical device via the binding profile.
+ If it is provided then Neutron overwrites the value of the
+ ``device_mac_address`` field of the port object in the database with the
+ value from the active binding profile.
+ If there are ports bound before `the nova side of this fix is depolyed
+ <https://review.opendev.org/c/openstack/nova/+/829248>`_ then the VM using
+ the port needs to be moved or the port needs to be detached and re-attached
+ to force nova to provide the MAC address of the direct-physical port in the
+ port binding.