----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28527/#review63268 -----------------------------------------------------------
Ship it! Ship It! - Myroslav Papirkovskyy On Лис. 28, 2014, 6:02 після полудня, Andrew Onischuk wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28527/ > ----------------------------------------------------------- > > (Updated Лис. 28, 2014, 6:02 після полудня) > > > Review request for Ambari and Myroslav Papirkovskyy. > > > Bugs: AMBARI-8473 > https://issues.apache.org/jira/browse/AMBARI-8473 > > > Repository: ambari > > > Description > ------- > > PROBLEM: follow the instruction to specify the public hostname, configure it > in ambari-agent.ini. When it restart ambari-agent, the follow error is > observed: > > > > INFO 2014-11-24 19:23:58,190 NetUtil.py:49 - Calling url received 200 > INFO 2014-11-24 19:23:58,196 hostname.py:75 - Error using the > scriptname:Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/ambari_agent/hostname.py", line > 66, in public_hostname > output = subprocess.Popen([scriptname],stdout=subprocess.PIPE, > stderr=subprocess.PIPE, cwd='/') > File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__ > errread, errwrite) > File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > :out :err > > > In ambari-agent.ini: > we have public_hostname_script=/var/lib/ambari-agent/hostname.sh > > and permission is 777. > > The hosts table in database is not updated as well. > > > Diffs > ----- > > ambari-agent/src/main/python/ambari_agent/hostname.py caf7600 > > Diff: https://reviews.apache.org/r/28527/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Andrew Onischuk > >