Bug 844422 - The deployment directory for a jboss as 7 standalone server is 'deployments' instead of 'deployment'
Summary: The deployment directory for a jboss as 7 standalone server is 'deployments' ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 6
Version: JON 3.1.0
Hardware: All
OS: All
high
medium
Target Milestone: ---
: JON 3.1.1
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 844217
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-30 14:34 UTC by Heiko W. Rupp
Modified: 2013-09-11 10:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 844217
Environment:
Last Closed: 2013-09-11 10:58:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Heiko W. Rupp 2012-07-30 14:34:42 UTC
+++ This bug was initially created as a clone of Bug #844217 +++

Description of problem:
Deploy a bundle with a WAR archive to JBoss AS 7 standalone server leads to wrong directory.


How reproducible:


Steps to Reproduce:
1.Make an Ant bundle with a simple WAR archive within.
2.Update the bundle file to RHQ to create a new bundle.
3.New a group with JBoss AS 7 standalone server
4.Deploy the bundle to the created group.
  
Actual results:
The WAR is deployed correctly at <JBoss Standalone Server>/standalone/deployments/

Expected results:
The WAR is deployed at <JBoss Standalone Server>/standalone/deployment/<Destination Directory>

Additional info:

This should be a typo.

--- Additional comment from hrupp on 2012-07-30 10:24:52 EDT ---

master 264bf23cb1

Comment 1 Stefan Negrea 2012-07-31 15:23:24 UTC
release/jon3.1.x branch commit:

http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commit;h=bb1765a555263daa7a4185461ed3b730b2a5246e

Comment 2 John Sanda 2012-08-02 18:52:01 UTC
JON 3.1.1 ER1 build is available. Moving to ON_QA.

https://brewweb.devel.redhat.com/buildinfo?buildID=226942

Comment 3 Armine Hovsepyan 2012-08-03 15:53:40 UTC
reopened.

EAP6 ER6
Jon-3.1.1-CR1

Deployment is still being done under EAP6/standalone/deployments

Comment 4 Heiko W. Rupp 2012-08-03 16:10:28 UTC
Armine,
is this with a server you had already in inventory or with an as7 server, that you took into inventory after installing the cr1 ?

Comment 5 Armine Hovsepyan 2012-08-03 17:52:40 UTC
Hi Heiko,

It's the old eap, but has been added into inventory after CR1 was installed. shall i install new eap?

Comment 6 Heiko W. Rupp 2012-08-14 21:38:32 UTC
I've verified that it works correctly with freshly imported as7 servers
Now what happens is that servers in inventory have the old bad value set and this does not get overwritten by the update.

Comment 7 Larry O'Leary 2012-08-16 14:28:36 UTC
The value 'deployments' should not be hard-coded as this is a configurable option in EAP 6 and can change. Therefore, it needs to be a trait and re-discovered from time-to-time or obtained through some other method.

Comment 8 Heiko W. Rupp 2012-08-16 21:16:32 UTC
A new implementation using a trait is now pushed to master as 1ace95e

The plugin config 'deployDir' has been removed, so on plugin upgrade users will
get the correct setting.

Todo QA: test deploying a bundle after plugin upgrade to a server that was in
inventory before the upgrade. As well as deploy to a server that is new in inventory after the upgrade.

Comment 9 Heiko W. Rupp 2012-08-16 21:35:40 UTC
release-branch 09ac5f9a4c1d

QA: also check for drift in the deploy dir.

Comment 10 John Sanda 2012-08-22 05:51:09 UTC
Moving to ON_QA. The JON 3.1.1 ER3 build is available at https://brewweb.devel.redhat.com/buildinfo?buildID=230321.

Comment 11 Armine Hovsepyan 2012-08-24 14:06:45 UTC
reopen.

1. Installed JON 3.1.1 ER3 server/agent
2. Installed EAP plugin ER2
3. Inventoried EAP server
4. Deployed bundle
5. Uploaded EAP plugin ER3 jar
6. Updated plugins
7. Deployed bundle  -------> incorrect directory
8. Reloaded EAP 
9. Deployed bundle  -------> incorrect directory
10. Restarted EAP
11. Deployed bundle  -------> incorrect directory

Clean installation worked correctly. Any deploy dir change is being detected and deployment in correct (new) directory is being done.

Comment 12 Heiko W. Rupp 2012-08-28 18:42:43 UTC
Armine, 
in step 7 did you deploy a new bundle version of the bundle you deployed in step 4 or did you deploy a completely new bundle?

Did you check between steps 6 and 7 if/that the trait has been collected and shows the correct value?

Comment 13 Heiko W. Rupp 2012-08-28 19:31:23 UTC
Armine  in step 7,9,11 -- what is the incorrect directory this writes to?

Comment 14 Heiko W. Rupp 2012-08-28 20:23:57 UTC
So I tried the following:

* installed jon 311er3 server/agent, er2 eap7 plugin
* inventoried eap6ga
* deployed a bundle - worked correctly
* updated plugin to er3 version of the plugin
* deployed a bundle - worked correctly
 * trait is also collected with correct value

Comment 15 Armine Hovsepyan 2012-08-29 06:37:48 UTC
Hi Heiko,

Did you do this for a changed deploy dir or it was for deployments dir?

As it says in comment "Clean installation worked correctly. Any deploy dir change is being detected and deployment in correct (new) directory is being done." - deploy dir needs to be changed beforehand.

Regards,
Armine H

Comment 16 Armine Hovsepyan 2012-09-12 18:57:04 UTC
verified!

Thanks heiko.


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