Bug 769031

Summary: purging with managedRootDir=false should not purge everything
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: ProvisioningAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.2CC: dlackey, 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: ---

Description John Mazzitelli 2011-12-19 12:27:29 EST
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 12:28:41 EST
This should be tested on JON2.4.1 and JON3.0.0
Comment 2 John Mazzitelli 2011-12-19 17:08:56 EST
(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 17:23:06 EST
I think this is supported... looking at code in org.rhq.plugins.ant.AntBundlePluginComponent it does look at the manageRootDir setting.