Bug 688199 - Include common lib function for looking up broker info via DNS SRV records
Summary: Include common lib function for looking up broker info via DNS SRV records
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: matahari
Version: 6.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Adam Stokes
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks: 688207
TreeView+ depends on / blocked
 
Reported: 2011-03-16 14:50 UTC by Perry Myers
Modified: 2011-12-06 11:38 UTC (History)
3 users (show)

Fixed In Version: matahari-0.4.2-2.el6
Doc Type: Bug Fix
Doc Text:
No description needed
Clone Of:
: 688207 (view as bug list)
Environment:
Last Closed: 2011-12-06 11:38:56 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1569 0 normal SHIPPED_LIVE matahari bug fix and enhancement update 2011-12-06 00:39:06 UTC

Description Perry Myers 2011-03-16 14:50:43 UTC
Description of problem:
Right now broker info is read from either /etc/sysconfig (Linux) or registry (Windows).  If there is a DNS SRV record present, we should use it (if the config file does not contain the broker host/port information).  This functionality can be put in libmcommon so that it can be reused among all matahari agents.

We need to decide what the DNS SRV record should look like here.  It should be specific to matahari even though it's just a generic qpid broker.  So something like _matahari-broker

Comment 3 Dave Johnson 2011-09-13 13:47:18 UTC
good 2 go in v0.4.2-2

[root@agent ~]# /usr/sbin/matahari-qmf-hostd -vvv
mh_hostname: Got hostname: agent.test.com
mh_dnsdomainname: Got dnsdomainname: 'test.com'
mh_connect: SRV query successful: _matahari._tcp.test.com
mh_connect: Trying: amqp:tcp:broker.test.com:49000
mh_os_uuid: Got uuid: ce76da54cbe7c1d9ed1d44ce00000023
mh_hostname: Got hostname: agent.test.com
mh_os_uuid: Got uuid: ce76da54cbe7c1d9ed1d44ce00000023
mh_hostname: Got hostname: agent.test.com
mainloop_add_qmf: Added source: 1
heartbeat: Updating stats: 1 5
mh_hostname: Got hostname: agent.test.com

Comment 4 Russell Bryant 2011-11-16 21:12:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description needed

Comment 5 errata-xmlrpc 2011-12-06 11:38:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1569.html


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