7a97ad34d1
Previously, running neutron_ovs_cleanup on an installation with
5000 ports would time out even after setting the timeout to 3
hours. The code would do a bridge and port "by name" lookup for
every port due to being based off the ovs-vsctl implementation
where names are how everything is looked up. With this change,
the same test runs in ~1.5 mins.
This implementation adds a new OVSDB command that just looks up
the bridge, iterates over its ports, and deletes the ones that
should be deleted in a single transaction per bridge.
Conflicts:
neutron/agent/ovsdb/impl_idl.py
neutron/cmd/ovs_cleanup.py
neutron/tests/unit/cmd/test_ovs_cleanup.py
Change-Id: I23c81813654596d61d8d930e0bfb0f016f91bc46
(cherry picked from commit
|
||
---|---|---|
.. | ||
eventlet | ||
sanity | ||
__init__.py | ||
ipset_cleanup.py | ||
keepalived_state_change.py | ||
linuxbridge_cleanup.py | ||
netns_cleanup.py | ||
ovs_cleanup.py | ||
pd_notify.py | ||
sanity_check.py |