Bug 1446585 - CFME servers not deleting from Web UI
Summary: CFME servers not deleting from Web UI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.7.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Gregg Tanzillo
QA Contact: Alex Newman
URL:
Whiteboard: appliance:distributed
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-28 11:54 UTC by Ryan Spagnola
Modified: 2020-12-14 08:34 UTC (History)
15 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:12:04 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1492216 0 high CLOSED Dropdown to delete a "not responding" server is missing 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 3214931 0 None None None 2017-10-13 12:02:17 UTC
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

Internal Links: 1492216

Comment 16 Nick Carboni 2017-09-15 20:01:01 UTC
I was not able to reproduce this issue, but I didn't try with any significant number of events for the server I was deleting.

While trying to reproduce this I noticed that the configuration dropdown to delete the server is missing in version 5.8.1.5 so I opened bug 1492216 to track that issue separately.

I'm tempted to close this, but would like to propose changing the dependent destroy to an after destroy callback which queues the deletion of the events.

This should prevent the call to destroy the server from hanging, but I'm not sure what kind of problems the hanging reference to the removed server would cause. Thoughts?

Comment 17 Yuri Rudman 2017-09-19 12:08:07 UTC
I think if server stopped and there were no activity for some time than it is OK to delete server first and replace dependent=>destroy with after_destroy for EventStream.
Gregg, what do you think?

Comment 19 CFME Bot 2017-09-21 18:07:00 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/79ca041e68148f98c3506614416f3ebd4ee569f8

commit 79ca041e68148f98c3506614416f3ebd4ee569f8
Author:     Yuri Rudman <yrudman>
AuthorDate: Tue Sep 19 13:35:12 2017 -0400
Commit:     Yuri Rudman <yrudman>
CommitDate: Wed Sep 20 15:07:05 2017 -0400

    queue deletion of lihked events instead of dependent=>destroy. It should prevent UI to hang when deleting instance of MiqServer
    https://bugzilla.redhat.com/show_bug.cgi?id=1446585

 app/models/miq_server.rb | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

Comment 32 errata-xmlrpc 2018-03-01 13:12:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0380


Note You need to log in before you can comment on or make changes to this bug.