Bug 862849

Summary: Improve Agent Registration failure message
Product: [JBoss] JBoss Operations Network Reporter: Charles Crouch <ccrouch>
Component: AgentAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: medium    
Version: JON 3.1.1CC: hbrock, mazz, myarboro
Target Milestone: ER01   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:43:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles Crouch 2012-10-03 18:29:18 UTC
Output from the agent when registration fails is currently...

The server has rejected the agent registration request. Cause: [org.rhq.core.clientapi.server.core.AgentRegistrationException:The agent asking for registration is trying to register the same address/port [xx.xx.xxx.xx:16163] that is already registered under a different name [TestAgent]; if this new agent is actually the same as the original, then re-register with the same name]

After discussion with larry the improved text we came up with is a follows

The server has rejected the agent registration request. Cause: [org.rhq.core.clientapi.server.core.AgentRegistrationException:The agent asking for registration is trying to register the same address/port [xx.xx.xxx.xx:16163] that is already registered under a different name [TestAgent]. If this new agent is actually the same as the original, then re-register with the same name. Otherwise you should uninventory the Platform resource for agent [TestAgent] and re-register this new agent.]

Comment 1 Charles Crouch 2012-10-08 13:41:05 UTC
Setting to high priority, since this should be an easy change

Comment 2 John Mazzitelli 2013-03-11 19:01:39 UTC
Looks like the change is simply to add this sentence at the end of the existing message:

"Otherwise you should uninventory the Platform resource for agent [TestAgent] and re-register this new agent."

git commit to master: 5f1be1f

Comment 3 Larry O'Leary 2013-09-06 14:32:34 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.