Bug 769031 - purging with managedRootDir=false should not purge everything
purging with managedRootDir=false should not purge everything
Status: NEW
Product: RHQ Project
Classification: Other
Component: Provisioning (Show other bugs)
4.2
Unspecified Unspecified
high Severity unspecified (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-19 12:27 EST by John Mazzitelli
Modified: 2011-12-19 17:23 EST (History)
2 users (show)

See Also:
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:


Attachments (Terms of Use)

  None (edit)
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.

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