Bug 534193 (RHQ-1012)

Summary: agent restart operation should let you provide some additional options
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: cwelton, jshaughn
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1012
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-02 20:03:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.