Bug 1027133

Summary: Default rhq-data directory location is incorrect
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: InstallerAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: ahovsepy, hrupp, jsanda, snegrea
Target Milestone: ER06   
Target Release: JON 3.2.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:
Embargoed:
Bug Depends On: 1018213    
Bug Blocks: 1012435    

Description Filip Brychta 2013-11-06 08:51:12 UTC
Description of problem:
static final String DEFAULT_DATA_DIR = "../../../rhq-data/data";
which is one level above the parent directory of rhq-server.

We have following directory structure:
/home/hudson/rhq-server-4.10.0-SNAPSHOT

so when running ./rhqctl install it tries to install rhq-data to /home which fails because of write permissions
             
Version:
rhq-server-4.10.0-SNAPSHOT
d3ea23b

See commit 85aa4b31

Comment 1 Heiko W. Rupp 2013-11-06 09:04:55 UTC
This is on purpose, as this way you can install a new version of the rhq-server next to the existing one, that uses the same data dir and then wipe the old server directory.
If the data directory of the storage node would be inside the rhq-server, you could loose it that way or you would have to manually move it around.

Solution: don't install the server into /home/hudson, but /home/hudson/rhq

Comment 2 John Sanda 2013-11-06 15:26:25 UTC
The default location is the same. The change for the default location was made in bug 1002226. The only change is to use relative paths, and the reason for doing so is explained in comment 1.

Comment 3 John Sanda 2013-11-06 15:34:12 UTC
Correction from comment 2. The default location *should be* the same. The changes I made for bug 1018213 moved the default directory one level up. I will go ahead and fix this.

Comment 4 Filip Brychta 2013-11-07 07:51:37 UTC
*** Bug 1027245 has been marked as a duplicate of this bug. ***

Comment 5 Stefan Negrea 2013-11-08 15:39:19 UTC
This issue has been fixed as part of bug 1018213, the check permissions method was checking the wrong directory for write permissions.

release/jon3.2.x branch commit:

https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=release/jon3.2.x&id=6e09ef87a476b15c7853a7f7837374ddab7344b7



Please retest.

Comment 6 Simeon Pinder 2013-11-19 15:48:46 UTC
Moving to ON_QA as available for testing with new brew build.

Comment 7 Filip Brychta 2013-11-19 16:34:59 UTC
Verified on
Version :	
3.2.0.ER6
Build Number :	
f7dcd50:643508a