Bug 784006

Summary: change --cleanallconfig so "--clean" still works as before
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: AgentAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 4.2CC: hrupp, loleary
Target Milestone: ---   
Target Release: RHQ 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 786600 (view as bug list) Environment:
Last Closed: 2013-08-31 10:08: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:
Bug Depends On:    
Bug Blocks: 786600    

Description John Mazzitelli 2012-01-23 14:39:23 UTC
the shortcut option "--clean" used to refer to --cleanconfig.

however, now we have --cleanallconfig from bug #782612 so "--clean" is ambiguous and causes an error at startup.

To support users who are used to --clean from previous versions, let's rename --cleanallconfig to something else like --allcleanconfig or something like that.

Comment 1 John Mazzitelli 2012-01-23 14:43:03 UTC
I'll also add a --token cmdline option that lets the user set the token to avoid having the user enter -Drhq.agent.security-token when setting it.

Comment 2 John Mazzitelli 2012-01-23 15:06:55 UTC
for release-3.0.1 branch:

* make --cleanallconfig to be unambiguous (rename it)
* change the error message to be clear that the user has to enter -Drhq.agent.security-token to set the token

Comment 4 Mike Foley 2012-01-23 15:41:53 UTC
adding reference to the doc BZ

https://bugzilla.redhat.com/show_bug.cgi?id=783247

this BZ is for both the Wiki updates ... AND the required doc change to JON 2.4.2 docs

Comment 5 John Mazzitelli 2012-01-23 17:07:51 UTC
the new error will say:

The server has rejected the agent registration request. Cause: [org.rhq.core.clientapi.server.core.AgentRegistrationException:The agent [fooagent] is attempting to re-register without a security token. Please consult an administrator to obtain the agent's proper security token and restart the agent with the option "-Drhq.agent.security-token=<the valid security token>"]

the new option is now called --fullcleanconfig - the shortcut is still -L.

Comment 6 John Mazzitelli 2012-01-23 17:12:39 UTC
master commit: 1189549
release-3.0.1 commit: 1f42ac3

did not include a --token cmdline option in this comment

Comment 7 Charles Crouch 2012-02-01 21:27:58 UTC
Fix went into JON2.4.2 and master, so setting target release versions appropriately.

Comment 8 Larry O'Leary 2013-05-20 20:36:53 UTC
Removing JON 2.4.2 from target list as this is a community BZ. This was tested and verified in downstream JON 3.0.1 as per Bug 786600 and is available in RHQ 4.3.

Comment 9 Heiko W. Rupp 2013-08-31 10:08:54 UTC
Bulk close of old bugs in VERIFIED state.