Bug 740574 - Using -g option in starting agent to purgeplugins fails
Using -g option in starting agent to purgeplugins fails
Status: NEW
Product: RHQ Project
Classification: Other
Component: Agent (Show other bugs)
3.0.0 Beta1
Unspecified Unspecified
medium Severity medium (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-22 10:17 EDT by Nabeel Saad
Modified: 2015-11-01 19:56 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Nabeel Saad 2011-09-22 10:17:59 EDT
Description of problem:
Attempting to start the JON Agent with the -g option throws an invalid option -- g
error (<- which in itself is probably an issue given that it should be '-g').  However, using it's alternate "--purgeplugins" works.  This is probably just a bad condition on a case statement or if statement somewhere in the org.rhq.enterprise.agent.AgentMain code.

Version-Release number of selected component (if applicable):
3.0.0-BETA1

How reproducible:
Everytime

Steps to Reproduce:
1.Unpack a jon agent
2.Setup and start a jon agent once, then shutdown
3.Restart the jon agent with ./rhq-agent.sh -g
  
Actual results:
Shows the help display with an error at the top that "--g" is an invalid option

Expected results:
To start the agent and purge the plugins

Additional info:

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