Bug 742800 - Add ability to define a different endpoint for agent during a remote installation
Add ability to define a different endpoint for agent during a remote installa...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Installer, Usability (Show other bugs)
Unspecified Linux
medium Severity low (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2011-10-02 16:53 EDT by Rafael Soares (Tuelho)
Modified: 2011-10-05 10:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
RHEL 6.1 WS RHQ 4.1.0 java version "1.6.0_27" Java(TM) SE Runtime Environment (build 1.6.0_27-b07) Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) Firefox 3.6.23
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Rafael Soares (Tuelho) 2011-10-02 16:53:35 EDT
Description of problem:
Today RHQ uses the 'Host' field value from Connection Information to pass as the Agent endpoint on its installation. But some times the Agent uses a different hostname or ip addr to talk with server (when the host has different network interfaces/virtual ips).

Version-Release number of selected component (if applicable):
RHQ 4.1.0

How reproducible:
Try to install a remote agent using a hostname/ipaddr not reachable by rhq-server (eg. a hostname that point to on /etc/hosts of target platform).

Steps to Reproduce:
Actual results:
Server log

2011-10-02 15:57:05,476 INFO  [org.rhq.enterprise.communications.command.client.ClientCommandSenderTask] {ClientCommandSenderTask.agent-ping-failed}Failed to ping the agent at [remoting endpoint [socket://vm-rhel6-00:16163/?backlog=200&clientMaxPoolSize=304&enableTcpNoDelay=true&maxPoolSize=303&numAcceptThreads=1&rhq.communications.connector.rhqtype=agent&socketTimeout=60000]], because we could not connect to it.


Agent log

2011-10-02 15:56:33,974 ERROR [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.agent-registration-rejected}The server has rejected the agent registration request. Cause: [org.rhq.core.clientapi.server.core.AgentRegistrationException:Server cannot ping the agent's endpoint. The agent's endpoint is probably invalid or there is a firewall preventing the server from connecting to the agent. Endpoint: socket://vm-rhel6-00:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200]
2011-10-02 15:56:33,975 ERROR [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.agent-registration-retry}Will retry the agent registration request soon...

In my case the hostname used to install the Agent was reachable by rhq-server , but (in remote host - installation target) the hostname used was pointing to on /etc/hosts, so the agent started binding the port 16163 at localhost addr.

[root@vm-rhel6-00 ~]# netstat -tanp | grep 16163
tcp        0      0   *                   LISTEN      9046/java

Expected results:
Would be nice if you could define a different endpoint to be used on agent installation. Like a new field on Connection Information form.

Additional info:

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