Bug 1112744 - Problem when discovering multiple versions of the same Deployment
Summary: Problem when discovering multiple versions of the same Deployment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Inventory
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: DR01
: JON 3.3.0
Assignee: Jay Shaughnessy
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-24 15:36 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-11 14:04:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
deploy_verioned (230.06 KB, image/png)
2014-06-24 15:36 UTC, Armine Hovsepyan
no flags Details
duplicate-deploy (350.92 KB, image/png)
2014-08-01 12:38 UTC, Armine Hovsepyan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1070326 0 unspecified CLOSED RFE: Allow AS7 deployments to provide version in the artifact name 2021-02-22 00:41:40 UTC

Internal Links: 1070326

Description Armine Hovsepyan 2014-06-24 15:36:19 UTC
Created attachment 911791 [details]
deploy_verioned

Description of problem:
Problem when discovering multiple versions of the same Deployment:  when multiple versions of the same deployment war is deployed to eap, rhq treats it as the same war -> causing endless loop of changing version of the app 


Version-Release number of selected component (if applicable):
rhq master

How reproducible:
always

Steps to Reproduce:
1. install rhq server, agent and storage
2. install eap 6.0 next to agent
3. deploy helloworld.war app to eap server
4. deploy 2.0 version of helloworld.war to the same eap server 
5. deploy 2.1 version of helloworld.war to the same eap server

Actual results:
sysem discovers 3 versions of the same app, which step on each other causing an endless loop in server.log (version 2.0 is discovered and reporting to rhq server)
fragment from server.log -> name=helloworld.war, parent=EAP (0.0.0.0:10190)]] changed its version from [] to [2.0]

Expected results:
no engless logs
only one app is discovered (latest) and reporting to server OR block/warn user not to deploy different versions of the same app next to each other


Additional info:
screen-shot of server.log attached

Comment 1 Jay Shaughnessy 2014-06-30 19:26:15 UTC


master commit dec8bae46446d4cde46fe13ed76585c2cfc164b8
Author: Jay Shaughnessy <jshaughn>
Date:   Fri Jun 27 16:18:35 2014 -0400

    Adding one more thing to this feature, prevent discovery of siblings
    resolving to the same resource key.  In the somewhat unlikely case that
    two distinct sibling deployments resolve down to the same logical
    deployment, don't let it get past discovery.  For example, if the user
    has app-1.0.war and app-2.0.war and these are *really* different apps (and
    they would probably have to be since EAP would stop deployment if they
    had the same context).  In this case both would be seen as app.war, and
    that is a problem on the RHQ side.  In this situation generate an
    agent log warning that hopefully helps a user resolve the issue.

    Note that resource upgrade already prevents an upgrade of siblings with
    the same key, so this is an analogous change.

Comment 2 Armine Hovsepyan 2014-07-09 09:11:51 UTC
verified on master (will close as soon as 3.3 ER01 is created)

Comment 3 Simeon Pinder 2014-07-31 15:51:49 UTC
Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993

Comment 4 Armine Hovsepyan 2014-08-01 12:38:24 UTC
Created attachment 923287 [details]
duplicate-deploy

Comment 5 Armine Hovsepyan 2014-08-01 12:38:59 UTC
verified in jon 3.3 DR1


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