Bug 1018909

Summary: Hardcoded H2 data location in FSW6 from installer - requires manual changes to avoid failures in cluster environments
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Martin Vecera <mvecera>
Component: InstallerAssignee: Thomas Hauser <thauser>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Vecera <mvecera>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0 GACC: jsedlace, psrna, soa-p-jira
Target Milestone: ER7   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Vecera 2013-10-14 16:40:19 UTC
= Steps to reproduce =
Note: I basically followed the instructions in quickstarts/switchyard/demos/cluster/README.md to start the server in cluster.
    cd ${EAP_HOME}
    cp -R standalone node1
    cp -R standalone node2
    bin/standalone.sh -Djboss.node.name=node1 -Djboss.server.base.dir=node1 --server-config=standalone-ha.xml
   bin/standalone.sh -Djboss.node.name=node2 -Djboss.server.base.dir=node2 -Djboss.socket.binding.port-offset=1000 --server-config=standalone-ha.xml

The server complains that the database is already in use. The database is the default H2 installed through the installer. It seems that copying the standalone directory is not enough as the instances end up using the same database that is already locked. The file standalone-ha.xml contains the full path to the database. This should not be hard coded by the installer.

Comment 1 Len DiMaggio 2013-10-15 15:25:05 UTC
Cluster configurations are not a beta requirement - removed "Beta Blocker"

Comment 2 Thomas Hauser 2013-10-16 14:42:39 UTC
The installer will be able to use ${jboss.server.data.dir} instead of the hardcoded path used previously in ER6 and later builds.

Comment 3 Pavol Srna 2013-12-16 15:31:06 UTC
Verified in ER7 build.