Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18263

Agent connection retry fails after one try

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.1
    • trunk
    • ambari-agent
    • None

    Description

      Currently agent connection retry mechanism fails after one try:

      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
      

      Attachments

        1. AMBARI-18263.patch
          0.9 kB
          Magyari Sandor Szilard

        Issue Links

          Activity

            People

              smagyari Magyari Sandor Szilard
              smagyari Magyari Sandor Szilard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: