Red Hat Bugzilla – Bug 534193
agent restart operation should let you provide some additional options
Last modified: 2014-05-02 16:03:54 EDT
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).
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1012
mass add of key word FutureFeature to help track
Mazz, is this a quick win/change? Otherwise, let's close.
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.