[stable only] Do not fail on missing logical router ports
set_gateway_mtu runs for all the gateway ports for a network
and if one of the ports get's deleted in meanwhile
whole transaction fails.
To handle this we need to add if_exists=True to the transaction
but for that it needs to be supported in ovsdbapp. It's fixed
in ovsdbapp with [1] but would require to bump ovsdbapp
minimal version in requirements.txt which we normally don't
do for stable branches.
So using "update_lrouter_port" instead as that have the
required option available. Before [2] that was only used
but during the switch if_exists part was missed.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/920621 /opendev. org/openstack/ neutron/ commit/ ece6a9a7acab20d 5a39f5478442725 8d54b72cfd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: unmaintained/zed
commit ece6a9a7acab20d 5a39f5478442725 8d54b72cfd
Author: yatinkarel <email address hidden>
Date: Tue May 28 13:11:58 2024 +0530
[stable only] Do not fail on missing logical router ports
set_gateway_mtu runs for all the gateway ports for a network
and if one of the ports get's deleted in meanwhile
whole transaction fails.
To handle this we need to add if_exists=True to the transaction
but for that it needs to be supported in ovsdbapp. It's fixed
in ovsdbapp with [1] but would require to bump ovsdbapp
minimal version in requirements.txt which we normally don't
do for stable branches.
So using "update_ lrouter_ port" instead as that have the
required option available. Before [2] that was only used
but during the switch if_exists part was missed.
[1] https:/ /review. opendev. org/q/I56685478 214aae7b6d3a2a3 187297ad4eb1869 a3 /review. opendev. org/c/openstack /neutron/ +/762695
[2] https:/
Closes-Bug: #2065701 830228d3bc92a97 062cc57a472 c60043f166bc728 778ac3f395)
neutron/ tests/unit/ fake_resources. py
Related-Bug: #2060163
Change-Id: I447990509cdea9
(cherry picked from commit 5bdd0efb3970a52
Conflicts: