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

Upgrading Ambari should delete any pyc files

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment