Re-posting this since it came up again in IRC today. On 9/20/2018 6:09 PM, Matt Riedemann wrote:
mnaser wrote a simple placement audit tool today and dumped his script into a bug report [1]. It turns out several operators have already written a variant of this same tool. The idea is to compare what's in placement for allocations and (compute node) resource providers against what's in nova for instances and compute nodes, look for orphans in placement and then report them, or maybe also clean them up.
I think this could go into a "nova-manage placement audit" command and should be pretty easy to write for minimum functionality (start with just the report).
I'm advertising the need here in case someone wants to work on this. I'd like to myself, but just can't justify the time right now.
-- Thanks, Matt