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

/var/lib/ambari-agent/cache not updating (Ambari 2.7)

    XMLWordPrintableJSON

Details

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

    Description

      As of Ambari 2.7, any changes to /var/lib/ambari-server/resources are not
      pushed to ambari-agents cache (/var/lib/ambari-agent/cache/. This is not an
      issue in Ambari 2.6.

      Also, if you remove files or need to wipe ambari-agent cache(s), the files
      will never repopulate.

      Another example, is custom ambari host_scripts not being pushed to the ambari-
      agents as should be done based on this article, and works in Ambari 2.6:
      <https://community.hortonworks.com/articles/38149/how-to-create-and-register-
      custom-ambari-alerts.html>

      To reproduce:

      • 1\. deploy hosts with Ambari 2.7.3 and have them connected to an ambari-server
      • 2\. turn on DEBUG logging in ambari-agent
      • 3\. go to an ambari-agent. Notice that there is no /var/lib/ambari-agent/cache/host_scripts/.hash but there are .hash files for the stack directories.
      • 4\. on the ambari-server, add files into /var/lib/ambari-server/resources/host_scripts
      • 5\. restart ambari-agent and notice that their host_scripts directory is never updated and .hash is never generated
      • 6\. check ambari-agent.log and notice that other paths were checked (by FileCache.py) but host_scripts were not

      Attachments

        1. AMBARI-25123.patch
          0.8 kB
          Andrew Onischuk
        2. AMBARI-25123.patch
          1 kB
          Andrew Onischuk

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m