-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54890/
-----------------------------------------------------------
Review request for Ambari and Dmitro Lisnichenko.
Bugs: AMBARI-19246
https://issues.apache.org/jira/browse/AMBARI-19246
Repository: ambari
Description
-------
ambari-server-2.5.0.0-496.x86_64
When starting Ambari Agent, getting this error.
The server host is accessible.
[root@c6405 ~]# ambari-agent start
Verifying Python version compatibility...
Using python /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see
/var/log/ambari-agent/ambari-agent.out:
====================
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 407,
in <module>
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 375,
in main
(retries, connected, stopped) = netutil.try_to_connect(server_url,
MAX_RETRIES, logger)
UnboundLocalError: local variable 'server_url' referenced before assignment
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
ambari-agent.log:
INFO 2016-12-19 23:53:42,640 PingPortListener.py:50 - Ping port listener
started on port: 8670
WARNING 2016-12-19 23:53:42,761 main.py:371 - Unable to determine the IP
address of the Ambari server 'c6404.ambari.apache.org'
ERROR 2016-12-19 23:53:42,762 main.py:412 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 407,
in <module>
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 375,
in main
(retries, connected, stopped) = netutil.try_to_connect(server_url,
MAX_RETRIES, logger)
UnboundLocalError: local variable 'server_url' referenced before assignment
INFO 2016-12-19 23:53:42,762 ExitHelper.py:53 - Performing cleanup before
exiting...
Diffs
-----
ambari-agent/src/main/python/ambari_agent/main.py 50e5d62
Diff: https://reviews.apache.org/r/54890/diff/
Testing
-------
mvn clean test
Thanks,
Andrew Onischuk