Bug 534193 (RHQ-1012) - agent restart operation should let you provide some additional options
Summary: agent restart operation should let you provide some additional options
Keywords:
Status: CLOSED WONTFIX
Alias: RHQ-1012
Product: RHQ Project
Classification: Other
Component: Agent
Version: unspecified
Hardware: All
OS: All
low
low
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-22 16:17 UTC by John Mazzitelli
Modified: 2014-05-02 20:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-02 20:03:54 UTC
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2008-10-22 16:17:00 UTC
The agent operation "restart" simply restarts the agent with AgentMain.start().

Would be nice to have another operation that lets you specify some (all?) of the command line options you can give the agent.  I don't know if that will be possible, but the use-case that brought this up was to be able to pass --purgedata when restarting (effectively cleaning the inventory and starting fresh).

Maybe we have "clean restart" operation that implies --purgedata.

I don' t think we want to allow a remote "--cleanconfig" because the agent might then lose configuration and not be able to auto-restart (the setup prompts will have to be asked again, unless the agent-config.xml was custom and the user had it fully configured properly - not something we can assume).

Comment 1 Red Hat Bugzilla 2009-11-10 20:21:51 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1012


Comment 2 wes hayutin 2010-02-16 17:08:53 UTC
mass add of key word FutureFeature to help track

Comment 3 Corey Welton 2010-08-18 15:13:01 UTC
Mazz, is this a quick win/change?  Otherwise, let's close.

Comment 4 John Mazzitelli 2010-08-24 17:38:08 UTC
I think this could be a quick win for us - if we do this:

"Maybe we have "clean restart" operation that implies --purgedata."

This means we just add a new operation to the agent plugin that purges the data directory prior to starting the agent VM back up.

This is low priority however.


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