Bug 769033

Summary: Deploying two bundles to the same destination directory (i.e. <EAP>/default/deploy or /usr/share) will corrupt the earlier deployments
Product: [JBoss] JBoss Operations Network Reporter: John Mazzitelli <mazz>
Component: ProvisioningAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: JON 3.1.2CC: dlackey, fbrychta, hrupp, hsavolai, loleary, mazz
Target Milestone: ---   
Target Release: JON 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-07 15:59:54 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 John Mazzitelli 2011-12-19 17:32:32 UTC
Suppose someone wants to deploy a bundle (say, an EAP server) and then they want to deploy another inner bundle inside of that (say, for a WAR app). Can we support this?

Can this deploy?

Can you purge the inner bundle and leave the outer bundle intact?

What happens when you purge the outer bundle?

What happens when you purge the outer bundle with "clean directory" option?

Note, purging the outer bundle will still keep the inner bundle intact IN THE RHQ DATABASE. There is no relationships between bundles, so from the UI perpsective, even if you remove the outer bundle, the inner bundle will still look like its deployed in the GUI (although in reality, on the file system, it will be gone).

This BZ is merely to investigate what happens if you try to do this. It was never intended to be a supported feature.

Comment 1 Larry O'Leary 2011-12-19 18:57:31 UTC
Increasing the severity of this issue as in JON 3.0 we now support the concept of resource level bundles. This means that this use-case will become more common seeing that a JBoss AS server could be deployed using a bundle and then a WAR could then be deployed into the inventoried AS resource without prior knowledge of a bundle-within-a-bundle scenario. The result could be catastrophic from an application management perspective.

Comment 2 Heiko W. Rupp 2013-12-07 15:03:55 UTC
Where do we stand here?

Comment 3 John Mazzitelli 2013-12-07 17:48:29 UTC
This won't work, currently does not work, because the metadata directory (.rhqdeployments) is located under the destination directory. If you have a Russian doll type deployment (bundles inside of bundles) the .rhqdeployments directories will get in the way.

Right now, for sure this is NOT supported, and I highly doubt it will work.

Comment 4 Heiko W. Rupp 2013-12-09 09:39:29 UTC
Assigning to Deon, so that she can make that explicit in the documentation.

Lowering priority.

Comment 10 Filip Brychta 2019-03-07 15:59:54 UTC
JBoss ON is coming to the end of its product life cycle. For more information regarding this transition, see https://access.redhat.com/articles/3827121.
This bug report/request is being closed. If you feel this issue should not be closed or requires further review, please create a new bug report against the latest supported JBoss ON 3.3 version.