Bug 1025783 - RHQ storage installer overwrites .java preferences for agent
Summary: RHQ storage installer overwrites .java preferences for agent
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Installer
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-01 14:54 UTC by Elias Ross
Modified: 2022-03-31 04:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.