Description of problem: I'm seeing a lot of this errors when running agent in a Docker container: 2014-05-22 19:54:51,674 ERROR [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.failover-list-unknown-host}Failover list has an unknown host [53a41381015d] Background: I'm experimenting with geard [1] to quickly deploy JON in containers. geard uses iptables to simplify inter-container communication. In my setup JON endpoint is exposed to the agent as 127.0.0.1:7080 while agent callback address for JON server is 127.0.0.1:50100. The problem arises when the agent tries to talk to JON server directly by hostname (a randomly generated string by Docker) which is inaccessible/outside of geard networking setup. 1. Why "failover" logic when clearly there's only 1 JON server? 2. Maybe adding a flag to indicate "container-mode" and act accordingly? I know there's a NAT mode configuration for the agent but it's non-trivial to setup. Since container technology is important in RHEL7 we should make container support a first class feature. [1] http://openshift.github.io/geard/
The agent will be provided with the address configured for the server at server install time. It can also be edited/changed via the GUI. It would seem the geard hostname is getting picked up, probably because an explicit IP was not set at install time. Even if there is a single server there will be a failover list (think of it as a server-list, which would have been the better name). It will only contain the single server. Not sure what the next step would be here, asking...
being addressed by BZ 1145338 *** This bug has been marked as a duplicate of bug 1145338 ***