Bug 1025783

Summary: RHQ storage installer overwrites .java preferences for agent
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: InstallerAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: gerhard.dreschler, hrupp
Target Milestone: ---   
Target Release: ---   
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:

Description Elias Ross 2013-11-01 14:54:29 UTC
Description of problem:

I install my agent using a separate RPM. The storage node installer overwrites preferences in the ~/.java directory, even though it cannot install the agent.

What ends up happening is the existing preferences are mostly wiped out, including the agent name. So when restarting the agent, it thinks its name is 'null'. It's also not clear why the agent name becomes null; it should be set to the local hostname if anything, rather.


Version-Release number of selected component (if applicable): 4.9


How reproducible: Always

Steps to Reproduce:
1. Install and run the agent as rhq user
2. Install the storage node as 'rhq' user using ./rhqctl install --storage. Have the default agent directory non-writable.
3. See that the preferences are overwritten

Additional info: