ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <>
Subject [jira] [Created] (AMBARI-18305) (2.5.0 fix) Ambari server upgrade script deletes all .pyc files
Date Fri, 02 Sep 2016 14:41:20 GMT
Dmitry Lysnichenko created AMBARI-18305:

             Summary: (2.5.0 fix) Ambari server upgrade script deletes all .pyc files
                 Key: AMBARI-18305
             Project: Ambari
          Issue Type: Bug
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
         Attachments: AMBARI-18305.patch

>From customer case:

We are trying upgrade Ambari from 2.2.2 to Ambari 2.4 with the latest packages (1226). - "Upgrading Ambari should delete any pyc

The patch contains the following two lines
find $AMBARI_SEVER/ -name *.pyc -exec rm {} \;

The AMBARI_SEVER typo basically executes "find / -name *.pyc -exec rm {} \;"
on the root directory and deletes ALL pyc files from the ambari server machine.

This looks like a bug in the latest Ambari package we released yesterday.

Considering the command has both "rm" and "*" in the same line, lets see if we can use a safer
strategy such as changing the CWD and then deleting files.

This message was sent by Atlassian JIRA

View raw message