Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034542Openbravo ERPA. Platformpublic2016-11-16 16:492016-12-16 18:38
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q1 
caristu
Core
No
0034542: [clustering] instance activation/refresh in a node is not detected in others
Working in a clustered environment, when instance is activated or refreshed in a node, other nodes don't get refreshed.
Case 1: Activation
1.1. Prepare a community instance in an environment with 2 Tomcats (srv1 and srv2) using the same DB
1.2. Log in in srv1 as Sys Admin
1.3. Load Login page in srv2
1.4. Activate instance in srv1
1.5. Log in in srv2
   -> NOK: Instance remains as community when served from srv2

Case 2: refresh
2.1. In the previous instance that is already activated restart srv2
2.2. In srv2 log in as Sys Admin
2.3. Change settings to that license (ie. modify number of allowed concurrent users)
2.4. In srv2 refresh license
2.5. Login in srv1 as Sys Admin
2.6. Check license settings in Instance Activation window
   -> NOK: Settings remain as they were, they are not updated with new ones

 
clustering
related to defect 0034518 closed alostale [clustering] different nodes detected as clones 
blocks design defect 0034490 acknowledged Triage Platform Base [clustering] Support clustering 
Issue History
2016-11-16 16:49alostaleNew Issue
2016-11-16 16:49alostaleAssigned To => alostale
2016-11-16 16:49alostaleModules => Core
2016-11-16 16:49alostaleTriggers an Emergency Pack => No
2016-11-16 16:49alostaleTag Attached: clustering
2016-11-16 16:49alostaleReview Assigned To => caristu
2016-11-16 16:50alostaleRelationship addedblocks 0034490
2016-11-16 16:50alostaleRelationship addedrelated to 0034518
2016-11-17 10:18hgbotCheckin
2016-11-17 10:18hgbotNote Added: 0091623
2016-11-17 10:18hgbotStatusnew => resolved
2016-11-17 10:18hgbotResolutionopen => fixed
2016-11-17 10:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b83ebb9b59bbb7459daa24a14ed265f153b17967 [^]
2016-11-21 17:53caristuNote Added: 0091717
2016-11-21 17:53caristuStatusresolved => closed
2016-11-21 17:53caristuFixed in Version => 3.0PR17Q1
2016-12-16 18:38hudsonbotCheckin
2016-12-16 18:38hudsonbotNote Added: 0092639

Notes
(0091623)
hgbot   
2016-11-17 10:18   
Repository: erp/devel/pi
Changeset: b83ebb9b59bbb7459daa24a14ed265f153b17967
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Nov 16 16:55:58 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b83ebb9b59bbb7459daa24a14ed265f153b17967 [^]

fixed issue 34542: instance activation/refresh in a node not detected in others

  When activating/refreshing instance in a node of a cluster, other nodes didn't
  get refreshed maintaing already cached information.

  Even there was a mechanism to reload activation when AD_System was updated, it
  didn't work correctly because strPublicKey was not getting updated which was
  later checked to actually reload the license.

  The fix:
    - Removes code duplication so this same flow is invoked from different places
      centrally maintained
    - Small code clean up for better readability

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0091717)
caristu   
2016-11-21 17:53   
Code reviewed + testing OK: nodes license information now is refreshed.
(0092639)
hudsonbot   
2016-12-16 18:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/dc8bf00badd0 [^]
Maturity status: Test