neutron/releasenotes/notes/add-port-provisioning-retry-8edf16a258b164a0.yaml
Rodolfo Alonso Hernandez 2d2d650a20 Add an active wait during the port provisioning event
In ML2/OVN, during a live-migration process, it could
happend that the port provisioning event is received before
the port binding has been updated. That means the port has
been created in the destination host and the event received
(this event will remove any pending provisioning block). But
the Nova port binding request has not arrived yet, updating
the port binding registers. Because the port is considered
"not bound" (yet), the port provisioning doesn't set the port
status to ACTIVE.

This patch creates an active wait during the port provisioning
event method. If the port binding is still "unbound", the method
retries the port retrieval several times, giving some time to the
port binding request from Nova to arrive.

Conflicts:
    neutron/plugins/ml2/plugin.py

Closes-Bug: #1988199
Change-Id: I50091c84e67c172c94ce9140f23235421599185c
(cherry picked from commit 91f0864dc0)
2022-09-01 16:11:17 +02:00

9 lines
378 B
YAML

---
features:
- |
After the port is considered as provisioned, the Nova port binding update
could have not been received, leaving the port as not bound. Now the
port provisioning method has an active wait that will retry several times,
waiting for the port binding update. If received, the port status will be
set as active if the admin state flag is set.