Red Hat Bugzilla – Bug 1025783
RHQ storage installer overwrites .java preferences for agent
Last modified: 2014-10-13 07:56:47 EDT
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