Bug 769033 - Deploying two bundles to the same destination directory (i.e. <EAP>/default/deploy or /usr/share) will corrupt the earlier deployments
Summary: Deploying two bundles to the same destination directory (i.e. <EAP>/default/d...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Provisioning
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: JON 3.4.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-19 17:32 UTC by John Mazzitelli
Modified: 2019-03-07 15:59 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-03-07 15:59:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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