osops-tools-generic/neutron
Nick Jones f243b8c739 Address performance issues with listorphans.py script
listorphans.py lists orphaned Neutron objects.  'Orphans' in this
context are objects which OpenStack knows about and manages but which do
not have a valid project (tenant) ID.

The previous version was very inefficient in that for every object being
checked, it would do a discrete Keystone API call to see if the
associated tenant ID was valid or not.  For an installation of any
reasonable size, i.e one with 100s of Neutron routers, this method was
particularly slow.

The script has been updated to first build a list of all tenant IDs, and
then for every Neutron object check project ownership validity against
this list instead.

Output has also changed slightly to print out a list of discovered
orphans, simplifying workflow e.g when piping to another command which
cleans up these objects.

Closes-Bug: #1515300

Change-Id: I72ca84fe48beb623d43ee446a32ea1bb30730bcc
2015-11-11 21:35:04 +00:00
..
delete_orphan_floatingips.py Add a dry-run flag. Fix inconsistency with 'list' and 'delete' orphans 2015-10-02 10:49:27 -07:00
delete_tenantless_floatingips.py Add a dry-run flag. Fix inconsistency with 'list' and 'delete' orphans 2015-10-02 10:49:27 -07:00
listorphans.py Address performance issues with listorphans.py script 2015-11-11 21:35:04 +00:00