Bug 769031

Summary: purging with managedRootDir=false should not purge everything
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: ProvisioningAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.2CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
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 John Mazzitelli 2011-12-19 17:27:29 UTC
this needs to be tested:

if I have a bundle deployed with managedRootDir=false, and I elect to purge that bundle, only the bundle files should be removed - all files that are external to the bundle should remain.

For example, suppose I have an EAP instance installed (non-bundle install), and I have things deployed in the deploy/ directory:

/opt/eap5/server/default/deploy/jmx-console.war

for example.

Now suppose I have a bundle with manageRootDir=false and I put it in deploy/

/opt/eap5/server/default/deploy/my-bundle.war

where the bundle distribution has "my-bundle.war" as the top directory (in other words, the destination directory was "deploy/").

If I purge that bundle, the deploy/my-bundle.war should go away, but jmx-console.war (and all other things in deploy/) should remain intact and left alone.

Question: does it?

We need to test this scenario and make sure it works as we think it should. Otherwise, we need to fix it.

Comment 1 Charles Crouch 2011-12-19 17:28:41 UTC
This should be tested on JON2.4.1 and JON3.0.0

Comment 2 John Mazzitelli 2011-12-19 22:08:56 UTC
(In reply to comment #1)
> This should be tested on JON2.4.1 and JON3.0.0

This purge feature did not exist in JON 2.4.1 in the first place, so, there is nothing to test :)

Comment 3 John Mazzitelli 2011-12-19 22:23:06 UTC
I think this is supported... looking at code in org.rhq.plugins.ant.AntBundlePluginComponent it does look at the manageRootDir setting.