Bug 1100482 - Make Agent-Server networking more container-friendly
Summary: Make Agent-Server networking more container-friendly
Keywords:
Status: CLOSED DUPLICATE of bug 1145338
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Communications Subsystem
Version: JON 3.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-22 21:53 UTC by Viet Nguyen
Modified: 2014-10-20 15:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-06 16:02:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Viet Nguyen 2014-05-22 21:53:14 UTC
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/

Comment 2 Jay Shaughnessy 2014-08-25 19:50:07 UTC
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...

Comment 3 Viet Nguyen 2014-10-06 16:02:22 UTC
being addressed by BZ 1145338

*** This bug has been marked as a duplicate of bug 1145338 ***


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