[
https://issues.apache.org/jira/browse/AMBARI-18263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sandor Magyari updated AMBARI-18263:
------------------------------------
Description:
Currently agent connection retry mechanism fails after one try:
{code}
WARNING 2016-08-12 16:13:08,291 main.py:351 - Unable to determine the IP
address of the Ambari server 'ambari-server'
ERROR 2016-08-12 16:13:08,292 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in
<module>
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in
main
(retries, connected, stopped) = netutil.try_to_connect(server_url,
MAX_RETRIES, logger)
UnboundLocalError: local variable 'server_url' referenced before assignment
{code}
was:Create a new property in amabari-agent.ini server section:
max_connection_retries. This the number of times agent tries to connect to a
given url, sleeping for 10 seconds between retries. No more than max_retries is
performed. If max_retries is -1, connection attempts will be repeated forever
until server is not reachable. By default is set to 18, which results in 3
minutes retry time.
> Agent connection retry fails after one try
> ------------------------------------------
>
> Key: AMBARI-18263
> URL: https://issues.apache.org/jira/browse/AMBARI-18263
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.1
> Reporter: Sandor Magyari
> Assignee: Sandor Magyari
> Priority: Critical
> Fix For: 2.5.0
>
>
> Currently agent connection retry mechanism fails after one try:
> {code}
> WARNING 2016-08-12 16:13:08,291 main.py:351 - Unable to determine the IP
> address of the Ambari server 'ambari-server'
> ERROR 2016-08-12 16:13:08,292 main.py:392 - Exiting with exception:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in
> <module>
> main(heartbeat_stop_callback)
> File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in
> main
> (retries, connected, stopped) = netutil.try_to_connect(server_url,
> MAX_RETRIES, logger)
> UnboundLocalError: local variable 'server_url' referenced before assignment
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)