ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 898 forks source link

Data for a deleted provider is still being displayed on dashboard #18885

Open akhil-g opened 5 years ago

akhil-g commented 5 years ago

We have added Vmware infrastructure (Vcenter) provider to ManageIQ, done some operations for a couple of days and deleted the provider. When deleted the Provider from the inventory, It shows a popup message as: "Delete initiated for 1 Infrastructure Provider from ManageIQ Database". Later the provider is removed from the Inventory & VMDB Database, as a purge process is initiated and deleted from the VMDB which is found the in the logs. Even after deleting the provider, the Data is still present in the dashboard.

  1. Is data is getting stored only in the Metrics_00,.. or any other tables?
  2. Do we need to change any configurations? If yes please provide the procedure.
  3. Do we need to manually cleanup the any specific data in VMDB tables?

Version: Hammer 5

Fryguy commented 5 years ago

@akhil-g when vms and templates are deleted, we keep them as "archived", so it's possible those archived objects are still around with their associated data. However, I thought that when deleting an entire provider then those would also be removed. Do you see any errors in your logs?

cc @agrare

agrare commented 5 years ago

@Fryguy when deleting a provider vms and hosts aren't deleted as it has a dependent nullify on the relation (https://github.com/ManageIQ/manageiq/blob/master/app/models/ext_management_system.rb#L57)

Do you see anything besides data related to vms or hosts? (E.g. Metrics would be related to the vms but clusters wouldn't)

chessbyte commented 4 years ago

@agrare @Fryguy wondering if we should offer an option to delete or archive VMs and Hosts when user requests to delete a provider. I can see the use cases for both.

miq-bot commented 4 years ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.

agrare commented 4 years ago

I think that makes sense (allowing this to be configurable), converting this to an enhancement request