Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034518Openbravo ERPA. Platformpublic2016-11-15 10:202016-12-16 18:38
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR17Q1 
caristu
Core
No
0034518: [clustering] different nodes detected as clones
When working in a clustered environment having nodes in different physical machines, after login as system admin in a node different than the last one where sys admin was logged in, the instance is detected as cloned.
1. Prepare an environment with two tomcats in two different physical machines using the same DB.
2. Login as system admin in server 1
3. Activate instance
4. Login as system admin in server 2
  -> Instance is detected as cloned
When working in clustered environments, different physical machines shouldn't be counted as different clones. This can be avoided by tagging the instance to be in a clustered environment through a new property.

Note for already existing instances setting this property, first login will be detected as clone.
clustering
related to defect 0034542 closed alostale [clustering] instance activation/refresh in a node is not detected in others 
blocks design defect 0034490 acknowledged Triage Platform Base [clustering] Support clustering 
Issue History
2016-11-15 10:20alostaleNew Issue
2016-11-15 10:20alostaleAssigned To => platform
2016-11-15 10:20alostaleModules => Core
2016-11-15 10:20alostaleTriggers an Emergency Pack => No
2016-11-15 10:20alostaleAssigned Toplatform => alostale
2016-11-15 10:20alostaleReview Assigned To => caristu
2016-11-15 10:20alostaleTag Attached: clustering
2016-11-15 10:21alostaleRelationship addedblocks 0034490
2016-11-15 10:45hgbotCheckin
2016-11-15 10:45hgbotNote Added: 0091539
2016-11-15 10:45hgbotStatusnew => resolved
2016-11-15 10:45hgbotResolutionopen => fixed
2016-11-15 10:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0d2395a0d55f755eb0e5ed5574d11fc4a927e925 [^]
2016-11-15 10:53alostaleNote Added: 0091540
2016-11-16 16:50alostaleRelationship addedrelated to 0034542
2016-11-21 17:43caristuNote Added: 0091716
2016-11-21 17:43caristuStatusresolved => closed
2016-11-21 17:43caristuFixed in Version => 3.0PR17Q1
2016-12-16 18:38hudsonbotCheckin
2016-12-16 18:38hudsonbotNote Added: 0092626

Notes
(0091539)
hgbot   
2016-11-15 10:45   
Repository: erp/devel/pi
Changeset: 0d2395a0d55f755eb0e5ed5574d11fc4a927e925
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Nov 15 10:41:40 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/0d2395a0d55f755eb0e5ed5574d11fc4a927e925 [^]

fixed issue 34518: [clustering] different nodes detected as clones

  When working in a clustered environment, sys admin logins in different
  nodes where detected as cloned instances.

  MAC identifier is used as part of clone identifier, in case of clustering
  different nodes can have different MAC ids, so they were always detected
  as clones.

  Added a new "cluster" property, when it is set MAC address is not computed
  beacause it was not relevant in this situation.

---
M src/org/openbravo/erpCommon/utility/SystemInfo.java
---
(0091540)
alostale   
2016-11-15 10:53   
Documented in http://wiki.openbravo.com/wiki/Openbravo.properties#Others [^]
(0091716)
caristu   
2016-11-21 17:43   
Code reviewed + tested OK: nodes not detected as clones when environment is configured as clustered.
(0092626)
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