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

Improve agent logging to add more relevant message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • None
    • None

    Description

      Looking at the agent, it logs the following:

      INFO 2016-09-16 15:52:29,659 Controller.py:277 - Heartbeat with server is running...
      INFO 2016-09-16 15:52:49,475 Heartbeat.py:90 - Adding host info/state to heartbeat message.
      INFO 2016-09-16 15:52:49,737 logger.py:71 - call[['test', '-w', '/']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,746 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,747 logger.py:71 - call[['test', '-w', '/sys/fs/cgroup']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,757 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,757 logger.py:71 - call[['test', '-w', '/dev']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,766 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,767 logger.py:71 - call[['test', '-w', '/run']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,776 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,776 logger.py:71 - call[['test', '-w', '/run/lock']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,785 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,785 logger.py:71 - call[['test', '-w', '/run/shm']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,794 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,794 logger.py:71 - call[['test', '-w', '/run/user']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,802 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,803 logger.py:71 - call[['test', '-w', '/grid/0']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,813 logger.py:71 - call returned (0, '')
      INFO 2016-09-16 15:52:49,813 logger.py:71 - call[['test', '-w', '/tmp']]

      {'sudo': True, 'timeout': 5}

      INFO 2016-09-16 15:52:49,826 logger.py:71 - call returned (0, '')

      Can we

      • Add the heartbeat id to the log
      • Remove the logs about *call* or change them to DEBUG

      Attachments

        1. AMBARI-18417.patch
          2 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: