Bug 536247 (RHQ-618)

Summary: RFE: resource *delete* should also remove (uninventory) logically related resources
Product: [Other] RHQ Project Reporter: Charles Crouch <ccrouch>
Component: InventoryAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 1.0CC: bkramer, dasimmon, jochen.riedlinger, jshaughn, kejohnso, loleary
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-618
Whiteboard:
Fixed In Version: 1.4 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles Crouch 2008-06-23 22:01:00 UTC
Example would be deleting a .ear archive, will remove the archive from disk, remove the ear resource from the inventory, but leave the stateless session bean resources (that were contained in the .ear) still in the inventory. These resources turn red since their actual deployment (inside the .ear archive) no longer exists.

The trouble is there is no real association between the ear resource and the SLSB resource to indicate that the SLSB should be removed too.

Comment 1 Joseph Marques 2009-04-28 09:11:55 UTC
this could/would be fixed by implementing the relationship service.

Comment 2 Red Hat Bugzilla 2009-11-10 21:13:23 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-618
This bug is related to RHQ-372
This bug incorporates RHQ-323


Comment 3 Jochen Riedlinger 2010-05-27 12:00:17 UTC
This is not only true for a deletion of an EAR, but also for an uninventory of that EAR.

Also not only the SLSBs(EJB-JARs) is still there, but all other embedded elements of that EAR (RAR, WAR, )

We deploy our EARs with names like e.g.:
OurApp-2.2.4.ear (with embedded OurApp-EJB-2.2.4.jar, OurApp-web-2.2.4.war) and want to uninventory them when updating to OurApp-2.2.5.ear


It is too much work not just to uninventory the EARs but also all children.....

Comment 4 Corey Welton 2010-09-13 19:58:30 UTC
needinfo ccrouch:  latest thoughts?

Comment 5 bkramer 2011-01-19 10:47:24 UTC
I have raised the following https://bugzilla.redhat.com/show_bug.cgi?id=670749
before I found this one. If you check the steps to reproduce in 670749 you will see exactly the same test scenario.

Comment 6 Larry O'Leary 2011-02-08 16:02:52 UTC
*** Bug 670749 has been marked as a duplicate of this bug. ***

Comment 7 Jay Shaughnessy 2014-05-02 18:46:33 UTC
Although not a silver bullet, there is some ability for the work in Bug 1093822 to potentially have a positive impact here.