ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Re: Review Request 22306: Ambari-agent start fails if there is no dns record of A type corresponding to host fqdn.
Date Fri, 06 Jun 2014 15:18:46 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/22306/
-----------------------------------------------------------

(Updated June 6, 2014, 3:18 p.m.)


Review request for Ambari and Dmytro Sen.


Bugs: AMBARI-6049
    https://issues.apache.org/jira/browse/AMBARI-6049


Repository: ambari


Description
-------

Have dns record 103 IN PTR abc.ambari.local.  
without corresponding A record (abc IN A 192.168.64.103)  
when starting ambari-agent on host 64.103 :  
INFO 2014-05-28 13:06:42,523 Controller.py:125 - Unable to connect to:
<https://192.168.64.101:8441/agent/v1/register/abc.ambari.local>  
Traceback (most recent call last):  
File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 89,
in registerWithServer  
data = json.dumps(self.register.build(id))  
File "/usr/lib/python2.6/site-packages/ambari_agent/Register.py", line 43, in
build  
hostInfo.register(agentEnv, False, False)  
File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 331, in
register  
dict= self.checkReverseLookup()  
File "/usr/lib/python2.6/site-packages/ambari_agent/HostInfo.py", line 387, in
checkReverseLookup  
fqdn_ip = socket.gethostbyname(host_fqdn)


Diffs
-----

  ambari-agent/src/main/python/ambari_agent/HostInfo.py 3dcc8f2 
  ambari-agent/src/test/python/ambari_agent/TestHostInfo.py 60bdb21 

Diff: https://reviews.apache.org/r/22306/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message