Comment 7 for bug 1883089

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/779613
Committed: https://opendev.org/openstack/neutron/commit/4093727ae9c751cce8c39dd0eb022b2c9b90d624
Submitter: "Zuul (22348)"
Branch: stable/ussuri

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.

    [1] https://review.opendev.org/#/c/702547/

    Closes-Bug: #1883089
    Change-Id: Ia90f2ee435b0a3476dbea028d3200cefe11e35e4
    (cherry picked from commit 5fdfd4cbfc56425c56b4a5702d92a97da56ab6e8)