| Summary: | Deleted container provider leaves orphaned subordinate resources | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | ncatling |
| Component: | Providers | Assignee: | Mooli Tayer <mtayer> |
| Status: | CLOSED NOTABUG | QA Contact: | Tony <ashlifst> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.5.0 | CC: | cbolz, dajohnso, fsimonce, jfrey, jhardy, mtayer, ncatling, obarenbo |
| Target Milestone: | GA | ||
| Target Release: | 5.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | container | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-03-15 14:09:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
ncatling
2016-01-21 16:37:35 UTC
If I recall correctly removal of entities is deferred/collected at a later time (after the provider is deleted). Greg Blomquist for sure knows how this part is supposed to work. Mooli can you sync with Greg and check if we're missing this cleanup? Thanks! This does not reproduce on master. I will test on the reported tag (CFME 5.5.0) tomorrow and see how to proceed. I can not get a reproduction of this on any environment. Nick: could you post logs please? specifically we should see a "Record delete initiated" at first and "Removed EMS [<name>] id [<id>]" at the end. If there is some error we should see a "<name>: Error during destroy:..." msg (grepping the ems_name should suffice). the destroy call is enqueued and right after that we should see the 'Removed': [----] I, [2016-02-14T17:38:49.551490 #24071:7ad988] INFO -- : MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [54], MiqWorker id: [2], Zone: [default], Role: [], Server: [], Ident: [generic], Tar get id: [], Instance id: [1], Task id: [], Command: [ManageIQ::Providers::ContainerManager.destroy], Timeout: [3600], Priority: [100], State: [dequeue], Deliver On: [], Data: [], Args: [], Dequeued in: [6.454513 205] seconds [----] I, [2016-02-14T17:38:49.551561 #24071:7ad988] INFO -- : MIQ(MiqQueue#deliver) Message id: [54], Delivering... [----] I, [2016-02-14T17:38:50.182974 #24071:7ad988] INFO -- : MIQ(ExtManagementSystem.after_destroy) Removed EMS [erez] id [1] Lets continue to debug together if there is nothing interesting in the logs. There is a possibility that the bug is in the refresh: example: after a refresh a container_service is added with out an ems_id. Then it will not deleted. Can you maybe reproduce something like that Note, relevant code around: ExtManagementSystem.after_destroy and EmsCommon: if task == "destroy" Hi Mooli, I'm not able to reproduce this. I have since upgraded my environment to 552, perhaps that has resolved the problem. I'll close as not a bug. |