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

Upgrading Ambari should delete any pyc files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server
    • None

    Description

      A python file owned by ambari agent had a swp file open during the ambari agent upgrade. For that reason, the pyc file never got recreated, which led to seeing the bug again for that Jira even though the source code was correct.

      Upgrading ambari agent or server should always delete any pyc files in
      /var/lib/ambari-agent
      /var/lib/ambari-server
      /usr/lib/python2.6/site-packages/ambari-agent
      /usr/lib/python2.6/site-packages/ambari-server
      /usr/lib/python2.6/site-packages/ambari-commons
      /usr/lib/python2.7/site-packages/ambari-agent
      /usr/lib/python2.7/site-packages/ambari-server
      /usr/lib/python2.7/site-packages/ambari-commons

      Attachments

        1. AMBARI-15947.patch
          2 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: