commit 4093727ae9c751cce8c39dd0eb022b2c9b90d624
Author: LIU Yulong <email address hidden>
Date: Sat Jun 13 23:14:47 2020 +0800
[L3] Check agent gateway port robustly
In patch [1] it introduced a binding of DB uniq constraint for L3
agent gateway. In some extreme case the DvrFipGatewayPortAgentBinding
is in DB while the gateway port not. The current code path only checks
the binding existence which will pass a "None" port to the following
code path that results an AttributeError. This patch adds a simple check
for that gateway port, if it is not created, new one.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/779613 /opendev. org/openstack/ neutron/ commit/ 4093727ae9c751c ce8c39dd0eb022b 2c9b90d624
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/ussuri
commit 4093727ae9c751c ce8c39dd0eb022b 2c9b90d624
Author: LIU Yulong <email address hidden>
Date: Sat Jun 13 23:14:47 2020 +0800
[L3] Check agent gateway port robustly
In patch [1] it introduced a binding of DB uniq constraint for L3 rtAgentBinding
agent gateway. In some extreme case the DvrFipGatewayPo
is in DB while the gateway port not. The current code path only checks
the binding existence which will pass a "None" port to the following
code path that results an AttributeError. This patch adds a simple check
for that gateway port, if it is not created, new one.
[1] https:/ /review. opendev. org/#/c/ 702547/
Closes-Bug: #1883089 476dbea028d3200 cefe11e35e4 c56b4a5702d92a9 7da56ab6e8)
Change-Id: Ia90f2ee435b0a3
(cherry picked from commit 5fdfd4cbfc56425