ManageIQ not removing VMs that are no longer in vCenter


#1

Users are removing VMs from vCenter but ManageIQ is still showing them in various reports. Is there some sort of purge function that I need to run?


#2

That’s a feature

ManageIQ saves additional data (retirement date, owner, tags, …) for each VM in it’s own database (vmdb). If the VM was deleted automatically, this data would be destroyed (which might be a problem, depending on your use case).

VMs that are no longer in vCenter are marked as “Archived” (or “Orphaned”) in vmdb , --> you can simply exclude Archived VMs from the report


#3

Interesting. I shall go and try and understand “simply exclude Archived VMs from the report” this a bit more. Thanks for letting me know.

Is there a way to purge some of this data, I’ve just removed a whole vCenter and would like to get rid of all that data.


#4

In the Reports Filter-Tab:

Regarding purging old data, there a script in the tools folder:

However I don’t know if there is a cleaner/builtin way to do it.


#5

Thanks for all the info!