Bug 688199

Summary: Include common lib function for looking up broker info via DNS SRV records
Product: Red Hat Enterprise Linux 6 Reporter: Perry Myers <pmyers>
Component: matahariAssignee: Adam Stokes <astokes>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: dajohnso, matahari-maint, rbryant
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: matahari-0.4.2-2.el6 Doc Type: Bug Fix
Doc Text:
No description needed
Story Points: ---
Clone Of:
: 688207 (view as bug list) Environment:
Last Closed: 2011-12-06 11:38:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 688207    

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