A new script to remove the duplicated port bindings was added. This
script will list all ``ml2_port_bindings`` records in the database,
finding those ones with the same port ID. Then the script removes
those ones with status=INACTIVE. This script is useful to remove
those leftovers that remain in the database after a failed live
migration.
"dry_run" mode is possible if selected in "[cli_script] dry_run"
boolean config option. The duplicated port bindings are printed in
the shell but not deleted.
Related-Bug: #1979072
Conflicts: neutron/conf/common.py
Change-Id: I0de5fbb70eb852f82bd311616557985d1ce89bbf
(cherry picked from commit c5b76a8393a21adb87447c925da2ede4a75dd11a)
(cherry picked from commit 3d307ef8f8c31ebc92a621aac75c62b83a7b3787)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/859997 /opendev. org/openstack/ neutron/ commit/ d033ab6eb6dadeb 1770eb259d4d59b 469d9e3bc0
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit d033ab6eb6dadeb 1770eb259d4d59b 469d9e3bc0
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Jul 7 06:31:22 2022 +0000
Script to remove duplicated port bindings
A new script to remove the duplicated port bindings was added. This bindings` ` records in the database,
script will list all ``ml2_port_
finding those ones with the same port ID. Then the script removes
those ones with status=INACTIVE. This script is useful to remove
those leftovers that remain in the database after a failed live
migration.
"dry_run" mode is possible if selected in "[cli_script] dry_run"
boolean config option. The duplicated port bindings are printed in
the shell but not deleted.
Related-Bug: #1979072
Conflicts:
neutron/ conf/common. py
Change-Id: I0de5fbb70eb852 f82bd3116165579 85d1ce89bbf b87447c925da2ed e4a75dd11a) c92a621aac75c62 b83a7b3787)
(cherry picked from commit c5b76a8393a21ad
(cherry picked from commit 3d307ef8f8c31eb