Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akhil-g opened this issue Jun 18, 2019 · 5 comments
Open

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

akhil-g opened this issue Jun 18, 2019 · 5 comments

Comments

@akhil-g
Copy link

akhil-g commented Jun 18, 2019

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
Copy link
Member

Fryguy commented Aug 3, 2019

@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

@Fryguy Fryguy added the bug label Aug 3, 2019
@agrare
Copy link
Member

agrare commented Aug 4, 2019

@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
Copy link
Member

@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 miq-bot added the stale label Jun 11, 2020
@miq-bot
Copy link
Member

miq-bot commented Jun 11, 2020

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
Copy link
Member

agrare commented Jun 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants