neutron/neutron/cmd
Rodolfo Alonso Hernandez 8b1ec76321 Script to remove duplicated port bindings
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
    neutron/objects/ports.py
    setup.cfg

Change-Id: I0de5fbb70eb852f82bd311616557985d1ce89bbf
(cherry picked from commit c5b76a8393)
(cherry picked from commit 3d307ef8f8)
2022-09-30 03:39:40 +02:00
..
eventlet Use monkey_patch for neutron API server. 2022-04-23 18:47:07 +00:00
ovn [OVN] Sync QoS policies 2022-07-01 08:45:21 +00:00
sanity When creating a VXLAN interface, a device is mandatory 2022-04-11 16:22:49 +02:00
upgrade_checks [goal] Deprecate the JSON formatted policy file 2021-01-08 09:10:49 +00:00
__init__.py Fix logging error for Guru Meditation Report 2016-02-08 16:52:17 -08:00
destroy_patch_ports.py Add script which can clean patch ports between bridges 2020-12-10 10:08:02 +00:00
ipset_cleanup.py Initialize privsep library in Neutron commands 2021-04-22 15:26:50 +00:00
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
linuxbridge_cleanup.py Switch IPDevice.exists() method to use pyroute2 2018-03-19 11:56:45 +01:00
netns_cleanup.py Migrate "netstat" to oslo.privsep 2020-06-19 14:59:11 +00:00
ovs_cleanup.py Initialize privsep library for neutron-ovs-cleanup 2021-04-22 15:27:25 +00:00
pd_notify.py Fix pylint R1714 (consider-using-in) refactor messages 2019-02-21 21:11:34 +00:00
remove_duplicated_port_bindings.py Script to remove duplicated port bindings 2022-09-30 03:39:40 +02:00
runtime_checks.py Import packaging.version explicitly 2020-11-19 10:17:24 +00:00
sanity_check.py Added common config and SR-IOV agent config to sanity check 2021-06-11 14:33:31 +00:00
status.py Add check for external_network_bridge in neutron-status 2019-03-22 13:14:24 +00:00