Bug 1080833

Summary: Enabling/Disabling EJB3 statistics cause redeployment of Application in EAP 6
Product: [JBoss] JBoss Operations Network Reporter: Dasharath Masirkar <dmasirka>
Component: Plugin -- JBoss EAP 6Assignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: dmasirka, kupo, loleary, lzoubek, rhatlapa, theute
Target Milestone: DR01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Enabling or Disabling EJB3 statistics in the EAP 6 JON Plug-in caused the configuration changes to be saved correctly, however the web application in EAP 6 was redeployed. A fix to the EJB3 subsystem now only applies configuration properties that differ from the current configuration. The read-write config update delegate reads resource config prior to applying the update, and applies changes only. This feature currently supports simple probe only. EJBs are no longer completely re-deployed when a EJB3 monitoring setting is changed.
Story Points: ---
Clone Of:
: 1119518 (view as bug list) Environment:
Last Closed: 2014-12-11 14:00:50 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1119518    

Description Dasharath Masirkar 2014-03-26 08:35:50 UTC
Description of problem:
The application getting undeployed/deployed while disabling/enabling EJB3 statistics through JON for EAP6 resource.

Version-Release number of selected component (if applicable):
JBoss ON 3.2.0
JBoss EAP 6.2.0

How reproducible:
Always

Steps to Reproduce:
1) Install JON 3.2 and Agent
2) Deploy EAP 6.x plugin
3) Import EAP 6.x into JON inventory
4) From JON UI Navigate as follows to enable ejb3 statistics.

JBossAS7 Standalone Server-->EAP (127.0.0.1:9990) -->ejb3 -->Inventory -->Configuration -->Current

Here set "Enable Statistics" Property value to "Yes" and save the changes.

Actual results:
The configuration changes will get saved but the web application deployed in EAP6 will get redployed for e.g. see below logs from EAP 6  standalone server :

12:44:42,728 INFO  [org.jboss.web] (ServerService Thread Pool -- 84) JBAS018224: Unregister web context: /a
12:44:42,740 INFO  [org.jboss.web] (ServerService Thread Pool -- 88) JBAS018210: Register web context: /a

Expected results:
The configuration change need to be saved without application redployment. 

Additional info:

Comment 4 Libor Zoubek 2014-07-01 22:37:46 UTC
in master

commit c70267492ec430e4ef1218065ffc4220c2ba7e51
Author: Libor Zoubek <lzoubek>
Date:   Wed Jul 2 00:32:21 2014 +0200

    [Bug 1080833]
    
    For EJB3 subsystem we now apply only configuration properties that differ
    from current configuration.

commit 3d0571af3f465c6d47567483ebc0148a514e6851
Author: Libor Zoubek <lzoubek>
Date:   Wed Jul 2 00:31:10 2014 +0200

    [JBoss AS7] add read-write config update delegate which reads resource config prior applying update and applies changes only (currently supports only simple prope

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