Sankar Mukherjee created AMBARI-25057:
-----------------------------------------

             Summary: Script to delete an old HDP stack version - BUG
                 Key: AMBARI-25057
                 URL: https://issues.apache.org/jira/browse/AMBARI-25057
             Project: Ambari
          Issue Type: Bug
          Components: ambari-sever
    Affects Versions: 2.6.2
            Reporter: Sankar Mukherjee


As per the Jira https://issues.apache.org/jira/browse/AMBARI-18435 an API call 
to remove older versions was developed but its having issue.

 

ambari-server/src/main/resources/custom_actions/scripts/remove_previous_stacks.py
 [line: 67]

Execute(('rm', '-f', stack_root + version), sudo=True)

It will not delete the directory as there is no such directory, it should be:

Execute(('rm', '-f', stack_root *++'/'++* version), sudo=True)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to