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

Logging of exceptions in python code in Ambari Agent

    XMLWordPrintableJSON

Details

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

    Description

      Today if Ambari Agent python code throws the exception and the stack trace get
      rerouted to /var/log/ambari_agent/ambari_agent.out . This is not logged by our
      agent and therefore it makes it hard to RCA Ambari Agent failures, let alone
      know that Ambari Agent failed.
      I am hoping it is possible to wrap the entry code to Ambari Agent in a
      try/catch and log the error message and stack trace to the log appenders and
      only then have ambari agent throw.

      Attachments

        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: