Fix intermittent failures in finding metada port in SB DB
The test_agent_metadata_port_ip_update_event can sometimes fail
with finding the port in SB DB Port_Binding table. This is
due to a race condition between when the port is commited to NB DB
,reflected in SB DB and calling lsp_bind on SB DB.
This patch simply adds metadata port create event check before
calling lsp_bind on the metadata port.
Closes-Bug: #2012754
Change-Id: I07fa45401788da6b963830e72a7b3a3cd54662e1
(cherry picked from commit 9d5163301310a8c3cb72e18cbaed89afbc07f674)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/897846 /opendev. org/openstack/ neutron/ commit/ ec588b0bc00b128 67f718b860b67bd eaeb6224a3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit ec588b0bc00b128 67f718b860b67bd eaeb6224a3
Author: Miro Tomaska <email address hidden>
Date: Fri Mar 24 11:51:06 2023 -0500
Fix intermittent failures in finding metada port in SB DB
The test_agent_ metadata_ port_ip_ update_ event can sometimes fail
with finding the port in SB DB Port_Binding table. This is
due to a race condition between when the port is commited to NB DB
,reflected in SB DB and calling lsp_bind on SB DB.
This patch simply adds metadata port create event check before
calling lsp_bind on the metadata port.
Closes-Bug: #2012754 6b963830e72a7b3 a3cd54662e1 3cb72e18cbaed89 afbc07f674)
Change-Id: I07fa45401788da
(cherry picked from commit 9d5163301310a8c