Bug 535189 (RHQ-1911)

Summary: log a warning if agent is registering with a loopback address
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: AgentAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Improvement
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1911
Whiteboard:
Fixed In Version: 1.2 Doc Type: Enhancement
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:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Mazzitelli 2009-04-01 20:15:00 UTC
registering an agent with a loopback address (localhost or 127.0.0.1) is only for testing/demoing the agent. you should never do this in production because that agent will only ever be able to interact with a server on the same box (e.g. agent cannot participate in HA).

Log warnings in both agent and server log files when an agent registers with a loopback.  The functionality should not change - the agent can still register and work as before, this is just to log a message to inform people when this happens in case there was a problem with DNS mappings that a user isn't aware of (or perhaps they entered the wrong values in the setup prompts).



Comment 1 John Mazzitelli 2009-04-01 20:18:31 UTC
Agent log message:

2009-04-01 16:12:04,078 WARN  [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.registering-with-loopback}This agent is registering under the loopback address [socket://127.0.0.1:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200] - this should only be done for testing or demo purposes - this agent will only be able to interact with a server running on the same host as this agent

Server log message:

16:12:04,171 WARN  [CoreServerServiceImpl] An agent [mazzthink] has registered with a loopback address. This should only be done for testing or demo purposes - this agent can only ever interact with this server. AgentRegistrationRequest: [name=[mazzthink]; address=127.0.0.1]; port=16163]; remote-endpoint=socket://127.0.0.1:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]; regenerate-token=false]; original-token=<was null>]; agent-version=1.2.0-SNAPSHOT(3357)]


Comment 2 Corey Welton 2009-04-06 18:44:49 UTC
This is verified.  Thanks for fixing this one :).

Comment 3 Red Hat Bugzilla 2009-11-10 20:49:18 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1911
This bug is related to RHQ-1908