Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1100482

Summary: Make Agent-Server networking more container-friendly
Product: [JBoss] JBoss Operations Network Reporter: Viet Nguyen <vnguyen>
Component: Communications SubsystemAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: ahovsepy, jshaughn, myarboro, vnguyen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-06 16:02:22 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 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 ***